Quote: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
note that "quote" requires current player
Sangman (talk | contribs)
Specified fta/ftq
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


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]].
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.
This command will only accept a numeric constant, however it is possible to display a quote number that is specified in a variable. For this, see player structure members [[fta]] and [[ftq]]. Set fta to 99 and ftq to the variable.


[[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]]

Latest revision as of 13:58, 26 November 2023

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.

This command will only accept a numeric constant, however it is possible to display a quote number that is specified in a variable. For this, see player structure members fta and ftq. Set fta to 99 and ftq to the variable.