From 809116aabc39843557796aee9250d34242e5b903 Mon Sep 17 00:00:00 2001 From: Griatch Date: Fri, 15 May 2015 15:26:05 +0200 Subject: [PATCH] More updates to doc, to make it compile properly for reST --- evennia/utils/batchprocessors.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/evennia/utils/batchprocessors.py b/evennia/utils/batchprocessors.py index 130d720e1e..d394581c9d 100644 --- a/evennia/utils/batchprocessors.py +++ b/evennia/utils/batchprocessors.py @@ -109,16 +109,16 @@ as automatic deletion of created objects etc. You can however also run a batch-code Python file directly using Python. Code blocks are separated by python comments starting with special -code words. +code words: -`#HEADER` - this denotes commands global to the entire file, such as +HEADER - this denotes commands global to the entire file, such as import statements and global variables. They will automatically be pasted at the top of all code blocks. Observe that changes to these variables made in one block is not preserved between blocks! -`#CODE` -`#CODE` (info) -`#CODE` (info) objname1, objname1, ... - +CODE +CODE (info) +CODE (info) objname1, objname1, ... - This designates a code block that will be executed like a stand-alone piece of code together with any #HEADER defined. (info) text is used by the interactive mode to @@ -129,7 +129,7 @@ code words. 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` path.filename - This imports another batch_code.py file and +INSERT path.filename - This imports another batch_code.py file and runs it in the given position. paths are given as python path. The inserted file will retain its own HEADERs which will not be mixed with the HEADERs of the file importing