Dialogues: Added function to select random dialogues for NPCs from random data.

Modified NPCs so random dialogues are chosen on initialization.
Added function to start a dialogue, choosing randomly NPCs dialogues.
Changed NPC code to use new dialogue code
This commit is contained in:
zorman2000
2016-12-01 14:37:00 -05:00
parent 46e3d2543b
commit 762337cc6d
5 changed files with 206 additions and 37 deletions

View File

@ -25,7 +25,7 @@ mobs.intllib = S
-- NPC
dofile(path .. "/npc.lua")
dofile(path .. "/chat.lua")
dofile(path .. "/dialogue.lua")
dofile(path .. "/random_data.lua")
--dofile(path .. "/trader.lua")