D
Deleted member 6377
Using newest version of skript for 1.8.9.
No add-ons. I’d like to keep it this way.
Problems:
1. How do I check the amount of players in a list variable? (if the sumo event has only 1 player in it, it will stop the event from starting)
2. When 2 random players get selected from a list variable, how do I make it so it’s never the same person? I ran into this problem when creating a different skript.
3. In a sumo event, how do I make it so it will keep picking random people and making them duel until 1 player is left?
A simple version of my code for #2 and #3
^ In my code, the event will only execute 1 match. How do I make it so it keeps repeating it (however many player joins the event) until only 1 player is left? The player that is left would be the winner.
No add-ons. I’d like to keep it this way.
Problems:
1. How do I check the amount of players in a list variable? (if the sumo event has only 1 player in it, it will stop the event from starting)
2. When 2 random players get selected from a list variable, how do I make it so it’s never the same person? I ran into this problem when creating a different skript.
3. In a sumo event, how do I make it so it will keep picking random people and making them duel until 1 player is left?
A simple version of my code for #2 and #3
code_language.skript:
set {_match1-1} to random element out of {sumoplayers::*}
set {_match1-2} to random element out of {sumoplayers::*}
# other stuff happens
teleport {_match1-1} to {espawn1}
teleport {_match1-2} to {espawn2}
# other stuff happens