I am having an issue with some persistent values and was wondering if there is a way to monitor them live while the game is running for testing?
Specifically I am having trouble accomplishing this:
Code: Select all
if persistent.truecheck == "True":
$ persistent.ending == "ch2truejmp"
else:
$ persistent.ending == "ch2jmp"
The above code, persistent.truecheck is a flag set to True at the end of the game. Depending on that, the value of $ persistent.ending will be set.
Code: Select all
screen main_menu:
tag menu
if persistent.ending == "ch2jmp":
use ch2jmp
elif persistent.ending == "ch2truejmp":
use ch2truejmp
if persistent.ending == "ch3jmp":
use ch3jmp
elif persistent.ending == "ch3truejmp":
use ch3truejmp
if persistent.ending == "ch4jmp":
use ch4jmp
elif persistent.ending == "ch4truejmp":
use ch4truejmp
if persistent.ending == "titletrue":
use titletrue
elif persistent.ending == "title":
use title
else:
use title
Code: Select all
screen ch2jmp:
tag menu
imagemap:
ground "data/main_menu/Title_NC_Idle.png"
idle "data/main_menu/Title_NC_Idle.png"
hover "data/main_menu/Title_NC_Hover.png"
hotspot(474,364,332,42) action Start("chapter2")
hotspot(466,476,340,40) action ShowMenu("load")
hotspot(470,532,346,40) action ShowMenu("preferences")
hotspot(474,586,316,40) action ShowMenu("extras")
hotspot(486,642,310,38) action Quit()
screen title:
tag menu
imagemap:
ground "data/main_menu/Title_Idle.png"
idle "data/main_menu/Title_Idle.png"
hover "data/main_menu/Title_Hover.png"
hotspot(466,422,334,36) action Start()
hotspot(466,476,340,40) action ShowMenu("load")
hotspot(470,532,346,40) action ShowMenu("preferences")
hotspot(474,586,316,40) action ShowMenu("extras")
hotspot(486,642,310,38) action Quit()