Script:Commands: Difference between revisions
Jump to navigation
Jump to search
(Created page with " == Syntax == commandname [-flags] [parameters...] All underscores in the command name are ignored: <code>_a_cool__c_o_m_m_a_n_d</code> and <code>acoolcommand</code> call t...") |
(→Syntax) |
||
Line 4: | Line 4: | ||
commandname [-flags] [parameters...] | commandname [-flags] [parameters...] | ||
All underscores in the command name are ignored: <code>_a_cool__c_o_m_m_a_n_d</code> and <code>acoolcommand</code> call the same command. | All underscores in the command name are ignored: <code>_a_cool__c_o_m_m_a_n_d</code> and <code>acoolcommand</code> call the same command: [https://github.com/arx/ArxLibertatis/blob/master/scripts/find-script-command <code>find-script-command</code>] | ||
If you want to find uses of a command in the game's script files, Arx Libertatis includes a helper script: | |||
=== Flags === | === Flags === |
Revision as of 15:17, 9 November 2013
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: find-script-command
If you want to find uses of a command in the game's script files, Arx Libertatis includes a helper script:
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.