mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 22:47:16 +02:00
Updated HTML docs
This commit is contained in:
parent
b8ccc5de95
commit
160a1d1a8f
52 changed files with 166 additions and 164 deletions
|
|
@ -765,13 +765,13 @@
|
|||
<span class="sd"> exclude (list, optional): A list of objects not to send to.</span>
|
||||
<span class="sd"> from_obj (Object, optional): An object designated as the</span>
|
||||
<span class="sd"> "sender" of the message. See `DefaultObject.msg()` for</span>
|
||||
<span class="sd"> more info.</span>
|
||||
<span class="sd"> more info. This will be used for `$You/you` if using funcparser inlines.</span>
|
||||
<span class="sd"> mapping (dict, optional): A mapping of formatting keys</span>
|
||||
<span class="sd"> `{"key":<object>, "key2":<object2>,...}.</span>
|
||||
<span class="sd"> The keys must either match `{key}` or `$You(key)/$you(key)` markers</span>
|
||||
<span class="sd"> in the `text` string. If `<object>` doesn't have a `get_display_name`</span>
|
||||
<span class="sd"> method, it will be returned as a string. If not set, a key `you` will</span>
|
||||
<span class="sd"> be auto-added to point to `from_obj` if given, otherwise to `self`.</span>
|
||||
<span class="sd"> method, it will be returned as a string. Pass "you" to represent the caller,</span>
|
||||
<span class="sd"> this can be skipped if `from_obj` is provided (that will then act as 'you').</span>
|
||||
<span class="sd"> raise_funcparse_errors (bool, optional): If set, a failing `$func()` will</span>
|
||||
<span class="sd"> lead to an outright error. If unset (default), the failing `$func()`</span>
|
||||
<span class="sd"> will instead appear in output unparsed.</span>
|
||||
|
|
@ -804,6 +804,7 @@
|
|||
|
||||
<span class="sd"> char.location.msg_contents(</span>
|
||||
<span class="sd"> "$You() $conj(attack) $you(defender).",</span>
|
||||
<span class="sd"> from_obj=player1,</span>
|
||||
<span class="sd"> mapping={"defender": player2})</span>
|
||||
|
||||
<span class="sd"> - player1 will see `You attack The Second girl.`</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue