Ok. Its a while since a post.
I have written a script in Ply's mod. It doesnt work for some reason and i dont understand why! I believe that the variables in the setting script do not get declared. That is the only explanation there is...
The Code Set To Bond1's Zombies:
;Artificial Intelligence Script
;Header
desc = Zombie Mod (Destroy)
;Triggers
:state=0:setframe=97,state=11
:state=11:incframe=97
:state=11,frameatend=97:state=1
:state=1,alphafadeequal=100:decalphafade=0
:state=1,alphafadeequal=0:state=2
:state=2:incvar=zombieskilled 1,incvar=scoresystem 10,state=3
:state=3:destroy
;End of Script
The Setting Script:
;Artificial Intelligence Script
;Header
desc = Zombie Mod (Set Up)
;Triggers
:state=0:dimvar=zombieskilled
:state=0:dimvar=scoresystem
:state=0:setvar=Zombieskilled 0
:state=0:setvar=scoresystem 0
:state=0:state=1
;End of Script
The Barrior Script (should open after 10 kills):
;Artificial Intelligence Script
;Header
desc = Zombie Mod (Use Entity 1000)
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudsize=30,hudtext=You require 1000 XP Points,hudname=usedoora,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudsize=30,hudtext=Pay 1000 XP Points to open door,hudname=usedoorb,hudhide=1,hudmake=display,state=10
:state=10:vargreater=scoresystem 99:state=2,state=1
:state=1,plrdistwithin=60:hudshow=usedoora
:state=1,plrdistfurther=60:hudfadeout=usedoora,state=10
:state=2,plrdistwithin=60:hudshow=usedoorb
:state=2,plrdistfurther=60:hudfadeout=usedoorb
:state=2,plrdistwithin=60,scancodekeypressed=33:state=3,state=10
:state=3:decvar=scoresystem 1000,hudfadeout=usedoora,destroy
;End of Script
We need also a segment/entity that will hold back the user. Something that other entities can pass through (ie Zombies, bullets, explosions) but the user cant pass through.