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:
parent
6d1a8b8250
commit
3e57f49395
2 changed files with 5 additions and 14 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue