Made a more updated doc string.
This commit is contained in:
parent
882a70ae4b
commit
ba1f10e88f
1 changed files with 12 additions and 11 deletions
|
|
@ -11,21 +11,22 @@ from evennia import DefaultCharacter
|
||||||
|
|
||||||
class Character(DefaultCharacter):
|
class Character(DefaultCharacter):
|
||||||
"""
|
"""
|
||||||
The Character defaults to implementing some of its hook methods with the
|
The Character defaults to reimplementing some of base Object's hook methods with the
|
||||||
following standard functionality:
|
following functionality:
|
||||||
|
|
||||||
at_basetype_setup - always assigns the DefaultCmdSet to this object type
|
at_basetype_setup - always assigns the DefaultCmdSet to this object type
|
||||||
(important!)sets locks so character cannot be picked up
|
(important!)sets locks so character cannot be picked up
|
||||||
and its commands only be called by itself, not anyone else.
|
and its commands only be called by itself, not anyone else.
|
||||||
(to change things, use at_object_creation() instead)
|
(to change things, use at_object_creation() instead).
|
||||||
at_after_move - launches the "look" command
|
at_after_move - Launches the "look" command after every move.
|
||||||
at_post_puppet(player) - when Player disconnects from the Character, we
|
at_post_unpuppet(player) - when Player disconnects from the Character, we
|
||||||
store the current location, so the "unconnected" character
|
store the current location in the pre_logout_location Attribute and
|
||||||
object does not need to stay on grid but can be given a
|
move it to a None-location so the "unpuppeted" character
|
||||||
None-location while offline.
|
object does not need to stay on grid. Echoes "Player has disconnected"
|
||||||
at_pre_puppet - just before Player re-connects, retrieves the character's
|
to the room.
|
||||||
old location and puts it back on the grid with a "charname
|
at_pre_puppet - Just before Player re-connects, retrieves the character's
|
||||||
has connected" message echoed to the room
|
pre_logout_location Attribute and move it back on the grid.
|
||||||
|
at_post_puppet - Echoes "PlayerName has entered the game" to the room.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue