Added new SCRIPT_ROOT variable to settings.py, you'll need to copy this over from settings.py.dist if you're running a test game. We also now have rudimentary support for default, enter, and use locks per the basicobject.py file. Take a look at the example locks in there. A returned boolean value determines whether the player passes. Make sure you emit an error message within the lock if you're going to return false. We will have simple in-game attribute or dbref locks via an @lock command similar to MUX/MUSH that override scripted behaviors.

This commit is contained in:
Greg Taylor 2007-07-12 13:45:23 +00:00
parent 679ef8dc74
commit 94779a86a5
4 changed files with 54 additions and 14 deletions

View file

@ -14,7 +14,7 @@ ADMINS = (
MANAGERS = ADMINS
# The path that contains this settings.py file.
# The path that contains this settings.py file (no trailing slash).
BASE_PATH = '/home/evennia/evennia'
# 'postgresql', 'mysql', 'mysql_old', 'sqlite3' or 'ado_mssql'.
@ -52,10 +52,14 @@ USE_I18N = False
# lighttpd).
SERVE_MEDIA = False
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
# Absolute path to the directory that holds media (no trailing slash).
# Example: "/home/media/media.lawrence.com"
MEDIA_ROOT = '%s/media' % (BASE_PATH)
# Absolute path to the directory that has the script tree in it. (no trailing slash)
# Example: "/home/evennia/scripts"
SCRIPT_ROOT = '%s/scripts' % (BASE_PATH)
# URL that handles the media served from MEDIA_ROOT.
# Example: "http://media.lawrence.com"
MEDIA_URL = '/media/'