The macro below fails - its not a macro I would use just written it to demonstrate what I am trying to do.
I want to define a spell at the top of the macro and cast it anywhere throughout the macro using the #define name I gave it (makes changing spell names very easy) - its the cast part that fails, tried a few different ways which learningcurve offered in chat but, still stuck - I know this works somehow because I have seen it in the FH macro. Thanks for anything.
I want to define a spell at the top of the macro and cast it anywhere throughout the macro using the #define name I gave it (makes changing spell names very easy) - its the cast part that fails, tried a few different ways which learningcurve offered in chat but, still stuck - I know this works somehow because I have seen it in the FH macro. Thanks for anything.
Rich (BB code):
#include spell_routines.inc
#define TGT1 "name"
#define HEAL_SPELL "superior healing"
Sub Main
:loop
/doevents
/if (${Me.Casting.ID}) /goto :loop
/target pc TGT1
/if (${Target.PctHPs}<50) /call heal
/goto :loop
sub heal
/call cast HEAL_SPELL
/goto :loop
|/cast HEAL_SPELL - does not work
|
|/cast "superior healing" - this works