Definequote: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
cyan is hurting my eyes :-o
Line 10: Line 10:


  definequote '''^12'''<font color="gray">PICKED UP A PORTABLE MEDKIT</font>
  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>
  definequote '''^16'''<font color="blue">BLUE</font> '''^0'''ACCESS CARD REQUIRED


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 09:02, 22 April 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.