Ok, first script:
;Artificial Intelligence Script
;Header
desc = Plr In Zone, activate entity specified in IF USED
;Triggers
:state=0,plrwithinzone=1,activated=1:activateifused=1,sound=$0,state=1
:state=1,plrwithinzone=0:state=0
Save this as plrinzoneactivateused2.fpi
Create a room with a remote door.
Put a triggerzone infront of the remote door, put Remote Door in it's if used section. Change it's main script to "plrinzoneactivateused2.fpi". Call it trigger1
Create a trigger zone on the other side of the room, (mark it with an entity or decal) give it "plrinzoneactivateused.fpi" and put the ifused as trigger1.
Put your player start marker in the room.
Test the level.
First walk to the door.... it won't open. Now walk to your second trigger zone
Now walk back to the door.
Voila, the door now opens.
This could be used in multiple ways, I hope you all find it useful.
Second script.
This stops the annoyance of it still saying "door locked, requires a key to open" when you actually have the key.
;Artificial Intelligence Script
;Header
desc = Key Door (Open 'With Key' and Close), better hud
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecoretextlockeddoor.tga,hudname=keydoorprompt,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecoretextpressentertouse.tga,hudname=entertouse,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60,plrhaskey=0:hudshow=keydoorprompt,hudfadeout=keydoorprompt
:state=10,plrdistwithin=60,plrhaskey=1:hudshow=entertouse,hudfadeout=entertouse
:state=10,plrdistwithin=60,plrhaskey=1,plrusingaction=1:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=2,plrdistfurther=60:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=10,setframe=0
;End of Script
Open up doorkey.fpi and delete all the contents, then copy this into it.
Put a door(key) segment in your level.
Put a key entity in your level. (I hid it behind a door on which I'd used my first script to make it harder to open.)
First walk up to the locked door.
Then go and get the key.
Then walk up to it again and open it.
Variation:
Change the bottom line to:
:state=3,frameatstart=0:state=4,setframe=0
Add another line at the bottom of the script:
Now the door will only open once(when you have the key) and then it will not let you open it again.
Hope these help.
E.D.
P.S. There are no restrictions on these..... licenses for simple scripts are just dumb.