Quote: ";Artificial Intelligence Script By Conjured Entertainment"
That's funny.
I don't remember writing any scripts like this
Quote: "
:state=0:settargetname=cs1
:state=2,plrdistwithin=40:activate=9,globalvar=1,state=3
globalvar=1
"
That looks like something from the old v109 cash system.
This script is so different from the original, it should have been written from scratch.
Maybe, something like this
;Artificial Intelligence Script
;Header
desc = Investigate an Area using x
;Triggers
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\Investigate\Investigate.tga,hudname=Invest,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\Investigate\Unknown.tga,hudname=After,hudhide=1,hudmake=display,state=1
:state=1,plrdistwithin=40:hudshow=Invest,state=2
:state=2,scancodekeypressed=45:hudshow=After,hudunshow=Invest,state=3
:state=2,plrwithinzone=0:hudunshow=Invest,hudunshow=After,state=1
:state=3,scancodekeypressed=0:state=4
:state=4,scancodekeypressed=45:hudunshow=After,state=5
:state=4,plrwithinzone=0:hudunshow=Invest,hudunshow=After,state=1
:state=5,scancodekeypressed=0:state=6
:state=6,plrwithinzone=0:hudunshow=Invest,hudunshow=After,state=1
;End Script
It checks for the key release and for the player leaving the zone when huds are displayed or not, for looping.
I changed the path to the second hud to place it in the same folder as the first one.
I also corrected spelling errors in file names, which is an easy way to foul things up when we're in a hurry.
Quote: "
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\Investigate\Investigate.tga,hudname=Invest,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\Investigate\Unknown.tga,hudname=After,hudhide=1,hudmake=display,state=2
"