| Mnemonic | Value | Meaning |
|---|---|---|
| eOK | 0 | No error |
| eWorldOpen | 30001 | The world is already open |
| eWorldClosed | 30002 | The world is closed, this action cannot be performed |
| eNoNameSpecified | 30003 | No name has been specified where one is required |
| eCannotPlaySound | 30004 | The sound file could not be played |
| eTriggerNotFound | 30005 | The specified trigger name does not exist |
| eTriggerAlreadyExists | 30006 | Attempt to add a trigger that already exists |
| eTriggerCannotBeEmpty | 30007 | The trigger "match" string cannot be empty |
| eInvalidObjectLabel | 30008 | The name of this object is invalid |
| eScriptNameNotLocated | 30009 | Script name is not in the script file |
| eAliasNotFound | 30010 | The specified alias name does not exist |
| eAliasAlreadyExists | 30011 | Attempt to add a alias that already exists |
| eAliasCannotBeEmpty | 30012 | The alias "match" string cannot be empty |
| eCouldNotOpenFile | 30013 | Unable to open requested file |
| eLogFileNotOpen | 30014 | Log file was not open |
| eLogFileAlreadyOpen | 30015 | Log file was already open |
| eLogFileBadWrite | 30016 | Bad write to log file |
| eTimerNotFound | 30017 | The specified timer name does not exist |
| eTimerAlreadyExists | 30018 | Attempt to add a timer that already exists |
| eVariableNotFound | 30019 | Attempt to delete a variable that does not exist |
| eCommandNotEmpty | 30020 | Attempt to use SetCommand with a non-empty command window |
| eBadRegularExpression | 30021 | Bad regular expression syntax |
| eTimeInvalid | 30022 | Time given to AddTimer is invalid |
| eBadMapItem | 30023 | Direction given to AddToMapper is invalid |
| eNoMapItems | 30024 | No items in mapper |
| eUnknownOption | 30025 | Option name not found |
| eOptionOutOfRange | 30026 | New value for option is out of range |
| eTriggerSequenceOutOfRange | 30027 | Trigger sequence value invalid |
| eTriggerSendToInvalid | 30028 | Where to send trigger text to is invalid |
| eTriggerLabelNotSpecified | 30029 | Trigger label not specified/invalid for 'send to variable' |
| ePluginFileNotFound | 30030 | File name specified for plugin not found |
| eProblemsLoadingPlugin | 30031 | There was a parsing or other problem loading the plugin |
| ePluginCannotSetOption | 30032 | Plugin is not allowed to set this option |
| ePluginCannotGetOption | 30033 | Plugin is not allowed to get this option |
| eNoSuchPlugin | 30034 | Requested plugin is not installed |
| eNotAPlugin | 30035 | Only a plugin can do this |
| eNoSuchRoutine | 30036 | Plugin does not support that subroutine (subroutine not in script) |
| ePluginDoesNotSaveState | 30037 | Plugin does not support saving state |
| ePluginCouldNotSaveState | 30037 | Plugin could not save state (eg. no state directory) |
| ePluginDisabled | 30039 | Plugin is currently disabled |
| eErrorCallingPluginRoutine | 30040 | Could not call plugin routine |
Some functions return other values - these are documented for those particular functions.
You can copy the error codes from the appropriate section below and paste into the start of your script file, to predefine all known return codes.
const eOK = 0 ' No error const eWorldOpen = 30001 ' The world is already open const eWorldClosed = 30002 ' The world is closed, this action cannot be performed const eNoNameSpecified = 30003 ' No name has been specified where one is required const eCannotPlaySound = 30004 ' The sound file could not be played const eTriggerNotFound = 30005 ' The specified trigger name does not exist const eTriggerAlreadyExists = 30006 ' Attempt to add a trigger that already exists const eTriggerCannotBeEmpty = 30007 ' The trigger "match" string cannot be empty const eInvalidObjectLabel = 30008 ' The name of this object is invalid const eScriptNameNotLocated = 30009 ' Script name is not in the script file const eAliasNotFound = 30010 ' The specified alias name does not exist const eAliasAlreadyExists = 30011 ' Attempt to add a alias that already exists const eAliasCannotBeEmpty = 30012 ' The alias "match" string cannot be empty const eCouldNotOpenFile = 30013 ' Unable to open requested file const eLogFileNotOpen = 30014 ' Log file was not open const eLogFileAlreadyOpen = 30015 ' Log file was already open const eLogFileBadWrite = 30016 ' Bad write to log file const eTimerNotFound = 30017 ' The specified timer name does not exist const eTimerAlreadyExists = 30018 ' Attempt to add a timer that already exists const eVariableNotFound = 30019 ' Attempt to delete a variable that does not exist const eCommandNotEmpty = 30020 ' Attempt to use SetCommand with a non-empty command window const eBadRegularExpression = 30021 ' Bad regular expression syntax const eTimeInvalid = 30022 ' Time given to AddTimer is invalid const eBadMapItem = 30023 ' Direction given to AddToMapper is invalid const eNoMapItems = 30024 ' No items in mapper const eUnknownOption = 30025 ' Option name not found const eOptionOutOfRange = 30026 ' New value for option is out of range const eTriggerSequenceOutOfRange = 30027 ' Trigger sequence value invalid const eTriggerSendToInvalid = 30028 ' Where to send trigger text to is invalid const eTriggerLabelNotSpecified = 30029 ' Trigger label not specified/invalid for 'send to variable' const ePluginFileNotFound = 30030 ' File name specified for plugin not found const eProblemsLoadingPlugin = 30031 ' There was a parsing or other problem loading the plugin const ePluginCannotSetOption = 30032 ' Plugin is not allowed to set this option const ePluginCannotGetOption = 30033 ' Plugin is not allowed to get this option const eNoSuchPlugin = 30034 ' Requested plugin is not installed const eNotAPlugin = 30035 ' Only a plugin can do this const eNoSuchRoutine = 30036 ' Plugin does not support that subroutine (subroutine not in script) const ePluginDoesNotSaveState = 30037 ' Plugin does not support saving state const ePluginCouldNotSaveState = 30037 ' Plugin could not save state (eg. no state directory) const ePluginDisabled = 30039 ' Plugin is currently disabled const eErrorCallingPluginRoutine = 30040 ' Could not call plugin routine
var eOK = 0; // No error var eWorldOpen = 30001; // The world is already open var eWorldClosed = 30002; // The world is closed, this action cannot be performed var eNoNameSpecified = 30003; // No name has been specified where one is required var eCannotPlaySound = 30004; // The sound file could not be played var eTriggerNotFound = 30005; // The specified trigger name does not exist var eTriggerAlreadyExists = 30006; // Attempt to add a trigger that already exists var eTriggerCannotBeEmpty = 30007; // The trigger "match" string cannot be empty var eInvalidObjectLabel = 30008; // The name of this object is invalid var eScriptNameNotLocated = 30009; // Script name is not in the script file var eAliasNotFound = 30010; // The specified alias name does not exist var eAliasAlreadyExists = 30011; // Attempt to add a alias that already exists var eAliasCannotBeEmpty = 30012; // The alias "match" string cannot be empty var eCouldNotOpenFile = 30013; // Unable to open requested file var eLogFileNotOpen = 30014; // Log file was not open var eLogFileAlreadyOpen = 30015; // Log file was already open var eLogFileBadWrite = 30016; // Bad write to log file var eTimerNotFound = 30017; // The specified timer name does not exist var eTimerAlreadyExists = 30018; // Attempt to add a timer that already exists var eVariableNotFound = 30019; // Attempt to delete a variable that does not exist var eCommandNotEmpty = 30020; // Attempt to use SetCommand with a non-empty command window var eBadRegularExpression = 30021; // Bad regular expression syntax var eTimeInvalid = 30022; // Time given to AddTimer is invalid var eBadMapItem = 30023; // Direction given to AddToMapper is invalid var eNoMapItems = 30024; // No items in mapper var eUnknownOption = 30025; // Option name not found var eOptionOutOfRange = 30026; // New value for option is out of range var eTriggerSequenceOutOfRange = 30027; // Trigger sequence value invalid var eTriggerSendToInvalid = 30028; // Where to send trigger text to is invalid var eTriggerLabelNotSpecified = 30029; // Trigger label not specified/invalid for 'send to variable' var ePluginFileNotFound = 30030; // File name specified for plugin not found var eProblemsLoadingPlugin = 30031; // There was a parsing or other problem loading the plugin var ePluginCannotSetOption = 30032; // Plugin is not allowed to set this option var ePluginCannotGetOption = 30033; // Plugin is not allowed to get this option var eNoSuchPlugin = 30034; // Requested plugin is not installed var eNotAPlugin = 30035; // Only a plugin can do this var eNoSuchRoutine = 30036; // Plugin does not support that subroutine (subroutine not in script) var ePluginDoesNotSaveState = 30037; // Plugin does not support saving state var ePluginCouldNotSaveState = 30037; // Plugin could not save state (eg. no state directory) var ePluginDisabled = 30039; // Plugin is currently disabled var eErrorCallingPluginRoutine = 30040; // Could not call plugin routine
my $eOK = 0; # No error
my $eWorldOpen = 30001; # The world is already open
my $eWorldClosed = 30002; # The world is closed, this action cannot be performed
my $eNoNameSpecified = 30003; # No name has been specified where one is required
my $eCannotPlaySound = 30004; # The sound file could not be played
my $eTriggerNotFound = 30005; # The specified trigger name does not exist
my $eTriggerAlreadyExists = 30006; # Attempt to add a trigger that already exists
my $eTriggerCannotBeEmpty = 30007; # The trigger "match" string cannot be empty
my $eInvalidObjectLabel = 30008; # The name of this object is invalid
my $eScriptNameNotLocated = 30009; # Script name is not in the script file
my $eAliasNotFound = 30010; # The specified alias name does not exist
my $eAliasAlreadyExists = 30011; # Attempt to add a alias that already exists
my $eAliasCannotBeEmpty = 30012; # The alias "match" string cannot be empty
my $eCouldNotOpenFile = 30013; # Unable to open requested file
my $eLogFileNotOpen = 30014; # Log file was not open
my $eLogFileAlreadyOpen = 30015; # Log file was already open
my $eLogFileBadWrite = 30016; # Bad write to log file
my $eTimerNotFound = 30017; # The specified timer name does not exist
my $eTimerAlreadyExists = 30018; # Attempt to add a timer that already exists
my $eVariableNotFound = 30019; # Attempt to delete a variable that does not exist
my $eCommandNotEmpty = 30020; # Attempt to use SetCommand with a non-empty command window
my $eBadRegularExpression = 30021; # Bad regular expression syntax
my $eTimeInvalid = 30022; # Time given to AddTimer is invalid
my $eBadMapItem = 30023; # Direction given to AddToMapper is invalid
my $eNoMapItems = 30024; # No items in mapper
my $eUnknownOption = 30025; # Option name not found
my $eOptionOutOfRange = 30026; # New value for option is out of range
my $eTriggerSequenceOutOfRange = 30027; # Trigger sequence value invalid
my $eTriggerSendToInvalid = 30028; # Where to send trigger text to is invalid
my $eTriggerLabelNotSpecified = 30029; # Trigger label not specified/invalid for 'send to variable'
my $ePluginFileNotFound = 30030; # File name specified for plugin not found
my $eProblemsLoadingPlugin = 30031; # There was a parsing or other problem loading the plugin
my $ePluginCannotSetOption = 30032; # Plugin is not allowed to set this option
my $ePluginCannotGetOption = 30033; # Plugin is not allowed to get this option
my $eNoSuchPlugin = 30034; # Requested plugin is not installed
my $eNotAPlugin = 30035; # Only a plugin can do this
my $eNoSuchRoutine = 30036; # Plugin does not support that subroutine (subroutine not in script)
my $ePluginDoesNotSaveState = 30037; # Plugin does not support saving state
my $ePluginCouldNotSaveState = 30037; # Plugin could not save state (eg. no state directory)
my $ePluginDisabled = 30039; # Plugin is currently disabled
my $eErrorCallingPluginRoutine = 30040; # Could not call plugin routine