Updating ReST docs.

This commit is contained in:
Griatch 2012-03-15 15:26:07 +01:00
parent f46a9a1280
commit 2eb5c4fc8c
39 changed files with 410 additions and 1203 deletions

View file

@ -50,7 +50,7 @@ becomes equivalent to "``look The red sports car``".
::
nick/players tom = TommyBoy
nick/players tom = Thomas Johnsson
This is useful for commands searching for players explicitly:
@ -83,13 +83,7 @@ checking, searches and conversion.
::
# A command/channel nick:
object.nicks.add("greetjack", "tell Jack = Hello pal!")# An object nick:
object.nicks.add("rose", "The red flower", nick_type="object")# An player nick:
object.nicks("tom", "Tommy Hill", nick_type="player")# My own custom nick type (handled by my own game code somehow):
object.nicks.add("hood", "The hooded man", nick_type="my_identsystem")# get back the translated nick:
full_name = object.nicks.get("rose", nick_type="object")# delete a previous set nick
object.nicks.del("rose", nick_type="object")
# A command/channel nick: object.nicks.add("greetjack", "tell Jack = Hello pal!")# An object nick: object.nicks.add("rose", "The red flower", nick_type="object")# An player nick: object.nicks("tom", "Tommy Hill", nick_type="player")# My own custom nick type (handled by my own game code somehow): object.nicks.add("hood", "The hooded man", nick_type="my_identsystem")# get back the translated nick: full_name = object.nicks.get("rose", nick_type="object")# delete a previous set nick object.nicks.del("rose", nick_type="object")
In a command definition you can reach the nick handler through
``self.caller.nicks``. See the ``nick`` command in