I'm attempting to make an alias that when typed will report the data this below locals each time. I already have it running in a note, but I'm not sure of the command to send messages to the world. Like Note put it to the output, what is the command to put it into say the world itself.
^Your .* \[(\d+)\]$
function TotalDmg
local Dmg
local TotalDmg
Dmg = %1
TotalDmg = tonumber (GetVariable("Total_Damage"))
if TotalDmg == nil then
local FinalDmg
FinalDmg = 0 + Dmg
SetVariable ("Total_Damage", FinalDmg)
else
local FinalDmg
FinalDmg = TotalDmg + Dmg
SetVariable ("Total_Damage", FinalDmg)
end
^Your .* \[(\d+)\]$
function TotalDmg
local Dmg
local TotalDmg
Dmg = %1
TotalDmg = tonumber (GetVariable("Total_Damage"))
if TotalDmg == nil then
local FinalDmg
FinalDmg = 0 + Dmg
SetVariable ("Total_Damage", FinalDmg)
else
local FinalDmg
FinalDmg = TotalDmg + Dmg
SetVariable ("Total_Damage", FinalDmg)
end