I am having a difficult time with a concept I am working on. I have a level where the player has two options to enter a specific area. One is on the main road, the second is a pathway behind some cliffs. Along the road is a character that is "guarding" the road access and I placed a trigger zone (including using the shift+left mouse to make the zone cover a larger area). If the player hits this zone, they are "detected", at which point my hud comes up properly, the sound plays, and when I press the key that the hud shows, it quits the game (as per my script). The hud states "You have failed. You were detected. Press Enter to Continue". Here is the script I am using for the alarm zone:
;Artificial Intelligence Script
;Header
desc = Alarm Zone
;Triggers
:state=0:hudreset,hudx=50,hudy=20,hudimagefine=gamecore\huds\at\at_l5detected.tga,hudname=l5detected,hudhide=1,hudmake=display,state=10
:state=10,plrwithinzone=1:hudshow=l5detected,activateifused=1,state=20,loopsound=audiobank\at\world\klaxon.wav,plrfreeze=60000
:state=20,plrwithinzone=0:hudunshow=l5detected,state=10
:state=20,scancodekeypressed=28:hudunshow=l5detected,rundecal=-1,state=30
:state=30:activateallinzone=1,state=40
:state=40:quitgame=1
;End of Script
I then thought I would try to make it so once the "Press Enter to continue" came up and the player does press Enter, it would restart the level. However, from this point forward I have drawn a blank on this. I am not certain how I could best perform this idea, and would like to ask for some guidance or suggestions. Do I want to use checkpoints? And if I do make it so that they are detected, do I subtract a life?
I am not much of a scripter, as I have been learning by trial and error, as well as Mike helping me and teaching me. Now that he is away, I am attempting to learn more on my own.
I would be grateful for some direction.
Thank you
Cathy