Solved updating GUIs?

  • 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.

dudle

Active Member
Jan 31, 2017
135
0
16
45
Is it possible to make a gui (using TuSKe obv) that would auto update without having to reopen it? so for example if I want to have a server selector and I want an item placed in the gui to show the amount of players online on a specific server and to auto update that variable every X seconds can I make this happen?
Could someone please give me an example code for the update system?

Thanks
 
Sure, it's very simple(correct syntax as it needed):
code_language.skript:
function openGui(p: player,n: text):
 open chest with 2 rows named {_n} to player
 while inventory name of player's current inventory is {_n}:
  format slot...
 
Sure, it's very simple(correct syntax as it needed):
code_language.skript:
function openGui(p: player,n: text):
 open chest with 2 rows named {_n} to player
 while inventory name of player's current inventory is {_n}:
  format slot...
ohhh so a simple “while” will do the thing??
 
I know this is solved but maybe
code_language.skript:
update [the] (inventory|menu|gui) %inventory%
is a possible work around too.
[doublepost=1514425908,1514425878][/doublepost]^that is a skellet syntax
 
  • Like
Reactions: dudle
I know this is solved but maybe
code_language.skript:
update [the] (inventory|menu|gui) %inventory%
is a possible work around too.
[doublepost=1514425908,1514425878][/doublepost]^that is a skellet syntax
thank you all for the replies :emoji_slight_smile: I’ll test the stuff u guys sent me once I have access to pc in a few days, thanks again :>
 
Status
Not open for further replies.