Eval RNG with 3 numbers with set responses

Asked Apr 10, 2020·1 reply·Last activity 6 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Thank you for the help on my last post. My question is can you have rng 1-100 and have 3 of the number have a set response? What I mean by that if someone hits 1, 3, and 33 it would have a response of something I can type up.

$(eval const responses = [’ *$(user)* $(eval Math.floor((Math.random() * 100) + 1))! ’];responses[Math.floor(Math.random() * responses.length)]

for example with this code. If it rngs a 1 it would say awesome luck. If it rngs a 3 it would say you have bad luck and so on?

1 reply