|
Rolly Wanderer
Joined: 16 Oct 2006 Posts: 62
|
Posted: Sun Jan 06, 2008 11:25 pm
Macro not seeing variable |
I have a macro:
stand
concentrate
#if (@EnemyType = Single) {jpk @PrimeEnemy}
sdk @PrimeEnemy
ucp @PrimeEnemy
ucp @PrimeEnemy
in my function key. It seems pretty buggy. If I press the macro key, I get output to the mud:
stand
concentrate
sdk
ucp
ucp
With no enemy targeted. I have an alias which sets 15 enemies into buttons and when I press the button with an enemy they become my new @PrimeEnemy. That part is working and the names go into the var @PrimeEnemy just fine. When I go to edit and "execute script" it works just fine. Once in a while it works and other times it doesn't capture the variable.
I set the option Macros override menu shortcuts in the general preferances tab and that didn't help.
Please help. |
|
|
|
Rolly Wanderer
Joined: 16 Oct 2006 Posts: 62
|
Posted: Sun Jan 06, 2008 11:53 pm |
I should say that the macro and variable are both in the same package.
|
|
|
|
Rolly Wanderer
Joined: 16 Oct 2006 Posts: 62
|
Posted: Mon Jan 07, 2008 12:48 am |
Never mind, I got it. There was a copy of the variable in another package.
|
|
|
|
|
|