New way of working with scriptlinks.

Scripts should be defined as '.' separated directory structures, starting in the base evennia directory.
This commit is contained in:
loki77 2008-06-18 04:36:23 +00:00
parent 6d1a8b8250
commit 3e57f49395
2 changed files with 5 additions and 14 deletions

View file

@ -646,7 +646,7 @@ class Object(models.Model):
"""
if not self.scriptlink:
if self.is_player():
script_to_load = 'player/basicplayer'
script_to_load = 'player.basicplayer'
else:
script_to_load = 'basicobject'
self.scriptlink = scripthandler.scriptlink(self, self.get_attribute_value('__parent', script_to_load))