so i want to make an "aura" command that when typed will have a 50% to output a text message and 30% to an other text message and a 10% one, and 2 5% ones and i am bad at javascript and no time to learn it at all
2 replies
Purple Tiger
Try:
$(eval r=Math.random()*100; r<50?"Here goes the message for 50%.":r<80?"Here goes the message for 30%.":r<90?"Here goes the message for 10%.":r<95?"Here goes the message for 5% (option 1).":"Here goes the message for 5% (option 2).")
Cheerful Worm
Purple Tiger said: $(eval r=Math.random()*100; r<50?"Here goes the message for 50%.":r<80?"Here goes the message for 30%.":r<90?"Here goes the message for 10%.":r<95?"Here goes the message for 5% (option 1).":"Here goes the message for 5% (option 2).")