mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 22:47:16 +02:00
Fixes two typos in sample code for evlang.
This commit is contained in:
parent
58e20e2cf1
commit
2729369027
1 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ These all return True after successful execution, which makes
|
|||
especially the msg* functions easier to use in a conditional. Let's
|
||||
try it.
|
||||
|
||||
@code crate/look = if caller.key=='Superman' and evl.msg("Your gaze burns a small hole.") or evl.msg("Looks robust!")
|
||||
@code crate/look = caller.key=='Superman' and evl.msg("Your gaze burns a small hole.") or evl.msg("Looks robust!")
|
||||
|
||||
Now look at the crate. :)
|
||||
|
||||
|
|
@ -105,5 +105,5 @@ You can (in evlang) use evl.list() to get a list of all methods currently stored
|
|||
use the same look slot on the crate again. But this time we'll use the /debug mode of @code, which means the script
|
||||
will be auto-run immediately and we don't have to look at the create to get a result when developing.
|
||||
|
||||
@code/debug create/look = evl.msg(evl.list())
|
||||
@code/debug crate/look = evl.msg(evl.list())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue