Can you loop all offline players?

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

Darth

Member
Mar 14, 2018
1
0
0
22
I'd like to set a variable {%player%::time}, and every 1 second the number decreases. However, loop-player does not loop offline players. Is there a way to make loop player loop offline players as well, or a completely different solution?

Thanks
 
You can loop all offline players but I wouldn’t do it, especially every second. If you made your variable like {time::%player%} You could do something like this
code_language.skript:
loop {time::*}:
    set {time::%loop-index%} to loop-value - 1
however if you’re doing something with time I bet you could replace it with it cooldown checks when it needs to be checked so you don’t have to edit every variable every second
 
Status
Not open for further replies.