Hi
I hope this is a quick one
in an alias I would like options on casting a spell with eiter of these two variables @target (preset with "me" or "not me" depending on the spell) and @target2 (a name I entered when I use "t *")
so if @target = me then cast @spellname at @target1
but if @target = not me then cast @spellname at @target2
Immediate execution
[string "Alias: "]:6: 'then' expected near '='
local target = GetVariable("target")
local target2 = GetVariable("target2")
local x = (".. target")
if x = ("not me") then
Send "cast @spellname at @target2"
if x = ("me") then
Send "cast @spellname at @target"
Thanks
Val
I hope this is a quick one
in an alias I would like options on casting a spell with eiter of these two variables @target (preset with "me" or "not me" depending on the spell) and @target2 (a name I entered when I use "t *")
so if @target = me then cast @spellname at @target1
but if @target = not me then cast @spellname at @target2
Immediate execution
[string "Alias: "]:6: 'then' expected near '='
local target = GetVariable("target")
local target2 = GetVariable("target2")
local x = (".. target")
if x = ("not me") then
Send "cast @spellname at @target2"
if x = ("me") then
Send "cast @spellname at @target"
Thanks
Val