Ever wonder how to get those damn little blue messages at the top of your screen? I can tell you how.
What you'll need: HEK and notepad (duh)
1: You'll need two files in
data\levels\whateveryourlevelnameis ; a hud messages.hmt file, and a whateveryourlevelnameis.scenario file.
2: You MUST name it hud messages.hmt. Because tool is a little evil, it LOOKS for that only.
3: Creating your messages! The format for that is:
<name>=<text>
I.E: obj1=Find how to create HUD Messages
4: Create all the messages you need using the above format. Save as hud message.hmt in
UNICODE!5: Compiling in tool: Use this command: tool hud-messages levels\myscenario myscenario .
So why do we NOT need the / after myscenario? Because tool has it's ways. It automatically does it. The scenario name is what ever is before the .scenario in your folder. It creates them, and even better, REFERENCES them IN the scenario! Tool is so nice.
So now you know how to create HUD messages... oh, and you can add icons to your messages using %whatever ; whatever could be:
Originally Posted by Listing 1
a-button
b-button
x-button
y-button
black-button
white-button
left-trigger
right-trigger
dpad-down
dpad-left
dpad-right
start-button
back-button
left-thumb
right-thumb
left-stick
right-stick
action
throw-grenade
primary-trigger
integrated-light
jump
use-equipment
rotate-weapons
rotate-grenades
zoom
crouch
accept
back
move
look
Now to add it in a script, use:
(show_hud_help_text true) ;this allows the game to show message text
(hud_set_help_text <message name>) ;this is the command to display the message on screen
(hud_set_objective_text <message name>) ;this command puts the message in you pause menu thing
(sleep 200) ;this is here so the message will stay up for about 6 seconds
(show_hud_help_text false) ;this disables showing the help text. if this isnt here, the help text will stay up forever
(Thanks Donut)
Hope this helps you guys!
Edited by DarkZealot on Jan 25, 2008 at 12:41 PM