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

A list of quote IDs that are hardcoded into the game can be found in quotes.h.