-
Notifications
You must be signed in to change notification settings - Fork 20
command
This library handles command registration for use from within the FFXI chat log or the Windower console.
local command = require('core.command')
✔️ Dependency Not Required
This library does not require an explicit dependency in the
manifest.xml
file for your package.
The command
table has the following entries:
- command.input : Inputs a command to the FFXI chat log
- command.new : Creates a new base command
- command.delete : Deletes a previously created command
- command.arg : A collection of functions for treating command arguments
- command.core : The low level command library
Inputs the given command to FFXI's internal command handler.
function command.input(command : string, source : command_source = 'user')
command string
The string to input.
source command_source [default: user
]
Indicates the source of the command.
This function does not return any values.
Creates a new command object, which can then be used to register functions to execute based on given sub-commands.
function command.new(name : string) : command_object
name string
The name of the command. Will be used as the command prefix when entering commands, e.g. when using
test
as the name, the command can be triggered by typing/test ...
into the console or chat log.
command_object command_object
The command object associated with the specified name. Can be used to register functions to specific commands.
Deletes a previously created command, removing all its registered sub-commands and their handlers.
function command.delete(command_object : command_object)
command_object command_object
The command object which was previously returned by command.new.
This function does not return any values.