Mr Love
Had some time to play a little with this script. Here's one that will update "Objective's Hud" as player moves
through level.
Place this in a triggerzone anywhere in level. It is the Main Hud script for Objectives.
Replace my image names for yours, as many as needed. I used 3 for testing. Update script as you go along
desc = MAIN TRIGGER Display Using Variables
;Triggers
:state=0:dimvar=objective,setvar=objective 0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=languagebank\english\gamecore\huds\objectives1.png,hudname=objectives1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=languagebank\english\gamecore\huds\objectives2.png,hudname=objectives2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=languagebank\english\gamecore\huds\objectives3.png,hudname=objectives3,hudhide=1,hudmake=display,state=10
:state=10,scancodekeypressed=24:state=2
:state=2,varequal=objective 0:hudunshow=objectives1,hudunshow=objectives2,hudunshow=objectives3,state=5
:state=2,varequal=objective 1:hudshow=objectives1,state=3
:state=2,varequal=objective 2:hudshow=objectives2,state=3
:state=2,varequal=objective 3:hudshow=objectives3,state=3
:state=3,scancodekeypressed=0:state=4
:state=4,scancodekeypressed=24:hudunshow=objectives1,hudunshow=objectives2,hudunshow=objectives3,state=5
:state=5,scancodekeypressed=0:state=10
;End of Script
Use this script with a trigger or entity and place/attach where needed. All it does is display Text and add 1 to variable to change
"Objectives" Hud.
desc = Display NEW Objectives
;Triggers
;DISPLAY THE TEXT
:state=0,plrwithinzone=1:fpgcrawtextsize=24,fpgcrawtextx=50,fpgcrawtexty=90,fpgcrawtext=NEW OBJECTIVES Press The "O" Key,addvar=objective 1,state=1,sound=$0
:state=1,plrwithinzone=1:fpgcrawtextsize=24,fpgcrawtextx=50,fpgcrawtexty=90,fpgcrawtext=NEW OBJECTIVES Press The "O" Key
:state=1,scancodekeypressed=24:fpgcrawtextoff,state=3
;End of Script
I tested several times and works perfect. If you attach to an entity instead of using a triggerzone
you will have to change "plrwithinzone" to "plrdiswithin" of course.
best
My games never have bugs. They just develop random features..
Lots and lots of random features...