Help with "ask" function

Hello, I am trying to make a quiz using ask. But, everytime I make one I have to many functions in between causing the "yes" and "No" to not function anymore.

For example, ask 1 question and if you choose wrong it throws you to another room, while if you pick the correct choice, it throws another question at you, and so on.

Unsure without seeing your code but a basic switching room on ask function would look something like this:

on quiz do

if event.room=="room1" then

ask "Question1" then
     option "yes?" then
     goto 1,1 in "room2"
    end
    option "no?" then
    goto 1,1 in "room3"
    end

end // ask end

end // if end

// add other logic here for more IFs based on rooms

end  //function end
1 Like