Thread: LUA $name
View Single Post
  #6  
Old 04-04-2014, 12:37 AM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

Quote:
Originally Posted by Uleat View Post
I found this in '\quests\freeporteast\Groflah_Steadirt.lua':

e.self:Say(string.format("Greetings, %s! Join in the [celebration]! Have a few drinks. Alas, there are no [Tumpy Tonics].",e.other:GetName()));


I think '$name' is a perl holdover.
Additionally, this does work, but is horribly unreadable to people not familiar with C++

This is the preferred way to do it.
Quote:
e.self:Emote("begins to furiously work the metal. Sparks fly and a faint magical e.self:Say("Greetings, " .. e.other:GetName() .. "! Join in the [celebration]! Have a few drinks. Alas, there are no [Tumpy Tonics].");
Reply With Quote