I've got a weird issue regarding a dialogue. See, I have a label like this:
Code: Select all
label aim_memo:
$ ni+=1
$ act = aim.id
$ aim.ene -= 1
$ memtotalp = 0
if aim.lvl == 0:
$ mst = 1
elif aim.lvl == 1:
$ mst = 2
elif aim.lvl == 2:
$ mst = 3
if aim.lvl == 0:
z "You want me to help ya with a song?" ### <-- HERE'S THE DAMN PROBLEM!
elif aim.lvl == 1:
z "lvl2"
elif aim.lvl == 2:
z "lvl3"
stop music
stop sound
if renpy.seen_label("memo"):
pass
else:
call memotuto
image mi = "story/aimx[aim.lvl]_[memtotalp].jpg"
scene mi with di
call memo
...
The thing is that 'aim' is reaching this label with its 'lvl' parameter set to 0, and, indeed, when I trigger this label, I get the correct dialogue: "You want me to help ya with a song?". BUT when I click once again, nothing happens! That line of code is still executing or rather, it's executed again. I have to click again for the game to advance and finally call the memo label. All the rest is working fine.
What surprises me the most is that when I trigger this label and get that line of dialogue and I press Shift+E in the game, my code editor indicates that it's executing that line of dialogue. Then, if I mouse click once more in the game and press Shift+E again, the code editor says that it's executing the SAME line of dialogue, as if I didn't click at all!
Another odd thing is that, once I've done that, if I scroll up with my mouse to rollback the game to before this label and I trigger the label again, everything works fine, I only have to click once and the memo label is called normally.
Does anyone know what's happening here? I could drop here the code for the memo label, but I really think that's not relevant at all, as it's as if that line of dialogue is repeating twice for some reason!