Hello guys, i am trying to make a /gamble script where it will use 1,000 of a balance and it will do a counter from 3 to 1 which i have set up but i have no idea how to give it a chance system that always picks from something from the list. i use chance from skript but it gives me sometimes the items but sometimes it gives me nothing because of the way the chances are. if anyone knows how i can make it pick an item with a percentage to get, please tell me. {gems.balance.%player%} is my balance variable.
CODE:
CODE:
Code:
if arg is "start":
if {gems.balance.%player%} is greater than or equal to 1000:
subtract 1000 from {gems.balance.%player%}
set {_counter} to 3
loop 3 times:
send ""
send "&a&l&o %{_counter}%"
send ""
wait 1 second
subtract 1 from {_counter}
chance of 50%:
add 2000 to {gems.balance.%player%}
send ""
send "&cYou have received 2000 Gems"
send ""
chance of 50%:
add 1500 to {gems.balance.%player%}