Difference between revisions of "Text"

From GTAMods Wiki
Jump to navigation Jump to search
Line 111: Line 111:
 
[[File:Style1VC.png|thumb|One of several types of a big message being displayed.]]
 
[[File:Style1VC.png|thumb|One of several types of a big message being displayed.]]
  
A big message is a large styled text generally positioned on the center or bottom right side of the screen.
+
A big message is a large styled text generally positioned on the center or bottom right side of the screen. A big message can prioritize its display over other big messages of the same style. A high-priority big message immediately overwrites any other big messages of the same style currently being displayed. Any low-priority big messages will queue up until the one being currently displayed is finished. Big messages of styles 1 and 2 behaves differently — their fading sequence must end before the overwriting text is displayed. They still obey the time duration so if the time duration for the overwriting text ends before it is displayed, it will not display at all.
  
 
=== Mission script ===
 
=== Mission script ===

Revision as of 07:33, 15 February 2016

This page documents text displayed on the screen. For the text format stored in the games, see GXT.

Help message

A help message being displayed.

A help message is text displayed in the top left corner of the screen with a dark semi-transparent rectangular background. The default text color of the help message is gray, which uses the token ~w~ in the GXT file.

Mission script

The following tables list all opcodes and native functions related to help messages that can be used in a script.

Opcodes

03E5 GTA III Vice City San Andreas PRINT_HELP
03E6 GTA III Vice City San Andreas CLEAR_HELP
0512 Vice City San Andreas PRINT_HELP_FOREVER
0513 San Andreas PRINT_HELP_FOREVER_WITH_NUMBER
08FE San Andreas IS_HELP_MESSAGE_BEING_DISPLAYED
0989 San Andreas SET_HELP_MESSAGE_BOX_SIZE
0A2A San Andreas IS_THIS_HELP_MESSAGE_BEING_DISPLAYED

Native functions

GTA IV CLEAR_HELP
GTA IV PRINT_HELP
GTA IV PRINT_HELP_FOREVER

Hardcoded messages

The following are lists of all help messages that are hardcoded into the games to appear in certain events. Like all help messages, they can be cleared through the script.

GTA III

GXT Event
CHEAT1 Inputting most cheats.
CHEAT2 Inputting weapon cheats.
CHEAT3 Inputting health cheat.
CHEAT4 Inputting armor cheat.
CHEAT5 Inputting wanted level cheats.
CHEAT6 Inputting money cheat.
CHEAT7 Inputting weather cheats.
CINCAM Selecting cinematic camera
GA_6 Acquiring car bomb with timed detonator at the bomb shop.
GA_6B
GA_7 Acquiring car bomb with engine ignition detonation at the bomb shop.
GA_7B
GA_8 Acquiring car bomb with remote-control detonator at the bomb shop.
GA_21 Attempting to open a garage that already has the maximum number of cars allowed.

Vice City

GXT Event
CHEAT1 Inputting most cheats.
CHEAT2 Inputting weapon cheats.
CHEAT3 Inputting health cheat.
CHEAT4 Inputting armor cheat.
CHEAT5 Inputting wanted level cheats.
CHEAT7 Inputting weather cheats.
GA_6 Acquiring car bomb with timed detonator at the bomb shop.
GA_6B
GA_7 Acquiring car bomb with engine ignition detonation at the bomb shop.
GA_7B
GA_8 Acquiring car bomb with remote-control detonator at the bomb shop.
GA_21 Attempting to open a garage that already has the maximum number of cars allowed.
PROP_1 Attempting to pickup a forsale property pickup without enough money.
PROP_2 Attempting to pickup a forsale property pickup while on a mission.
PU_CF1 Attempting to pick up a weapon that you already have of the same type.
PU_CF3
PU_CF4

Big message

File:Style1VC.png
One of several types of a big message being displayed.

A big message is a large styled text generally positioned on the center or bottom right side of the screen. A big message can prioritize its display over other big messages of the same style. A high-priority big message immediately overwrites any other big messages of the same style currently being displayed. Any low-priority big messages will queue up until the one being currently displayed is finished. Big messages of styles 1 and 2 behaves differently — their fading sequence must end before the overwriting text is displayed. They still obey the time duration so if the time duration for the overwriting text ends before it is displayed, it will not display at all.

Mission script

Opcodes

00BA GTA III Vice City San Andreas PRINT_BIG
01E3 GTA III Vice City San Andreas PRINT_WITH_NUMBER_BIG
0217 GTA III Vice City San Andreas PRINT_BIG_Q
0218 GTA III PRINT_WITH_NUMBER_BIG_Q
036D GTA III Vice City San Andreas PRINT_WITH_2_NUMBERS_BIG
036E GTA III PRINT_WITH_3_NUMBERS_BIG
036F GTA III PRINT_WITH_4_NUMBERS_BIG
0370 GTA III PRINT_WITH_5_NUMBERS_BIG
0371 GTA III PRINT_WITH_6_NUMBERS_BIG
03D6 GTA III Vice City San Andreas CLEAR_THIS_BIG_PRINT

Display text

Text can be displayed in a very customizable way. The following table lists all opcodes related to displaying this type of text.

Opcode Games Command Image
033E GTA III Vice City San Andreas DISPLAY_TEXT 033E.png
033F GTA III Vice City San Andreas SET_TEXT_SCALE 033F.png
0340 GTA III Vice City San Andreas SET_TEXT_COLOUR 0340.png
0341 GTA III Vice City San Andreas SET_TEXT_JUSTIFY
0342 GTA III Vice City San Andreas SET_TEXT_CENTRE 0342.png
0343 GTA III Vice City San Andreas SET_TEXT_WRAPX 0343.png
0344 GTA III San Andreas SET_TEXT_CENTRE_SIZE
0345 GTA III Vice City San Andreas SET_TEXT_BACKGROUND 0345.png
0346 GTA III SET_TEXT_BACKGROUND_COLOUR 0346.png
0347 GTA III SET_TEXT_BACKGROUND_ONLY_TEXT 0347.png
0348 GTA III Vice City San Andreas SET_TEXT_PROPORTIONAL 0348.png
0349 GTA III San Andreas SET_TEXT_FONT 0349.png
03E0 GTA III San Andreas SET_TEXT_DRAW_BEFORE_FADE
03E4 GTA III Vice City San Andreas SET_TEXT_RIGHT_JUSTIFY 03E4.png
03F0 GTA III Vice City San Andreas USE_TEXT_COMMANDS
045A GTA III Vice City San Andreas DISPLAY_TEXT_WITH_NUMBER
045B GTA III Vice City San Andreas DISPLAY_TEXT_WITH_2_NUMBERS