Errors like:
File "game/script.rpy", line 375: u'return' is not a keyword argument or valid child for the label statement.
File "game/script.rpy", line 376: u'play' is not a keyword argument or valid child for the label statement.
play "duck.mp3"
the latest error is: File "game/script.rpy", line 372: expected a keyword argument or child statement.
"Where is the red duck?"
I suspect all of these issues are coming from the same place but also that there may be several issues with the code that might cause future problems.
Code: Select all
screen quiz_p1:
imagemap:
ground "quizp1"
hover "quizp1"
idle "quizp1"
hotspot (30, 900, 330, 330) action Return("red")
hotspot (360, 900, 330, 330) action Return("yellow")
hotspot (30, 570, 330, 330) action Return("green")
hotspot (360, 570, 330, 330) action Return("blue")
$ result = _return
"Where is the red duck?"
label quizq1:
if result == "red":
play "duck.mp3"
jump quizq2
else:
play "wrongduck.mp3"
jump quizq1
Thanks for taking the time to read this far. I really appreciate it.