-
Notifications
You must be signed in to change notification settings - Fork 5
Flags
Scripted Events employs the use of "Flags", which are single line-strings following !-- that determine certain functionality of the script. Lines that start with a !-- are skipped over when the script is running, but they are important as they change how the script works.
The !-- AUTORUN flag will make the script enable automatically as soon as the server starts.
Add WAIT UNTIL {ROUND:STARTED} under the flag if you want your script to start when the round starts.
The !-- EVENT <event name> flag will execute the script, when the EXILED event under the is triggered.
When used, it's possible that variables like {EVPLAYER}, {EVATTACKER} or {EVITEM} will be associated with the script.
You can check what variables generate with the {THIS:VARIABLES} variable, which will list every local variable.
The !-- ADMINEVENT flag prevents the script from running automatically, requiring that it be executed via command only. Additionally, scripts with this flag can be used through the CedMod Panel (Exiled version only). Courtesy of @ced777ric for enabling this compatibility.
The !-- DISABLE flag disables the script entirely. Scripts with this flag can be read via the "script read" command, but they cannot be executed by any command or by configs.
The !-- NOSAFETY flag removes the 1-tick delay between actions.
It's advised you don't use this flag if you're a beginner, as it can crash your server.
The !-- SUPPRESSWARNINGS flag disables all non-fatal warnings from command execution.
The !-- DEBUG flag enables debug logs for the script it is defined in. If the plugin's debug config is enabled, this flag will have no functionality as debug logs will be enabled for all scripts.
Scripted Events enables you to subscribe to custom events the same way you would with an !-- EVENT flag.
Simply use the TRIGGER MyCustomEvent action, and all scripts that have a flag !-- CUSTOMEVENT MyCustomEvent will execute as result.
The !-- HELPRESPONSE flag is added automatically to files generated via the HELP <INPUT> FILE action. This flag makes a file completely undetectable by the plugin.
Actions