I am making a "speech bubble" system in my game Heroic, that allows all of the npc's to have assigned dialogs that they say.
When you walk up and talk to them by pushing some button, a little rectangular speech window pops up by there face and text is displayed, (This text is there dialog).
So, let's say I have something like this:
Code: Select all
-- Let's say I have a table for each npc's data..
npc_data = {}
npc_data[1] = {name = "Bob", Image = "image/directory/here", dialog = "Hello there, I am Bob!"}
So It is possible to do something like this,
Code: Select all
dialog = "Hello there, /n I am bob"
I'd Appreciate any and all help, thanks!:D