Okay!
Here's what I have done:
I've made a RemoteDoor with the Name: RemDFinal
I've put a triggerpoint in front of the door with the IfUsed property set to the name: RemDFinal
There are six enemies that has to be killed in order to open the door, they all have the same death script set in their Destroy property
The scripts look like this:
The enemies death script:
;Artificial Intelligence Script
;Header
desc = Open remote door when all enemies are killed
;Triggers
:state=0:state=1,suspend,coloff
:incvar
;End of Script
The trigger zone script:
;Artificial Intelligence Script
;Header
desc = Open remote door when all enemies are killed (For trigger zone)
;Triggers
:state=0,plrwithinzone=1,varequal=6:activateifused=1,sound=$0,state=1
:state=1,plrwithinzone=0:state=0
;end of script
I think I understand the problem here; The variable has to be global.
You said something about creating a variable. Could you, or anyone please explain this to me, cuz' I don't know how.