NPC: Changed general issue with names. Now names are a dedicated variable, not anymore a nametag.

NPC names aren't visible anymore.
Spawner: Added NPC statistics to plotmarkers.
Add statistics-based spawning for a more balanced, family-type spawning of NPCs.
This commit is contained in:
Hector Franqui
2017-06-17 09:08:29 -04:00
parent adeeecd43e
commit bf0f643e3e
12 changed files with 221 additions and 81 deletions

View File

@ -296,7 +296,7 @@ function npc.dialogue.process_dialogue(self, dialogue, player_name)
-- Send dialogue line
if dialogue.text then
minetest.chat_send_player(player_name, self.name..": "..dialogue.text)
minetest.chat_send_player(player_name, self.npc_name..": "..dialogue.text)
end
-- Check if dialogue has responses. If it doesn't, unlock the actions