Match Score prediction ! Need help

Asked Aug 16, 2020·2 replies·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.

I'd like to make a command but i dont have enough skill to make it.
So it would be a score prediction
Example :
$(user) prediction for the match is : (score that is 13 or random) - (score that is 13 if the other is random)

Thanks !

2 replies

Ok so you want one to be random and the other to be 13 is what I’m getting? Also what range of numbers would the random number be. I’ll make a template command from what I think you want:

!addcom !COMMAND_NAME @$(user)’s prediction for the match is $(eval a=Math.floor(Math.random()*NUMBER);b=[`13-`+a,a+`-13`];b[Math.floor(Math.random()*b.length)])

COMMAND_NAME is the command name you want.
NUMBER is how high the random number should go -1 (Ex.13 will only go from 0-12)
Those are the only things that should change unless you want a completely different command.