Commit graph

14 commits

Author SHA1 Message Date
Greg Taylor
be05772713 Script methods will now take a dictionary with keys rather than hard arguments. This will hopefully allow for a bit more flexibility. 2007-07-17 15:58:19 +00:00
Greg Taylor
fadf3933af Move the presentation part of the 'look' command out to the new scripting system. You can now make different scripted objects appear vastly different by overriding basicobject's return_appearance (or any of its submethods). Also fixed word wrapping, and we are now wrapping descriptions to 78 characters by default. We'll see how gracefully it handles this, and we might eventually apply it to all output. 2007-07-17 14:39:10 +00:00
Greg Taylor
9c57e1cf7a Adding some more script hooks. 2007-07-10 15:34:07 +00:00
Michael King
adbc6ec2bb Removed references to Attribute class from cmd_alias.
Removed Attribute import
2007-06-11 17:07:31 +00:00
Michael King
7052d313b6 Added feedback for @alias if the player does not have control over the
target.
Gave the success results for @alias some clarity.
2007-06-11 17:03:53 +00:00
Michael King
0980408e1c Aesthetics finalized for cmd_alias
Added RollbackImporter skeleton class to Evennia Server class
2007-06-11 15:49:05 +00:00
Michael King
8991d4ecac Merged in working changes to alias. Needs better error messages, but
it's in there.
2007-06-11 14:57:02 +00:00
Michael King
9648af6521 Added settings.py to svn:ignore
Merged in updates to branch
2007-06-11 14:48:57 +00:00
Michael King
1d14834a3b Merged first version of alias-command from branch. 2007-06-11 12:50:42 +00:00
Greg Taylor
b1bb2b7927 Fixes to get 'inventory' working again. Whoops. 2007-06-11 02:36:34 +00:00
Greg Taylor
e2cc754441 Lots of goodies in this one. More work on the default web front page, a few extra utility functions for functions_db as well. Some cleanup in the session code to use some of the new abstraction I added a while back. Player's last login time is now also set on the User object. Issue 28: Forward slashes causing crashes, found by Kuros, fixed by me. 2007-06-06 13:38:13 +00:00
Greg Taylor
94ceec3719 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. 2007-06-04 20:01:03 +00:00
Greg Taylor
bc2ea1780b Fixed an issue with @list that broke Windows compatibilty. We simply won't be able to let the user '@list process' under Windows, as the Python API lacks the needed modules and functions to do so. So everyone doesn't have to go through the head-scratching I did to figure out how to get Evennia running on Windows, I have included a startup.bat file for anyone wanting to develop under Windows. If someone would like me to post instructions on running under Windows, send a mail to the list stating the fact and I'll outline the process. 2007-06-04 03:54:33 +00:00
Greg Taylor
0e9732d49c Big re-organization of command functions. Introduced the commands directory to hold command modules. This will make it easier to sub-divide stuff as we pile on more commands, and for dropping in new optional command modules. 2007-05-29 03:32:48 +00:00