- Apr 14, 2021
- 745
- 1,524
Well, for example, the code looks like thisLV is an array...
label home_road:
$ temp = 0
$ iloc = 9
scene black with dissolve
scene home_road with dissolve
play sound "sound/184870__keweldog__bird-chirps5.mp3"
if not LV[iloc]:
$ LV[iloc] = 1
call hide_hud from _call_hide_hud_386
mc nor "My grandparents told me not to go wander too deep into the forest alone.."
mc nor "But I'm an adult now and they are not here anymore, I should be okay right?"
call show_hud from _call_show_hud_557
menu:
"TO DEEP INTO THE FOREST":
$ ps("walk_forest")
$ renpy.notify("You go deeper into the forest off the path.")
jump home_forest
iloc is set to 9 at the beginning, so LV[iloc] is LV[9]. Does it give the 9th element of the iloc array? And, about the "if not" part. My understanding is that LV[9] in this case is 0 by default, hence it is triggered the first time you enter this place, and then it is set to 1, so it will no longer be triggered. But why is LV[9] = 0 by default, or am I mistaken?