Skip to content
Andrzej edited this page Nov 9, 2024 · 12 revisions

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.

Flags

Auto Run

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.

Event

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.

Admin Event

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.

Disable

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.

No Safety

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.

Suppress Warnings

The !-- SUPPRESSWARNINGS flag disables all non-fatal warnings from command execution.

Debug

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.

Custom event

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.

Help Reponse

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

Clone this wiki locally