Console: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 31: Line 31:
     ex:
     ex:
     $ hu_overlay /
     $ hu_overlay /
==Notes on Notation==
In the list below, command arguments enclosed in brackets are optional. Commands typically have some default behavior when the arguments they expect are not provided, although this is often to simply print usage information.
An ellipsis (...) signifies that the command will accept any number of arguments and will amalgamate them into one continuous string.


==List of console commands and variables==
==List of console commands and variables==
:''See [[List of console commands and variables]]''
:''See [[List of console commands and variables]]''
[[Category:Console]]
[[Category:Console]]

Revision as of 15:47, 21 November 2020

This reference contains information on useful console commands and variables that work with the Eternity console, as well as pointers on console command syntax.

Back to Eternity Engine
  • This section incorporates text from the HTML Eternity documentation.

Notes on Special Command Syntax

Commands which take parameters may accept numbers, strings, or members of a predefined set of values.

 ex:
 $ delay 50
 $ spawn 249 1
 $ name Quasar
 $ hu_overlay distributed

If string arguments contain whitespace, they must be in quotations. Quotations around strings are otherwise optional.

 ex:
 $ echo "This has to be in quotes"
 $ i_error "R_FindVisplane: no more visplanes!"

Multiple commands can be run from one prompt by separating them with a semicolon.

 ex:
 $ delay; kill

Variables of type integer, named-value, on / off, and yes / no can be affected by the following operators:

  • +
Affixed to the end of the variable, it will increment it to the next valid value, but no higher than the maximum allowed.
   ex:
   $ screensize +
   
  • -
Affixed to the end of the variable, it will decrement it to the next lower valid value, but no lower than the minimum allowed.
   ex:
   $ screensize -
   
  • /
Toggles through the variable values from minimum to maximum, wrapping around to the minimum value again when it is maxed out. This is most useful with two-state yes/no and on/off variables.
   ex:
   $ hu_overlay /

List of console commands and variables

See List of console commands and variables