Go to file
2021-05-11 13:09:48 +02:00
dev first commit 2020-11-20 11:45:50 +01:00
models first commit 2020-11-20 11:45:50 +01:00
textures first commit 2020-11-20 11:45:50 +01:00
config.lua added limit for amount of option/answers per dialog 2021-05-08 21:06:27 +02:00
functions.lua added npc_talk_master 2021-05-11 13:07:12 +02:00
init.lua first commit 2020-11-20 11:45:50 +01:00
mobs.lua first commit 2020-11-20 11:45:50 +01:00
mod.conf first commit 2020-11-20 11:45:50 +01:00
privs.lua first draft of alternate edit mode for players with npc_talk_owner priv 2021-04-27 22:17:09 +02:00
readme.md Add Documentation 2020-11-21 19:15:58 +01:00
README.md mentionned mute in README.md 2021-05-11 13:09:48 +02:00
tools.lua added yl_speak_up.update_nametag and yl_speak_up.set_muted for colored nametags depending on muted state 2021-05-10 14:34:47 +02:00
usage.md Add Documentation 2020-11-21 19:15:58 +01:00

This mod allows to set RPG-like texts for NPC where the NPC "says" something to the player and the player can reply with a selection of given replies - which most of the time lead to the next dialog.

Terminology

dialog A text said by the NPC, with diffrent replys the player can select from.

option A reply/answer to the text the NPC said.

precondition All listed preconditions have to be true in order for the NPC to offer this option.

effect Further effects (like setting variables, handing out items) selecting a particular option has.

How to configure NPC and add dialogs

There are two ways:

  1. Just talk to them and click on the "I am your owner"-Dialog. This opens up a menu where you can edit most things.
  2. Use /giveme to get the staff you want, wield the staff and point it at the NPC you want to change. This is much more powerful. Lua code can be entered and later executed by the NPC.

The privs

npc_talk_owner will allow players to edit their own NPC by talking to them. Does not include usage of the staffs! Ought to be given to all players.

npc_talk_master allows players to edit any NPC supported by this mod. Does not include usage of the staffs! Ought to be given to selected trusted players who want to help others with their NPC configuration and/or support NPCs owned by the server.

npc_master allows players to edit any NPC supported by this mod. Does include usage of the staffs. This is very powerful and allows to enter and execute lua code without restrictions. Only grant this to staff members you really trust.

Mute

When you edit an NPC, you might want to stop it from talking to other players and spoiling unifinished texts/options to the player.

For this case, the NPC can be muted. This works either with the staff or by selecting the appropriate option in the talk menu after having started edit mode by claiming to be the NPC's owner.