mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 17:56:32 +01:00
Fixed the examples to all have matching nodenames, as per #792.
This commit is contained in:
parent
fc78bde002
commit
c28b06d639
1 changed files with 4 additions and 3 deletions
|
|
@ -29,11 +29,12 @@ command definition too) with function defintions:
|
|||
|
||||
```python
|
||||
|
||||
def nodename1(caller):
|
||||
def node1(caller):
|
||||
# (this is the start node if called like above)
|
||||
# code
|
||||
return text, options
|
||||
|
||||
def nodename2(caller, input_string):
|
||||
def node_with_other_namen(caller, input_string):
|
||||
# code
|
||||
return text, options
|
||||
```
|
||||
|
|
@ -71,7 +72,7 @@ Example:
|
|||
|
||||
# in menu_module.py
|
||||
|
||||
def start(caller):
|
||||
def node1(caller):
|
||||
text = ("This is a node text",
|
||||
"This is help text for this node")
|
||||
options = ({"key": "testing",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue