Definequote: Difference between revisions
Jump to navigation
Jump to search
Hendricks266 (talk | contribs) No edit summary |
Hendricks266 (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
The maximum length of a quote is 128 characters. | The maximum length of a quote is 128 characters. | ||
<code>%d</code> can be added to quotes to represent a variable with the [[qsprintf]] command. | |||
<code>^#</code> can be used to change the color of all of, or just a section of a quote. The # is the [[Palette (environment)#Palette Swaps|palette number]] intended for use. Example: | |||
definequote '''^12'''<font color="gray">PICKED UP A PORTABLE MEDKIT</font> | |||
definequote '''^16'''<font color="blue">BLUE</font> '''^0'''<font color="cyan">ACCESS CARD REQUIRED</font> | |||
A list of quote IDs that are hardcoded into the game can be found in [{{EDuke32 source|source/quotes.h}} quotes.h]. | A list of quote IDs that are hardcoded into the game can be found in [{{EDuke32 source|source/quotes.h}} quotes.h]. |
Revision as of 17:51, 4 March 2012
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
A list of quote IDs that are hardcoded into the game can be found in quotes.h.