Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Rolly
Wanderer


Joined: 16 Oct 2006
Posts: 62

PostPosted: 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.
Reply with quote
Rolly
Wanderer


Joined: 16 Oct 2006
Posts: 62

PostPosted: Sun Jan 06, 2008 11:53 pm   
 
I should say that the macro and variable are both in the same package.
Reply with quote
Rolly
Wanderer


Joined: 16 Oct 2006
Posts: 62

PostPosted: Mon Jan 07, 2008 12:48 am   
 
Never mind, I got it. There was a copy of the variable in another package.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net