I made this little script for people trying to design games based around timers (hold off zombies for half an hour and then the door to the next level opens, etc.)
;Artificial Intelligence
;Header
desc = Door Opens After a Certain amount of time has passed, Created by Crescent Moon (Requirse Version 1.16)
;Triggers
:state=0:timerstart,state=1
:state=1,plrdistwithin=60:fpgcrawtextsize=24,fpgcrawtextfont=arial
:state=1,plrdistwithin=60:fpgcrawtextg=0,fpgcrawtextb=0,fpgcrawtextr=0
:state=1,plrdistwithin=60:fpgcrawtextx=50,fpgcrawtexty=50
:state=1,plrdistwithin=60:fpgcrawtext="This door will not open yet"
;Adjust time in milliseconds here
:state=1,timergreater=60000:state=2
:state=2:setframe=0,sound=$0,incframe=0,frameatend=0,coloff,state=3
;End Script
Thanks to Flatlander at http://forum.thegamecreators.com/?m=forum_view&t=162763&b=23 for help with fpgcrawtext
[WIP] Paranorma Chapter 1, The Horror at Silent Inn
Level 1 - Suspended