mirror of
https://github.com/evennia/evennia.git
synced 2026-03-19 14:26:30 +01:00
Adding some more script hooks.
This commit is contained in:
parent
ebb145654f
commit
9c57e1cf7a
2 changed files with 28 additions and 2 deletions
|
|
@ -12,15 +12,35 @@ class BasicObject:
|
|||
"""
|
||||
self.source_obj = source_obj
|
||||
|
||||
def a_desc(self, looker):
|
||||
def a_desc(self, actor):
|
||||
"""
|
||||
Perform this action when someone uses the LOOK command on the object.
|
||||
|
||||
looker: (Object) Reference to the looker
|
||||
actor: (Object) Reference to the looker
|
||||
"""
|
||||
# Un-comment the line below for an example
|
||||
#print "SCRIPT TEST: %s looked at %s." % (looker, self.source_obj)
|
||||
pass
|
||||
|
||||
def a_get(self, actor):
|
||||
"""
|
||||
Perform this action when someone uses the GET command on the object.
|
||||
|
||||
actor: (Object) Reference to the person who got the object
|
||||
"""
|
||||
# Un-comment the line below for an example
|
||||
#print "SCRIPT TEST: %s got %s." % (looker, self.source_obj)
|
||||
pass
|
||||
|
||||
def a_drop(self, actor):
|
||||
"""
|
||||
Perform this action when someone uses the GET command on the object.
|
||||
|
||||
actor: (Object) Reference to the person who dropped the object
|
||||
"""
|
||||
# Un-comment the line below for an example
|
||||
#print "SCRIPT TEST: %s got %s." % (looker, self.source_obj)
|
||||
pass
|
||||
|
||||
def class_factory(source_obj):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue