;Artificial Intelligence Script
;Header
desc = enter triggerzone then game over
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\huds\[YOURHUDHERE],hudname=[NAME],hudhide=1,hudmake=display,state=1
:state=1,plrwithinzone=1:timerstart,state=2
:state=2:sound=$0,hudshow=[NAME]
:state=2,timergreater=5000:hudfadeout=[NAME],quitgame
;End of Script
This script shows a hud (make a hud* and enter the name and file extension in [YOURHUDHERE]) and quits the game (shows the title screen) after 4 seconds. Replace the [NAME] by a name that you give to that hud...
* maybe showing 'Mission failed' or something similar.
Hope that helped
All the free PCF Productions Stuff