Quote: "My issue is that i have a terminal right outside of a outpost, to welcome the player with some information about the game. I have a trigger zone right beside the terminal, ive named the terminal terminalA and the trigger zone, trigger_zone. Now this is ware i come to ask you guys for some help, i made the .jpg file with a black background green text, and i want it to pop up when the user approaches the terminal. To do this, i need the trigger zone to work.
Basically im asking any one have any experience with this and could tell me how to do it right? thanks in advance."
You actually don't need to use a trigger zone. I've done many different things in the way you described. So many of our developments have the player approaching a terminal or other item to have a hud come up. Here is an example.
1. Put this code in a script:
;Artificial Intelligence Script
;Header
desc = Terminal Information Display
;Triggers
:state=0:hudreset,hudx=86.2,hudy=23,hudimagefine=<path_to_your_hud.extention>,hudname=HUDNAME,hudhide=1,hudmake=display,state=1
:state=1,plrdistwithin=50:sound=$0,hudshow=HUDNAME,state=2
:state=2,plrdistfurther=40:hudfadeout=HUDNAME,destroy
;End of Script
Change the <path_to_your_hud.extention> to where your hud is, and change HUDNAME to whatever you want (must be the same for both HUDNAME instances).
2. Place your terminal on the map. Right-click it to access the properties.
3. In the Script AI Main, assign the script you created with the above code.
4. Click Apply.
Here is how the script works:
1. Player approaches the terminal. When they hit the distance parameter of 50, the hud displays.
2. When the player moves away the hud disappears and the script ends.
As I mentioned before, I have many different variations of scripts that are assigned to objects that give the player information. This example was one of the easier ones. You can adjust the "plrdistfurther=40" and "plrdistwithin=50" to whatever suits you. If you want the hud info to keep showing up when the player walks away and returns, you can do the following by changing this line of code:
:state=2,plrdistfurther=40:hudfadeout=HUDNAME,state=1
Hope that gives you some help.
- BlackFox

RPG Mod- Create a world full of adventure