Hello,
to debug my scripts, I use the the function fpgcrawtext. After I'm finished, I normally delete all references to this function and everything works fine. Now I have a script, which stops working after deleting the last fpgcrawtext. Can anybody tell me, where is my mistake.
Working Script
;Artificial Intelligence Script
;Header
desc = target which is only destroyable by one weapon
;Triggers
:state=0:state=1
:state=1,PLRDISTWITHIN=200:timerstart, fpgcrawtext=state2,state=2
:state=2,timergreater=1000:PLRADDHEALTH=-10,state=4
:state=2,usingweapon=1,SHOTDAMAGE=1:ADDHEALTH=250
:state=2,usingweapon=2,SHOTDAMAGE=1:ADDHEALTH=-250
:state=4:timerstart,state=2
;End of Script
Not Working script
;Artificial Intelligence Script
;Header
desc = target which is only destroyable by one weapon
;Triggers
:state=0:state=1
:state=1,PLRDISTWITHIN=200:timerstart, state=2
:state=2,timergreater=1000:PLRADDHEALTH=-10,state=4
:state=2,usingweapon=1,SHOTDAMAGE=1:ADDHEALTH=250
:state=2,usingweapon=2,SHOTDAMAGE=1:ADDHEALTH=-250
:state=4:timerstart,state=2
;End of Script
Any hint or help would be greatly appreciated.