Scripting support is now in! See cmd_look (the end of it), scripthandler.py, and scripts/basicobject.py for very brief examples. I'm not sure how well this is going to scale, I had to kludge the import a bit due to some oddities with __import__. There has to be a better way to do this, hopefully I'll be able to figure it out. In any case, expect basicobject to start fleshing out. You'll be able to use it directly or sub-class it with your own stuff.

This commit is contained in:
Greg Taylor 2007-06-04 20:01:03 +00:00
parent 27c0e7a873
commit 94ceec3719
5 changed files with 91 additions and 10 deletions

View file

@ -25,6 +25,7 @@ class EvenniaService(service.Service):
log.startLogging(open(settings.LOGFILE, 'w'))
self.cmd_alias_list = {}
self.game_running = True
sys.path.append('.')
# Database-specific startup optimizations.
if settings.DATABASE_ENGINE == "sqlite3":