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