HUD Message Text

The tag type hud_message_text is a simple mapping of names to sentences. These sentences can contain special keywords which are placeholders for information like a key that the player customized in their game settings.

Special Keywords
All keywords begin with the percent symbol %, and are typically key mappings. These also work for things such as swapping weapons where the pickup action or weapon name are represented; these are denoted with "custom". 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 custom-1 custom-2 custom-3 custom-4 custom-5 custom-6 custom-7 custom-8

Contents of ui\hud\hud_messages.hud_message_text
pickup=Hold %action to pick up %custom-1 swap_powerup=Press %action to swap %custom-1 for %custom-2 touch_device=Press %action to touch device %custom-1 custom_device=Press %action to %custom-1 swap_weapon=Hold %action to swap for %custom-1 remind_to_switch_weapons=Press %rotate-weapons to switch to %custom-1 enter_vehicle=Press %action to enter %custom-1 of %custom-2 exit_vehicle=Press %action to exit %custom-1 flip_vehicle=Press %action to flip %custom-1 respawn_fail_moving=Waiting to respawn...teammate moving to fast respawn_fail_unsafe=Waiting to respawn...too many enemies nearby respawn_fail_combat=Waiting to respawn...teammate in combat respawn_fail_vehicle=Waiting to respawn...teammate must exit vehicle

Creating a HUD_Message_Text tag
Open your text editor, and create as many lines as you want, in the format =

Save it to

\data\levels\test\tutorial\hud messages.hmt Open tool, execute tool hud-message levels\test\tutorial tutorial You're new tag will be available in the tutorial folder, to do with as you choose.

If you're using it for objective or help text, you can directly compile it using your scenario. Otherwise, you can reference the tag from ui\hud\default.hud_globals to replace vehicle and weapon messages.