Setting item in GUI faster than every 20 ticks

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Hi all,

I am trying to create a simple slot machine with GUIs.
For this I need to change the item in a specific slot in the GUI faster than only 1 per second. But how would I do this?

I tried it with:
code_language.skript:
    loop {_wheel1::*}:
        wait 10 ticks
        if {slotmachine::%{_p}%} is true:
            play "block_stone_pressureplate_click_on" to {_p} at volume 1 with pitch 0.5
            set slot {_i} of current inventory of {_p} to loop-value

But items in gui are updated only every 20 ticks, so only every 2nd item is shown in the gui.
Any other way of doing it?
[doublepost=1503258988,1503237634][/doublepost]Nobody?
 
In reality, the items are most likely being shown, it's just due to lag and other circumstances that the user is only seeing every second item. If you made the wait time a lower value, you'll see what I mean.
 
Status
Not open for further replies.