Update scripts command, Scripts documentation

This commit is contained in:
Griatch 2021-03-07 17:41:48 +01:00
parent b5195a6e96
commit e1762c8b2f
9 changed files with 386 additions and 318 deletions

View file

@ -3059,7 +3059,7 @@ class CmdScript(COMMAND_DEFAULT_CLASS):
attach a script to an object
Usage:
script[/switch] <obj> [= script_path or <scriptkey>]
addscript[/switch] <obj> [= script_path or <scriptkey>]
Switches:
start - start all non-running scripts on object, or a given script only
@ -3074,8 +3074,8 @@ class CmdScript(COMMAND_DEFAULT_CLASS):
the object.
"""
key = "script"
aliases = "addscript"
key = "addscript"
aliases = ["attachscript"]
switch_options = ("start", "stop")
locks = "cmd:perm(script) or perm(Builder)"
help_category = "Building"