Definequote
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.
These quotes are hardcoded to trigger when certain game events occur. The corresponding text for them is found in USER.CON.
Exposed | Value | Label | Text in 1.5 Atomic | Triggered by | |
---|---|---|---|---|---|
No | 1 | QUOTE_SHOW_MAP_OFF | "SHOW MAP: OFF" | When disabling the "show map" cheat. | |
No | 2 | QUOTE_ACTIVATED | "ACTIVATED" | When Sector Effectors 21, 24, 25 and 34 are activated. | |
No | 3 | QUOTE_MEDKIT | "PORTABLE MEDKIT" | When selecting the "portable medkit" inventory item. | |
No | 4 | QUOTE_LOCKED | "LOCKED" | When ACTIVATORLOCKED is triggered to lock. | |
No | 5 | QUOTE_CHEAT_EVERYTHING | "GIVING EVERYTHING!" | When the "DNSTUFF" or "DNITEMS" cheats are triggered. | |
No | 6 | QUOTE_BOOTS | "BOOTS" | When selecting the "boots" inventory item. | |
No | 7 | QUOTE_WASTED | "WASTED!" | Only referenced by the unused SE5 sector boss. Was supposed to be displayed when the boss was destroyed. | |
No | 8 | QUOTE_UNLOCKED | "UNLOCKED" | When ACTIVATORLOCKED is triggered to unlock. | |
No | 9 | QUOTE_FOUND_SECRET | "A SECRET PLACE!" | When a secret sector is triggered by the player. | |
No | 10 | QUOTE_SQUISHED | "SQUISH!" | Displayed if the player is squished, or whenever ifsquished returns true. This is displayed regardless of whether any actor was killed. | |
No | 12 | QUOTE_USED_STEROIDS | "USED STEROIDS" | When the player uses the steroids item. | |
No | 13 | QUOTE_DEAD | "PRESS SPACE TO RESTART LEVEL" | Never directly triggered by hardcoded functions. HOWEVER: On initialization, the game checks the quote for the substrings "USE", "OPEN", and "SPACE" and replaces them with the key string currently bound to gamefunc_Open. | |
No | 15 | QUOTE_DEACTIVATED | "DEACTIVATED" | When Sector Effectors 24, 25 and 34 are deactivated. | |
No | 17 | QUOTE_CHEAT_GODMODE_ON | "GOD MODE: ON" | When godmode is turned on. | |
No | 18 | QUOTE_CHEAT_GODMODE_OFF | "GOD MODE: OFF" | When godmode is turned off. | |
No | 20 | QUOTE_CROSSHAIR_ON | "CROSSHAIR: ON" | When the crosshair is turned on. Not defined as a macro in the source code, but still referenced. | |
No | 21 | QUOTE_CROSSHAIR_OFF | "CROSSHAIR: OFF" | When the crosshair is turned off. | |
No | 22 | QUOTE_CHEATS_DISABLED | "YOU'RE TOO GOOD TO BE CHEATING!" | When skill level is 4 and the player tries to input a cheat code. | |
No | 23 | QUOTE_MESSAGES_ON | "MESSAGES: ON" | When quotes are turned on. | |
No | 24 | QUOTE_MESSAGES_OFF | "MESSAGES: OFF" | When quotes are turned off. | |
No | 26 | QUOTE_MUSIC | "DETAIL: LOW" | Overridden at runtime to display the filename of the song when changing music. Original string no longer in use. | |
No | 37 | QUOTE_CHEAT_STEROIDS | "STEROIDS" | When using the DNHYPER cheat. | |
No | 40 | QUOTE_F1HELP | "Press F1 for Help" | Displayed at the start of E1L1 in the shareware version. | |
No | 44 | QUOTE_MOUSE_AIMING_OFF | "MOUSE AIMING OFF" | When mouse aiming is turned off. | |
No | 45 | QUOTE_MOUSE_AIMING_ON | "MOUSE AIMING ON" | When mouse aiming is turned on. Not defined as a macro in the source, but still referenced. | |
No | 47 | QUOTE_HOLODUKE_ON | "HOLODUKE ON" | ||
No | 48 | QUOTE_HOLODUKE_OFF | "HOLODUKE OFF" | ||
No | 49 | QUOTE_HOLODUKE_NOT_FOUND | "HOLODUKE NOT FOUND YET!" | ||
No | 50 | QUOTE_JETPACK_NOT_FOUND | "JETPACK NOT FOUND YET" | ||
No | 52 | QUOTE_JETPACK_ON | "JETPACK ON" | ||
No | 53 | QUOTE_JETPACK_OFF | "JETPACK OFF" | ||
No | 70 | QUOTE_NEED_BLUE_KEY | "BLUE ACCESS CARD REQUIRED" | ||
No | 71 | QUOTE_NEED_RED_KEY | "RED ACCESS CARD REQUIRED" | ||
No | 72 | QUOTE_NEED_YELLOW_KEY | "YELLOW ACCESS CARD REQUIRED" | ||
No | 73 | QUOTE_WEAPON_LOWERED | "WEAPON LOWERED" | When the "holster weapon" key is used. | |
No | 74 | QUOTE_WEAPON_RAISED | "WEAPON RAISED" | When the "holster weapon" key is used after holstering. | |
No | 75 | QUOTE_BOOTS_ON | "PROTECTIVE BOOTS ON" | Whenever the player walks onto a damaging floor with boots in his inventory. | |
No | 76 | QUOTE_SCUBA_ON | "SCUBA GEAR ON" | Whenever the player is submerged with scuba gear in his inventory. | |
No | 79 | QUOTE_CHEAT_ALLEN | "BUY MAJOR STRYKER" | DNALLEN cheat code | |
No | 80 | QUOTE_MIGHTY_FOOT | "MIGHTY FOOT ENGAGED" | Whenever the player presses the quick kick button. (with a delay) | |
No | 81 | QUOTE_WEAPON_MODE_ON | "WEAPON MODE ON" | (Multiplayer) When the "show opponents weapons" key is activated. Has no macro, but still referenced in the source. | |
No | 82 | QUOTE_WEAPON_MODE_OFF | "WEAPON MODE OFF" | (Multiplayer) When the "show opponents weapons" key is deactivated. | |
No | 83 | QUOTE_MAP_FOLLOW_OFF | "FOLLOW MODE OFF" | When the automap stops following the player. | |
No | 84 | QUOTE_MAP_FOLLOW_ON | "FOLLOW MODE ON" | When the automap starts following the player. Has no macro, but still referenced in the source. | |
No | 85 | QUOTE_RUN_MODE_OFF | "RUN MODE OFF" | When autorun is turned off. | |
No | 86 | QUOTE_RUN_MODE_ON | "RUN MODE ON" | When autorun is turned on. Has no macro, but still referenced in the source. | |
No | 88 | QUOTE_JETPACK | "JET PACK" | When selecting the jetpack inventory item. | |
No | 89 | QUOTE_SCUBA | "AIRTANK" | When selecting the scuba gear inventory item. | |
No | 90 | QUOTE_STEROIDS | "STEROIDS" | When selecting the steroids inventory item. | |
No | 91 | QUOTE_HOLODUKE | "HOLODUKE" | When selecting the holoduke inventory item. | |
No | 99 | QUOTE_CHEAT_TODD | "REGISTER COSMO TODAY!" | When entering the DNCOSMO cheat. | |
No | 100 | QUOTE_CHEAT_UNLOCK | "ALL LOCKS TOGGLED" | When entering the DNUNLOCK cheat. | |
No | 101 | QUOTE_NVG | "NIGHT VISION GOGGLES" | When selecting the NVG inventory item. | |
No | 102 | QUOTE_WEREGONNAFRYYOURASS | "WE'RE GONNA FRY YOUR ASS, NUKEM!" | When player enter sector with lotag 65534 or if the command endofgame is triggered with a sound defined. | |
No | 103 | QUOTE_SCREEN_SAVED | "SCREEN SAVED" | When a screenshot is made using F12. | |
No | 105 | QUOTE_CHEAT_BETA | "PIRATES SUCK!" | Quote upon entering DNBETA. | |
No | 106 | QUOTE_NVG_ON | "NIGHT VISION ON" | When the night vision goggles are turned on. Has no macro, but is still referenced by the source code. | |
No | 107 | QUOTE_NVG_OFF | "NIGHT VISION OFF" | When the night vision goggles are turned off. | |
No | 109 | QUOTE_VIEW_MODE_OFF | "VIEW MODE OFF" | When third-person view is turned off. | |
No | 110 | QUOTE_VIEW_MODE_ON | "VIEW MODE ON" | When the third-person view is turned on. Has no macro, but is still referenced by the source code. | |
No | 111 | QUOTE_SHOW_MAP_ON | "SHOW MAP: ON" | When enabling the "show map" cheat. | |
No | 112 | QUOTE_CHEAT_CLIP | "CLIPPING: ON" | When player clipping is enabled via cheat. Has no macro, but is still referenced by the source code. | |
No | 113 | QUOTE_CHEAT_NOCLIP | "CLIPPING: OFF" | When player clipping is disabled via cheat. | |
No | 114 | QUOTE_SAVE_BAD_VERSION | "!!! INCORRECT VERSION !!!" | When trying to load a savegame and a version error occurs. | |
No | 115 | QUOTE_RESERVED | "<Please Leave Blank>" | Used by obituaries when you are killed by another player. ("Killed by %s") | |
No | 116 | QUOTE_RESERVED2 | "<Please Leave Blank>" | Used by obituaries when you kill another player. ("Killed %s") | |
No | 117 | QUOTE_RESERVED3 | "<Please Leave Blank>" | Stores the name of the player you aim at. | |
No | 118 | QUOTE_SAVE_DEAD | "YOU CANNOT "QUICK SAVE" WHEN DEAD" | When player tries to save and the player's health is 0 or lower. | |
No | 119 | QUOTE_CHEAT_ALL_WEAPONS | "GOT ALL WEAPONS/AMMO" | ||
No | 120 | QUOTE_CHEAT_ALL_INV | "GOT ALL INVENTORY" | ||
No | 121 | QUOTE_CHEAT_ALL_KEYS | "GOT ALL KEYS" | ||
No | 122 | QUOTE_RESERVED4 | "<Please Leave Blank>" | Overridden by several hardcoded strings, including savegame quotes, demo recording quotes, the DNMONSTERS cheat quote, the "Come Get Some" cheat quote, and the DNTODD cheat in NAM. | |
No | 124 | QUOTE_SAVE_BAD_PLAYERS | "MAP HAS A DIFFERENT NUMBER OF PLAYERS" | When trying to load a multiplayer savegame but the number of active players doesn't match. |
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_ON 20 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_MOUSE_AIMING_ON 45 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_ON 81 define QUOTE_WEAPON_MODE_OFF 82 define QUOTE_MAP_FOLLOW_OFF 83 define QUOTE_MAP_FOLLOW_ON 84 define QUOTE_RUN_MODE_OFF 85 define QUOTE_RUN_MODE_ON 86 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_ON 106 define QUOTE_NVG_OFF 107 define QUOTE_VIEW_MODE_OFF 109 define QUOTE_SHOW_MAP_OFF 110 define QUOTE_SHOW_MAP_ON 111 define QUOTE_CHEAT_CLIP 112 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 |