If you want to be good at scripting, I will give you a very important tipp:
If something is not working like you want, do this:
- go through every line of your script or find the one which is not working
-check all the conditions and actions(right spelled, do they what you think they do, and so on)
-go from state to state to look for blocking states
-If everything seems correct, start at a total empty script and try another way
With this you will find your mistakes very fast:
;Artificial Intelligence Script
;Header
desc =
;Triggers
;If the player is in the zone go to state 1 and start a timer
:state=0,plrwithinzone=1:state=1,etimerstart
;activate posteffects and the go directly to state 3
:state=1:setposteffect=motionsickness,state=3
;with this state=1:setposteffects=motionsickness,state=3, you ignor the next two states 1
;freeze the player for 1 milisecond and let the cam shake with 5
:state=1:plrfreeze=1,camshake=5
; If the timer is greater than 10 sec go to state 2
:state=1,etimergreater=10000:state=2
;after you enable the posteffect, you disable him because you are in this line
;you can not come out of state 3, because if you are in the zone it loops state 3
;and if you are outside of the zone, you go to state 0, but this is just true if you are in the zone
:state=3,plrwithinzone=1:state=4
:state=3,plrwithinzone=0:state=0
;destroy the zone
:state=2:destroy
;totally unnessessary. it just make a loop
:state=4:state=3
;End of Script
If not, take this. But just if you really not find your mistake and you should, if you want to be a scripter:
;Artificial Intelligence Script
;Header
desc = This is the solution
;Triggers
:state=0,plrwithinzone=1:state=1,etimerstart,plrfreeze=10000
:state=1:camshake=5,setposteffect=motionsickness
:state=1,etimergreater=10000:state=2
:state=2:destroy
;End of Script
your scripter friend corno_1