Tis the season.
Map Display
Here is a script I use to show a map (multiple map huds). You will need to change the images and hudnames to suit your needs, but the concept is the same. Steps are as follows:
1. Assign this script to a trigger AI Main script field
2. Place trigger where the player would pickup the map and be able to display it. If you don't need them to pickup a map first, then place the trigger where the player would hit the zone.
Script for the trigger AI Main is as follows:
;Artifical Inteligence Script::::::::::::::::::::::::::
desc = Shows Map Text HUD (When M Key Is Pressed)
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\imperium_df\imp_df_l01_map01.tga,hudname=map1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\imperium_df\imp_df_l01_map02.tga,hudname=map2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\imperium_df\imp_df_l01_map03.tga,hudname=map3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\imperium_df\imp_df_l01_map04.tga,hudname=map4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\imperium_df\imp_df_l01_map05.tga,hudname=map5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\imperium_df\imp_df_l01_map06.tga,hudname=map6,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\imperium_df\imp_df_l01_map07.tga,hudname=map7,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\imperium_df\imp_df_l01_map08.tga,hudname=map8,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\imperium_df\imp_df_l01_map09.tga,hudname=map9,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\imperium_df\imp_df_l01_map10.tga,hudname=map10,hudhide=1,hudmake=display,state=10
;M Key Pressed
:state=10,plrwithinzone=1
:state=10,scancodekeypressed=50:hudshow=map1,etimerstart,state=15
:state=15,etimergreater=500,scancodekeypressed=50:hudunshow=map1,state=20
:state=20,scancodekeypressed=50:hudshow=map2,etimerstart,state=25
:state=25,etimergreater=500,scancodekeypressed=50:hudunshow=map2,state=30
:state=30,scancodekeypressed=50:hudshow=map3,etimerstart,state=35
:state=35,etimergreater=500,scancodekeypressed=50:hudunshow=map3,state=40
:state=40,scancodekeypressed=50:hudshow=map4,etimerstart,state=45
:state=45,etimergreater=500,scancodekeypressed=50:hudunshow=map4,state=50
:state=50,scancodekeypressed=50:hudshow=map5,etimerstart,state=55
:state=55,etimergreater=500,scancodekeypressed=50:hudunshow=map5,state=60
:state=60,scancodekeypressed=50:hudshow=map6,etimerstart,state=65
:state=65,etimergreater=500,scancodekeypressed=50:hudunshow=map6,state=70
:state=70,scancodekeypressed=50:hudshow=map7,etimerstart,state=75
:state=75,etimergreater=500,scancodekeypressed=50:hudunshow=map7,state=80
:state=80,scancodekeypressed=50:hudshow=map8,etimerstart,state=85
:state=85,etimergreater=500,scancodekeypressed=50:hudunshow=map8,state=90
:state=90,scancodekeypressed=50:hudshow=map9,etimerstart,state=95
:state=95,etimergreater=500,scancodekeypressed=50:hudunshow=map9,state=100
:state=100,scancodekeypressed=50:hudshow=map10,etimerstart,state=105
:state=105,etimergreater=500,scancodekeypressed=50:hudunshow=map10,state=110
:state=110,scancodekeypressed=50:etimerstart,state=115
:state=115,etimergreater=500:state=10
;End of Script
Press O to show Objectives
To display objectives, you can modify the above script to do the same thing. Instead of showing multiple huds, you can show just one, two, three, etc. Some of us have detailed objective huds we do (such as checkmarks when completed, etc). The concept is still the same as the map script, except if you want to use the O key, change the "scancodekeypressed=11".
Press T to take
Here is a script I use to pickup a key (using the T key). Notice the hud is shown when the player is
close to the key (
plrdistwithin=50) and they press T (
scancodekeypressed=20) to pickup. You can modify or make a variety of scripts with this or others.
;Artificial Intelligence Script
;Header
desc = Level 1 Pickup Key
;Triggers
:state=0:hudreset,hudx=86.2,hudy=21,hudimagefine=languagebank\english\gamecore\NorthernFox\WW2_GU\Huds\ww2_gu_l01_key01.png,hudname=l01_key01,hudhide=1,hudmake=display
:state=0:state=5
:state=5,plrdistwithin=50:hudshow=l01_key01,state=10
:state=10,scancodekeypressed=20:hudunshow=l01_key01,playertake,coloff,state=30
:state=10,plrdistfurther=60:hudunshow=l01_key01,state=5
:state=30:none
;End of Script
I would suggest you take a look at the
Community Guides if you have time. They have a lot of example scripts you can use, modify to your needs.
Twitter: @NFoxMedia