Just set a variable equal to the random number output and check what that variable equals.
Ex.random>10?“TEXT_1”:“TEXT_2”
You don’t need to check what it’s equal to the second time as text_1 is anything above 10 and anything else will be text_2 all you van to do is set random equal to the random number
but i need to have the RNG number shown to make it feel more like a mini game, rather than a Russian roulette command. So this is a response command to this one :
$(user) text $(eval Math.floor((Math.random() * 20) + 1)) text
so i need to show if the number the other person rolls is higher or lower than 10 in chat, instead of just showing the outcome without the number.
And i also wanted to make it so that if you roll lower than 10 to change your role on Discord. (again not sure how to do this part at all)
Like a time-out or mini ban gamble game.
This couldn’t work either but i changed the " and absence of them with ’ and now works, so it turned into this:
$(eval var a = (Math.floor(Math.random() * 20) + 1); a <= 10? ‘You rolled a ‘+a+’. Oh well better luck next time.’ : ‘You rolled a ‘+a+’! Congratulations!’)