Module ...
Handle chats between the player and NPCs
Functions
| _M:addChat (c) | Adds a chat to the list of possible chats | 
| _M:get (id) | Gets the chat with the given id | 
| _M:invoke (id) | Invokes a chat | 
| _M:replace (text) | Replace some keywords in the given text | 
| _M:switchNPC (npc) | Switch the NPC talking | 
Functions
- _M:addChat (c)
- 
Adds a chat to the list of possible chats
Parameters- c:
 
- _M:get (id)
- 
Gets the chat with the given id
Parameters- id:
 
- _M:invoke (id)
- 
Invokes a chat
Parameters- id: the id of the first chat to run, if nil it will use the default one
 
- _M:replace (text)
- 
Replace some keywords in the given text
Parameters- text:
 
- _M:switchNPC (npc)
- 
Switch the NPC talking
Parameters- npc: