Quote: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
No edit summary
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''quote''' <quote number>
'''quote''' <quote number>


Causes the quote <quote number> as defined by [[definequote]] to be displayed on the top of the screen, center aligned.  The quote fades out after two seconds.
Causes the quote <quote number> as defined by [[definequote]] to be displayed on the top of the screen, center aligned.  The quote fades out after two seconds. This command requires a context where the player is defined, e.g. it cannot be used in [[EVENT_LOADACTOR]].
 
''%ld'' can be added to quotes to represent a variable, usually used 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: ''^20PICKED UP A PORTABLE MEDIKIT'' or ''^16BLUE^0 ACCESS CARD REQUIRED''


Quotes also appear in the console and log file, but when the same quote is displayed multiple times in a row, only the first instance will appear in the console and log. This applies ''even if the quote has been redefined''. To log things for debugging or analysis, consider [[userquote]] instead.


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Screen drawing commands]]
[[Category:Screen drawing commands]]
[[Category:String manipulation]]
[[Category:String manipulation]]

Revision as of 10:32, 5 August 2020

quote <quote number>

Causes the quote <quote number> as defined by definequote to be displayed on the top of the screen, center aligned. The quote fades out after two seconds. This command requires a context where the player is defined, e.g. it cannot be used in EVENT_LOADACTOR.

Quotes also appear in the console and log file, but when the same quote is displayed multiple times in a row, only the first instance will appear in the console and log. This applies even if the quote has been redefined. To log things for debugging or analysis, consider userquote instead.