I'm new to using Lua and was hoping for some help. I've read through various help files and I cannot seem to find anything that actually addressed what I need help with.
My question is, how do I expand variables inside of a note?
An example of what I mean is:
My question is, how do I expand variables inside of a note?
An example of what I mean is:
Quote:
------------------------------------------------
if (HP < 25) then
Note ("This @Target is too strong. Teleport to safety!")
end
------------------------------------------------
What currently appears with this code:
This @Target is too strong. Teleport to safety!
I want it to appear as:
This GOLEM is too strong. Teleport to safety!
Or whatever my current target is via the target variable.
------------------------------------------------
if (HP < 25) then
Note ("This @Target is too strong. Teleport to safety!")
end
------------------------------------------------
What currently appears with this code:
This @Target is too strong. Teleport to safety!
I want it to appear as:
This GOLEM is too strong. Teleport to safety!
Or whatever my current target is via the target variable.