;Artificial Intelligence Script
;Triggers
:state=0,plrhaskey=1:state=1
:state=0,plrcrouching=0,plrwithinzone=1:state=2
:state=1:destroy
:state=2:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=250,fpgcrawtextg=0,fpgcrawtextb=0,fpgcrawtextx=50,fpgcrawtexty=70
:state=2:fpgcrawtext=You were noticed.
:state=2:plraddhealth=-100
;End of Script
This is what I have already but it kills the player even when you are crouched in the zone. I've done different variations but I can't seem to fix the problem.
Pretty much I need the zone to kill the player if he is not crouching in the zone. When the player gets a certain item (being the key) the zone destroys itself so the player can walk normally through the zone.
I'm using 1.19. Anyone have any helpful ideas?
PC Specs: AMD X4 2.7Ghz, 8GB DDR3 RAM, Nvidia 9800GT, Win. 7 Pro 64 Bit