Difference between revisions of "Text"

From GTAMods Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
== Help message ==
 
== Help message ==
 
[[File:VC 03E5 Eng.png|thumb|A help message being displayed.]]
 
[[File:VC 03E5 Eng.png|thumb|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 [[GXT#Tokens|token]] <code>~w~</code> in the GXT file. The following table lists all opcodes and native functions related to help messages.
+
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 [[GXT#Tokens|token]] <code>~w~</code> 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 ====
 
{|
 
{|
!colspan="3" {{a|l}} |Opcodes
 
|-
 
 
|[[03E5]] ||{{Icon|t}} ||PRINT_<wbr>HELP
 
|[[03E5]] ||{{Icon|t}} ||PRINT_<wbr>HELP
 
|-
 
|-
Line 21: Line 23:
 
|[[0A2A]] ||{{a|r}} |{{Icon|SA}} ||IS_<wbr>THIS_<wbr>HELP_<wbr>MESSAGE_<wbr>BEING_<wbr>DISPLAYED
 
|[[0A2A]] ||{{a|r}} |{{Icon|SA}} ||IS_<wbr>THIS_<wbr>HELP_<wbr>MESSAGE_<wbr>BEING_<wbr>DISPLAYED
 
|}
 
|}
 +
 +
==== Native functions ====
 
{|
 
{|
!colspan="2" {{a|l}} |Native functions
 
|-
 
 
|{{Icon|4}} ||[[CLEAR_HELP]]
 
|{{Icon|4}} ||[[CLEAR_HELP]]
 
|-
 
|-
Line 29: Line 31:
 
|-
 
|-
 
|{{Icon|4}} ||[[PRINT_HELP_FOREVER]]
 
|{{Icon|4}} ||[[PRINT_HELP_FOREVER]]
 +
|}
 +
 +
=== Hardcoded messages ===
 +
This is a list 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.
 +
 +
==== Vice City ====
 +
{|class="wikitable"
 +
!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 ||rowspan="2" |Acquiring car bomb with timed detonator at the bomb shop.
 +
|-
 +
|GA_6B
 +
|-
 +
|GA_7 ||rowspan="2" |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 [[057A|maximum number of cars allowed]].
 +
|-
 +
|PROP_1 ||Attempting to pickup a [[0518|forsale property pickup]] without enough money.
 +
|-
 +
|PROP_2 ||Attempting to pickup a [[0518|forsale property pickup]] while on a mission.
 +
|-
 +
|PU_CF1 ||rowspan="3" |Attempting to pick up a weapon that you already have of the same type.
 +
|-
 +
|PU_CF3
 +
|-
 +
|PU_CF4
 
|}
 
|}
  

Revision as of 00:18, 14 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

This is a list 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.

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

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