This script can not work. First you must read
Example::keypressed=46 1:state=1
as this
; do not forget the : in front of the line
:keypressed=46 1:state=1
And keypressed=46 1 is a condition which check if 46 key is pressed or keypressed=46 0 which check if 46 is not pressed.
For your problem:
Make a variable which you set to 1 if you are in the triggerzone, and to 0 if you are outside of the triggerzone.
;Artificial Intelligence Script
;Header
desc = Disable ESC IF PLAYER IN TRRIGER ZONE
;Triggers
:state=0:dimvar=intrigger,setvar=intrigger 0,state=1
:state=1,plrwithinzone=1:setvar=intrigger 1,state=2
:state=2,plrwithinzone=0:setvar=intrigger 0,state=1
;End of Script
then you go to Files\languagebank\english\gamebank\mygame\setuplevel.fpi and then search this line:
; Main Game
:state=1,escapekeypressed=1:pausegame,state=2
and replace it with:
:state=1,varequal=intrigger 0,escapekeypressed=1:pausegame,state=2
Corno_1
Games make the world better