Sorry- it took a bit longer than ten minutes. Was trying to be as detailed as possible with screenshots, descriptions, video PLUS eat my lunch at the same time.
---
The following is a "down and dirty" example of displaying one goggles hud with one trigger and script, then displaying a second goggles hud with a second trigger and script.
Layout and concept
First off, I lay out my level. In this case it is nothing fancy. You will see the player start marker, the first trigger (which will run googles hud #1), and the second trigger (which will run googles hud #2).
Now I enter the level and no goggles hud is displayed off the start.
I reach the first trigger and the first googles hud is activated.
After I have reached a certain distance
away from where the trigger was placed, the hud disappears.
I reach the second trigger and the second goggles hud appears.
When I am a certain distance
away, the second hud disappears.
Scripts
The first trigger script contains the following:
;Artificial Intelligence Script
;created with NFM Script Editor
;Header
;desc =first googles hud
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\goggles_snow.png,hudname=goggles1,hudhide=1,hudmake=display,state=1
:state=1,plrwithinzone=1:hudshow=goggles1,state=2
:state=2,plrdistfurther=100:hudunshow=goggles1,state=3
:state=3:none
;End Of Script
The second trigger script is as follows:
;Artificial Intelligence Script
;created with NFM Script Editor
;Header
;desc =on screen text
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\goggles_blood.png,hudname=goggles2,hudhide=1,hudmake=display,state=1
:state=1,plrwithinzone=1:hudshow=goggles2,state=2
:state=2,plrdistfurther=100:hudunshow=goggles2,state=3
:state=3:none
;End Of Script
Notice a key importance when running scripts in a level. If you have one script that calls "googles" as the hudname, you
cannot use that same hudname in a second script. In other words, they must have unique names. In my example, I used "googles1" and "googles2".
Second, the first script can
only control the hud it defines. It cannot show/unshow the second hud since it is defined in the second script (and vice versa). The scripts also destroy (stop) once I am past the defined "distance further" amount. You can alter according.
Feel free to dissect and add to your development. This is merely just an example to give explanation to how a script handles hud(s) and how to switch. I use one master script to control things like this, but this method is the easiest method to do.
Video Demonstration
Here is a quick video demo showing it working.
There's no problem that can't be solved without applying a little scripting.