Script methods will now take a dictionary with keys rather than hard arguments. This will hopefully allow for a bit more flexibility.

This commit is contained in:
Greg Taylor 2007-07-17 15:58:19 +00:00
parent fadf3933af
commit be05772713
3 changed files with 40 additions and 20 deletions

View file

@ -164,7 +164,9 @@ def handle(cdat):
cdat['uinput'] = parsed_input
# SCRIPT: See if the player can traverse the exit
if not targ_exit.get_scriptlink().default_lock(pobject):
if not targ_exit.get_scriptlink().default_lock({
"pobject": pobject
}):
session.msg("You can't traverse that exit.")
else:
pobject.move_to(targ_exit.get_home())