• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Concatination

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?'})
 
Back
Top