;Artificial Intelligence Script
;Header
desc = Plr Hurt In Zone And Wait
;Triggers
:state=0:timerstart,plrwithinzone=1:state=1
:state=1, timergreater=5000:plraddhealth=-10
That is what you have so far, but here's what I found.
In line 2, the timer will always be greater after 5 seconds has elapsed. You also have 3 colons in the top line, and plrwithinzone isn't a action. Here's the fixed code.
;Artificial Intelligence Script
;Header
desc = Plr Hurt In Zone And Wait (Edited by KeoC)
;Triggers
:state=0,plrwithinzone=1:timerstart,state=1
:state=1,plrwithinzone=1,timergreater=5000:plraddhealth=-10,state=0
:state=1,plrwithinzone=0:state=0
That should fix it, I'll go test it now.
(Edit) Fixed a bit of it, going to test again.
Image made by the overworked Biggadd.