Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 21
command
This library handles command registration for use from within the FFXI chat log or the Windower console.
localcommand=require('core.command')✔️ Dependency Not Required
This library does not require an explicit dependency in the
manifest.xmlfile 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.
functioncommand.input(command : string,source : command_source='user')commandstring
The string to input.
sourcecommand_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.
functioncommand.new(name : string) : command_objectnamestring
The name of the command. Will be used as the command prefix when entering commands, e.g. when using
testas the name, the command can be triggered by typing/test ...into the console or chat log.
command_objectcommand_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.
functioncommand.delete(command_object : command_object)command_objectcommand_object
The command object which was previously returned by command.new.
This function does not return any values.