Definequote

From EDukeWiki
Jump to navigation Jump to search

definequote <quote number> <quote text>

Defines a quote to be used with the quote, qsprintf, qstrcat, qstrcpy, gametext or minitext commands. Each quote must have a unique quote number. Quotes may be redefined mid-game with redefinequote.

The maximum length of a quote is 128 characters.

%d can be added to quotes to represent a variable with the qsprintf command.

^# can be used to change the color of all of, or just a section of a quote. The # is the palette number intended for use. Example:

definequote ^12PICKED UP A PORTABLE MEDKIT
definequote ^16BLUE ^0ACCESS CARD REQUIRED

Hard-coded values

The following values are used with definequote, ftq and other string manipulation commands.

Exposed Value Label Description
No 1 QUOTE_SHOW_MAP_OFF
No 2 QUOTE_ACTIVATED
No 3 QUOTE_MEDKIT
No 4 QUOTE_LOCKED
No 5 QUOTE_CHEAT_EVERYTHING
No 6 QUOTE_BOOTS
No 7 QUOTE_WASTED
No 8 QUOTE_UNLOCKED
No 9 QUOTE_FOUND_SECRET
No 10 QUOTE_SQUISHED
No 12 QUOTE_USED_STEROIDS
No 13 QUOTE_DEAD
No 15 QUOTE_DEACTIVATED
No 17 QUOTE_CHEAT_GODMODE_ON
No 18 QUOTE_CHEAT_GODMODE_OFF
No 21 QUOTE_CROSSHAIR_OFF
No 22 QUOTE_CHEATS_DISABLED
No 23 QUOTE_MESSAGES_ON
No 24 QUOTE_MESSAGES_OFF
No 26 QUOTE_MUSIC
No 37 QUOTE_CHEAT_STEROIDS
No 40 QUOTE_F1HELP
No 44 QUOTE_MOUSE_AIMING_OFF
No 47 QUOTE_HOLODUKE_ON
No 48 QUOTE_HOLODUKE_OFF
No 49 QUOTE_HOLODUKE_NOT_FOUND
No 50 QUOTE_JETPACK_NOT_FOUND
No 52 QUOTE_JETPACK_ON
No 53 QUOTE_JETPACK_OFF
No 70 QUOTE_NEED_BLUE_KEY
No 71 QUOTE_NEED_RED_KEY
No 72 QUOTE_NEED_YELLOW_KEY
No 73 QUOTE_WEAPON_LOWERED
No 74 QUOTE_WEAPON_RAISED
No 75 QUOTE_BOOTS_ON
No 76 QUOTE_SCUBA_ON
No 79 QUOTE_CHEAT_ALLEN
No 80 QUOTE_MIGHTY_FOOT
No 82 QUOTE_WEAPON_MODE_OFF
No 83 QUOTE_MAP_FOLLOW_OFF
No 85 QUOTE_RUN_MODE_OFF
No 88 QUOTE_JETPACK
No 89 QUOTE_SCUBA
No 90 QUOTE_STEROIDS
No 91 QUOTE_HOLODUKE
No 99 QUOTE_CHEAT_TODD
No 100 QUOTE_CHEAT_UNLOCK
No 101 QUOTE_NVG
No 102 QUOTE_WEREGONNAFRYYOURASS
No 103 QUOTE_SCREEN_SAVED
No 105 QUOTE_CHEAT_BETA
No 107 QUOTE_NVG_OFF
No 109 QUOTE_VIEW_MODE_OFF
No 111 QUOTE_SHOW_MAP_ON
No 113 QUOTE_CHEAT_NOCLIP
No 114 QUOTE_SAVE_BAD_VERSION
No 115 QUOTE_RESERVED
No 116 QUOTE_RESERVED2
No 117 QUOTE_RESERVED3
No 118 QUOTE_SAVE_DEAD
No 119 QUOTE_CHEAT_ALL_WEAPONS
No 120 QUOTE_CHEAT_ALL_INV
No 121 QUOTE_CHEAT_ALL_KEYS
No 122 QUOTE_RESERVED4
No 124 QUOTE_SAVE_BAD_PLAYERS
Defines
define QUOTE_SHOW_MAP_OFF               1
define QUOTE_ACTIVATED                  2
define QUOTE_MEDKIT                     3
define QUOTE_LOCKED                     4
define QUOTE_CHEAT_EVERYTHING           5
define QUOTE_BOOTS                      6
define QUOTE_WASTED                     7
define QUOTE_UNLOCKED                   8
define QUOTE_FOUND_SECRET               9
define QUOTE_SQUISHED                   10
define QUOTE_USED_STEROIDS              12
define QUOTE_DEAD                       13
define QUOTE_DEACTIVATED                15
define QUOTE_CHEAT_GODMODE_ON           17
define QUOTE_CHEAT_GODMODE_OFF          18
define QUOTE_CROSSHAIR_OFF              21
define QUOTE_CHEATS_DISABLED            22
define QUOTE_MESSAGES_ON                23
define QUOTE_MESSAGES_OFF               24
define QUOTE_MUSIC                      26
define QUOTE_CHEAT_STEROIDS             37
define QUOTE_F1HELP                     40
define QUOTE_MOUSE_AIMING_OFF           44
define QUOTE_HOLODUKE_ON                47
define QUOTE_HOLODUKE_OFF               48
define QUOTE_HOLODUKE_NOT_FOUND         49
define QUOTE_JETPACK_NOT_FOUND          50
define QUOTE_JETPACK_ON                 52
define QUOTE_JETPACK_OFF                53
define QUOTE_NEED_BLUE_KEY              70
define QUOTE_NEED_RED_KEY               71
define QUOTE_NEED_YELLOW_KEY            72
define QUOTE_WEAPON_LOWERED             73
define QUOTE_WEAPON_RAISED              74
define QUOTE_BOOTS_ON                   75
define QUOTE_SCUBA_ON                   76
define QUOTE_CHEAT_ALLEN                79
define QUOTE_MIGHTY_FOOT                80
define QUOTE_WEAPON_MODE_OFF            82
define QUOTE_MAP_FOLLOW_OFF             83
define QUOTE_RUN_MODE_OFF               85
define QUOTE_JETPACK                    88
define QUOTE_SCUBA                      89
define QUOTE_STEROIDS                   90
define QUOTE_HOLODUKE                   91
define QUOTE_CHEAT_TODD                 99
define QUOTE_CHEAT_UNLOCK               100
define QUOTE_NVG                        101
define QUOTE_WEREGONNAFRYYOURASS        102
define QUOTE_SCREEN_SAVED               103
define QUOTE_CHEAT_BETA                 105
define QUOTE_NVG_OFF                    107
define QUOTE_VIEW_MODE_OFF              109
define QUOTE_SHOW_MAP_ON                111
define QUOTE_CHEAT_NOCLIP               113
define QUOTE_SAVE_BAD_VERSION           114
define QUOTE_RESERVED                   115
define QUOTE_RESERVED2                  116
define QUOTE_RESERVED3                  117
define QUOTE_SAVE_DEAD                  118
define QUOTE_CHEAT_ALL_WEAPONS          119
define QUOTE_CHEAT_ALL_INV              120
define QUOTE_CHEAT_ALL_KEYS             121
define QUOTE_RESERVED4                  122
define QUOTE_SAVE_BAD_PLAYERS           124