Thank you for the suggestion I actually forgot about arrays xDI'd recommend using arrays for thing like this:Code: Select all
var vdie = [ "Give me 200 Ball slaps", "Give me 250 Ball slaps", "Give me 300 Ball slaps" ] var myRandomVDie = vdie[Math.floor(Math.random()*vdie.length)]
--
I have a new problem I can't figure out
How to use the array from the init
I used an array:
Code: Select all
var [color=#FF0000]mistress[/color] = [
"Yes Mistress",
"yes Mistress",
"No Mistress",
"no Mistress"
];
Condition: answer = mistress OR mistress = answer
Then: Right answer
Else: Wrong answer
But for some reason no matter what I type in the input. it is always goes to Then like true
I tried changing var to const but it would get stuck in module loading
I haven't tried typing it in eval though since I can't figure some commands like say,choice,timer and some others haha