mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-11-05 06:43:08 +01:00
adjusted readme to /npc_talk <cmd> structure
This commit is contained in:
parent
252fdebc5e
commit
124f3cd482
35
README.md
35
README.md
@ -53,28 +53,28 @@ and set its name).
|
||||
### 2. Chat commands
|
||||
<a name="chat-commands"></a>
|
||||
|
||||
#### `/npc_talk_style` Allows to select the formspec version:
|
||||
#### `/npc_talk style` Allows to select the formspec version:
|
||||
* 1: Very rudamentary. Not recommended.
|
||||
* 2: Shows additional buttons for up and down.
|
||||
* 3: Default (recommended) version. Scroll via mouse wheel.
|
||||
|
||||
#### `/npc_talk_debug` Allows to debug dialogs.
|
||||
#### `/npc_talk debug` Allows to debug dialogs.
|
||||
|
||||
#### `/npc_talk_privs` grant, revoke or list the privs of NPC. NPC need privs for
|
||||
#### `/npc_talk privs` grant, revoke or list the privs of NPC. NPC need privs for
|
||||
some dangerous things like executing lua code. Examples:
|
||||
`/npc_talk_privs list` lists the privs of all NPC
|
||||
`/npc_talk_privs grant n_3 effect_exec_lua`
|
||||
`/npc_talk privs list` lists the privs of all NPC
|
||||
`/npc_talk privs grant n_3 effect_exec_lua`
|
||||
grants NPC n_3 the right to execute
|
||||
lua code as an effect/result
|
||||
Note: If a precondition or effect originates from a generic
|
||||
NPC, the priv will be considered granted if either the
|
||||
executing NPC or the the generic NPC has the priv.
|
||||
|
||||
#### `/npc_talk_generic` Add or remove NPC from the list of generic dialog providers.
|
||||
`/npc_talk_generic list` Lists all generic NPC
|
||||
`/npc_talk_generic add n_3` Adds the dialog from NPC as a
|
||||
#### `/npc_talk generic` Add or remove NPC from the list of generic dialog providers.
|
||||
`/npc_talk generic list` Lists all generic NPC
|
||||
`/npc_talk generic add n_3` Adds the dialog from NPC as a
|
||||
generic dialog.
|
||||
`/npc_talk_generic add n_3` Removes the dialog from NPC as a
|
||||
`/npc_talk generic add n_3` Removes the dialog from NPC as a
|
||||
generic dialog.
|
||||
Requires the privs priv.
|
||||
|
||||
@ -86,7 +86,7 @@ and set its name).
|
||||
server will crash - so please test on a test server first!
|
||||
Requires the privs priv.
|
||||
|
||||
#### `/npc_talk_force_edit` Toggles edit mode.
|
||||
#### `/npc_talk force_edit` Toggles edit mode.
|
||||
From now on (until you issue this command again), all NPC you
|
||||
talk to will be in edit mode (provided you are allowed to
|
||||
edit them). This is useful if something's wrong with your NPC
|
||||
@ -138,9 +138,9 @@ There are two ways:
|
||||
NPC you want to change. This is much more powerful. Lua code can be
|
||||
entered and later executed by the NPC.
|
||||
|
||||
hint: The command `/npc_talk_debug <npc_id>` allows you to get debug
|
||||
hint: The command `/npc_talk debug <npc_id>` allows you to get debug
|
||||
information regarding preconditions and effects. You can turn it
|
||||
off with `/npc_talk_debug off`. The NPC ID can be seen in the
|
||||
off with `/npc_talk debug off`. The NPC ID can be seen in the
|
||||
setup dialog for preconditions and effects.
|
||||
|
||||
|
||||
@ -158,7 +158,7 @@ hint: The command `/npc_talk_debug <npc_id>` allows you to get debug
|
||||
NPCs owned by the server.
|
||||
|
||||
`npc_talk_admin` Generic maintenance of NPC. Necessary for the command
|
||||
`npc_talk_generic` - add or remove an NPC from the list of
|
||||
`/npc_talk generic` - add or remove an NPC from the list of
|
||||
generic dialog providers
|
||||
Also allows to set and change NPC properties starting with
|
||||
the prefix "server".
|
||||
@ -170,8 +170,8 @@ hint: The command `/npc_talk_debug <npc_id>` allows you to get debug
|
||||
Only grant this to staff members you really trust.
|
||||
|
||||
`privs` Necessary for the commands
|
||||
`npc_talk_privs` - grant NPC privs like e.g. execute lua
|
||||
`npc_talk_reload` - reload code of this mod
|
||||
`/npc_talk privs` - grant NPC privs like e.g. execute lua
|
||||
`/npc_talk_reload` - reload code of this mod
|
||||
|
||||
NPC can have privs as well. The NPC...
|
||||
|
||||
@ -574,8 +574,9 @@ imported dialogs from that NPC. The options found there will be
|
||||
added into the target NPC and the dialog text will be appended to
|
||||
its dialog text.
|
||||
|
||||
The chat command /npc_talk_generic (requires privs priv) is used to list,
|
||||
add or remove NPC from the list of generic dialog/behaviour providers.
|
||||
The chat command `/npc_talk generic` (requires npc_talk_admin priv) is
|
||||
used to list, add or remove NPC from the list of generic dialog/behaviour
|
||||
providers.
|
||||
|
||||
|
||||
### 27. Integration into your own NPC/mob mods
|
||||
|
||||
Loading…
Reference in New Issue
Block a user