This was the finished and working script
;Artificial Intelligence Script
;Header
desc= Analize Object
;Triggers
:plrdistfurther=110:hudunshow=a,state=1
:state=0:coloff
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\text\analize.tga,hudname=a,hudhide=1,hudmake=display,state=1
:state=1,pickobject=1,plrdistwithin=100:hudshow=a,state=2
:state=2,pickobject=1,plrdistwithin=100,plrusingaction=1:timerstart,plrdisable=100000,hudunshow=a,state=3
:state=3:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=3:fpgcrawtext=There's a large blood smear on the floor.
:state=3,timergreater=500,plrusingaction=1:timerstart,state=4
:state=3,scancodekeypressed=14:plrdisable=0,state=0
:state=4:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=4:fpgcrawtext=It leads to that direction.
:state=4,timergreater=500,plrusingaction=1:timerstart,state=6
:state=4,scancodekeypressed=14:plrdisable=0,state=0
:state=6:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=6:fpgcrawtext=I am not sure I want to follow the blood smears.
:state=6,timergreater=500,plrusingaction=1:timerstart,plrdisable=0,state=10
:state=6,timergreater=1500:plrdisable=0,state=10
:state=6,scancodekeypressed=14:plrdisable=0,state=10
:state=10,timergreater=1500:state=11
:state=11,pickobject=1,plrdistwithin=100,plrusingaction=1:timerstart,plrdisable=100000,state=6
;End of Script
Then stopped working when: i applied the script to 4 entities in a room, so, i thought in changing the line hudimagefine, i did it, didn't work, then i think the problem was that in the 4 entities in the room, because the line
:plrdistfurther=110:hudunshow=a,state=1
make the engine hide the hud "a" and the name for the hud is the same for the 4 entities, so, if hte player is within 100 units to the first entitiy, but is further 110 to the second entity, the engine will unshow the hud anyway, so i changed the name of the hud in the script of every entity (first entity, hudname=a,second,hudname=b, etc) and changed t he hudshow and hudunshow comands acording to the entity, still don't working.
BUT yesterday i made a backup of the original finished script (4 post), i made a copy of the back up and use the original script in a entity in a empty room, it don't work
So i thought the problem was in the image, i checked the folders, no problem, checked the fromats (.tga), no problem.
I really don't know what i'm doing wrong
-Why didn't God take gaga,justin bieber or kesha instead of Randy Rhoads, Cliff Burton or Dio?
