So obviously, I want the game to later differ, if the character had been already visited or not.
But for a weird reason, the game always jumps back to the first scene (as if the place had never been visited).
Well, everytime a place is visited, I activate a statement
Code: Select all
label park_1:
$ park_1_done
scene bg park
#insert conversation here
Code: Select all
label a1:
if "imagemap_1":
jump schule_2
elif "imagemap_2":
jump schule_3
elif "imagemap_3":
jump schule_4
elif "imagemap_4":
jump schule_5
elif "imagemap_5":
jump schule_6
elif "imagemap_6":
jump schule_7
(I had tried out to turn the order the other way which somehow always ended with the game jumping to the very end, even though $ imagemap_6 was definitly not set on True anywhere ô__ô)
Whenever the place had been visited, the best friend will ask where the MC went, the MC will name the correct place, they talk about it, game goes on until the next imagemap.
AND THEN the game doesn't call the NEXT scene of the chosen place, if I decide to visit a place twice.
For example, the first visit to the park will have the MC meet a cat. The second time, he will look for the cat and feed it. But the game does always call the first visit.
The code for choosing the spots would be
Code: Select all
q "Hm, what to do... \nMary should be in the park with Andy..."
$ imagemap_1 = True
$ result = renpy.imagemap("Backgrounds/schule.png", "Backgrounds/hover.png", [
(41, 41, 227, 140, "park_e"),
(346, 39, 531, 136, "untere_etage_e"),
])
if result == "park_a":
call park_a
elif result == "untere_etage_a":
call untere_etage_a
label park_a:
if park_1_done:
stop music
jump park_2
else:
stop music
jump park_1
label untere_etage_a:
if untere_etage_1_done:
stop music
jump untere_etage_2
else:
jump untere_etage_1
I have also tried it with
Code: Select all
label sporthalle_a:
if sporthalle_1_done:
stop music
jump sporthalle_2
if not sporthalle_1_done:
stop music
jump sporthalle_1
I am kind of at a loss about how to stop that circling. I can't exactly figure out what I am doing wrong.
All statements are set to False in the init, so it can't be that some of them are active without reason.
Or maybe I am just doing it more complicated then I should again?
Or I use old code which results in a circle? (but then again, I ran through pretty much every text on http://www.renpy.org/wiki/ that had a "if" in it and tried out most of them...)