Solved Minigame player counter

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

Uzumaki

Well-Known Member
Feb 20, 2017
310
10
18
33
code_language.skript:
every 2 seconds:
    invoke "update"
  
sub "update":
    loop all players:
        if loop-player is not in world "world":
            set {spec::%loop-player's world%} to 0
            set {alive::%loop-player's world%} to 0
            if loop-player has 1 compass:         
                add 1 to {spec::%loop-player's world%}
            else:
                add 1 to {alive::%loop-player's world%}


is a player counter for a minigame.

the problem is "%{spec::%loop-player's world%}%" results 1 but in that world are 2 players.
[doublepost=1503074668,1503065755][/doublepost].
 
code_language.skript:
every 2 seconds:
    invoke "update"
 
sub "update":
    loop all players:
        if loop-player is not in world "world":
            set {spec::%loop-player's world%} to 0
            set {alive::%loop-player's world%} to 0
            if loop-player has 1 compass:        
                add 1 to {spec::%loop-player's world%}
            else:
                add 1 to {alive::%loop-player's world%}


is a player counter for a minigame.

the problem is "%{spec::%loop-player's world%}%" results 1 but in that world are 2 players.
[doublepost=1503074668,1503065755][/doublepost].
wait 24 hours before bumping
 
Status
Not open for further replies.