Need help with this command. Im trying to do a random number generator. But i want to have a specific user always score a 10

$(touser), on a scale of 1 to 10, you’re like a $(eval “$(user)”=="princessmarvel "?“10”:Math.floor(Math.random()*10+1))

From what I can tell that should work unless the person name your checking has capitals in it. You can fix that by putting.toLowerCase() after “$(user)” like this:

$(eval "$(user)".toLowerCase()=="princessmarvel"?"10":Math.floor(Math.random()*10+1))

Also you had a space after the name before but I just deleted it. This should work as you want it to.

1 Like

you know what, after seeing this, my first reaction was “lol” literally… sorry for the stupid reply. but yes

1 Like

lol completely ok

1 Like

im thinking the problem was the space lol :sweat:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.