Hultin
Member
- Joined
- Dec 2, 2008
- Messages
- 262
- Reaction score
- 17
How do I concatenate a variable into a string in lua?
I've just started working on my first few npcs, and so far it's going great. What I want to do now though, is to have a npc (blesser) to say the exact cost of a blessing.
I have the cost calculated in a variable called "cost".
local node2 = keywordHandler:addKeyword({'Strength'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the Blessing of Strength for >cost here< gold?'})
I've just started working on my first few npcs, and so far it's going great. What I want to do now though, is to have a npc (blesser) to say the exact cost of a blessing.
I have the cost calculated in a variable called "cost".
local node2 = keywordHandler:addKeyword({'Strength'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy the Blessing of Strength for >cost here< gold?'})