I need to have a wall destroyed if you kill the 9 bad guys. And it should be simple but
being I have spent 2 days on it and the wall is still standing, I guess I can't find the answer.
I can make it disappear if you collect something, or give someone something or if you run into a
trigger, but not if you have to kill 9 mobs.
Destroywall.fpi
;Artificial Intelligence Script
;Header
desc = False Wall Activated- Destroywall.fpi
;Triggers
:state=0:state=1
:state=1,activated=1:runfpidefault=2
:state=1,activated=0:state=0
;End of Script
Pickup Collectable ItemDestroywall.fpi
;Created by the UNLEASHED Custom Script Service 2011.11.10
desc = Pickup Collectable ItemDestroywall.fpi
;START
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupaidol.tga,hudname=idolpickprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=idolpickprompt,hudfadeout=idolpickprompt,addvar=IdolCollected 1,state=666
:state=666,plrwithinzone=1:activateifused=1
;END
So I thought these 2 scrpips would do the trick
a counter and actavator to destroy the wall.
;Created by the UNLEASHED Custom Script Service 911.11.10
desc = Displays Items Collected and Total Number to Collect
;START
;Declare Variables
:state=0:dimvar=doorCollected,setvar=doorCollected 0
:state=0:dimvar=TotaldoorItems,setvar=TotaldoorItems 9
:state=0:state=2
:state=2,varequal=TotaldoorItems 9:activateifused=1
;END
And the destroy script.
desc = Pickup GhostCollected Collectable Item
;START
:state=0:hudreset,hudx=50,hudy=70,hudimagefine=gamecore\text\destroyedGhost.tga,hudname=Ghostprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=Ghostprompt,hudfadeout=Ghostprompt,addvar=GhostCollected 1,state=11
:state=11:addvar=doorCollected 1,state=15
;END
Granted I am running two
addvar=GhostCollected 1,state=11
:state=11:addvar=doorCollected 1,state=15
as I need both as addvar=GhostCollected has a 80 count and
addvar=doorCollected is a 16 count in game.
Yes i seperated then and the wall is still standing.
So how to count destroyed and remove a wall when all are destroyed?
version 119
Life is a short trip to another world