Hey, I'm new here and I just tried to make a script, but it doesn't work how I expected it to do.
This is a test form of my script (has the same form as the final product should have, but with less content)
Code:
setImage("Own Images/Fag Roulette/Roulette Master.jpg")
show("Hello there, faggot!")
showButton("Hello, Sir")
show("Are you ready for the Fag-Roulette?")
showButton("Of course")
show("Great, I haven't expected anything different so let's start!")
showButton("Get your random category")
def spin_category = [ "Anal", "Chastity", "Cum", "Cumplay", "Dildo", "Humiliation", "Masturbation", "No_Cum", "Proof", "Public" ]
show(spin_category [getRandom(10) ])
wait(10)
switch (spin_category) {
case "Anal":
show("Test1")
break
case "Chastity":
show("Test2")
break
case "Cum":
show("Test3")
break
case "Cumplay":
show("Test4")
break
case "Dildo":
show("Test5")
break
case "Humiliation":
show("Test6")
break
case "Masturbation":
show("Test7")
break
case "No_Cum":
show("Test8")
break
case "Proof":
show("Test9")
break
case "Public":
show("Test10")
}
My problem: I can click the buttons and it shows me one of the 10 categories but in case of switching to the "case" it just ends there ... I tried so much, could anyone help me? (I'm not really experienced and tried it with the help of the manual, so a easy explanation would be good
)