Added #INSERT parameter for batch-code processor. This should resolve the issue of wanting to combine several batch files. Also improved traceback feedback from the batch-code processor.

This commit is contained in:
Griatch 2012-03-21 01:53:33 +01:00
parent 1ca8df9e70
commit 8b99b8a130
2 changed files with 68 additions and 20 deletions

View file

@ -27,6 +27,10 @@
# debugging the script). E.g., if the code contains the command
# myobj = create.create_object(...), you could put 'myobj' in the #CODE header
# regardless of what the created object is actually called in-game.
# #INSERT filename - this includes another code batch file. The named file will be loaded and
# run at this point. Note that code from the inserted file will NOT share #HEADERs
# with the importing file, but will only use the headers in the importing file.
# make sure to not create a cyclic import here!
# The following variable is automatically made available for the script:
@ -61,7 +65,6 @@ red_button = create.create_object(red_button.RedButton, key="Red button",
# we take a look at what we created
caller.msg("A %s was created." % red_button.key)
#CODE (create table and chair) table, chair
# this code block has 'table' and 'chair' set as deletable