Name | Run |
Related Guide Page | https://guide.denizenscript.com/guides/basics/run-options.html |
Syntax | run [<script>] (path:<name>) (def:<element>|.../defmap:<map>/def.<name>:<value>) (id:<name>) (speed:<value>/instantly) (delay:<value>) |
Short Description | Runs a script in a new queue. |
Full Description | Runs a script in a new queue.
You must specify a script object to run. Optionally, use the "path:" argument to choose a specific sub-path within a script. Optionally, use the "def:" argument to specify definition values to pass to the script, the definitions will be named via the "definitions:" script key on the script being ran, or numerically in order if that isn't specified (starting with <[1]>). Alternately, use "defmap:<map>" to specify definitions to pass as a MapTag, where the keys will be definition names and the values will of course be definition values. Alternately, use "def.<name>:<value>" to define one or more named definitions individually. Optionally, use the "speed:" argument to specify the queue command-speed to run the target script at, or use the "instantly" argument to use an instant speed (no command delay applied). If neither argument is specified, the default queue speed applies (normally instant, refer to the config file). Generally, prefer to set the "speed:" script key on the script to be ran, rather than using this argument. Optionally, use the "delay:" argument to specify a delay time before the script starts running. Optionally, specify the "id:" argument to choose a custom queue ID to be used. If none is specified, a randomly generated one will be used. Generally, don't use this argument. The run command is ~waitable. Refer to ~waitable. |
Related Tags | <entry[saveName].created_queue> returns the queue that was started by the run command.
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Group | queue |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/scripts/commands/queue/RunCommand.java#L31 |