Script:Commands: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
m (Dscharrer moved page Script:Commands to Script tmp:Commands without leaving a redirect)
No edit summary
Line 1: Line 1:
Commands are invoked by entity scripts to perform some action.


== Syntax ==
== Syntax ==

Revision as of 23:27, 14 April 2020

Commands are invoked by entity scripts to perform some action.

Syntax

commandname [-flags] [parameters...]

All underscores in the command name are ignored: _a_cool__c_o_m_m_a_n_d and acoolcommand call the same command.

If you want to find uses of a command in the game's script files, Arx Libertatis includes a helper script: find-script-command

Flags

Script commands can accept an optional set of flags. Each flag is a single character and the order of the flags doesn't matter. Flags always come before all other parameters.

Parameters

The number of parameters a command is fixed fixed for each set of flags.