Added a command batch processor to Evennia. The @batchprocess is a super-user only command that reads normal Evennia-commands
from a special-format batchfile. It is intended for large-scale offline world creation (especially things like room descriptions), where a real text editor is often easier to use than online alternatives. The @batchprocess also has an /interactive mode which allows stepping through the batch script, allowing to only execute selected entries; e.g. for editing/updating/debugging etc. There is an example batchfile in the gamesrc/commands/examples directory. /Griatch
This commit is contained in:
parent
41365074fd
commit
eebfa0d387
7 changed files with 468 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ def cmd_set(command):
|
|||
if attrib_value:
|
||||
# An attribute value was specified, create or set the attribute.
|
||||
target.set_attribute(attrib_name, attrib_value)
|
||||
s = "Attribute %s=%s set to %s." % (target_name, attrib_name, attrib_value)
|
||||
s = "Attribute %s=%s set to '%s'" % (target_name, attrib_name, attrib_value)
|
||||
else:
|
||||
# No value was given, this means we delete the attribute.
|
||||
ok = target.clear_attribute(attrib_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue