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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Thudder
Newbie


Joined: 19 Mar 2005
Posts: 6

PostPosted: Sat Mar 19, 2005 7:48 pm   

Help with expanding variables
 
I have two spells that I want to keep track of PE and PG. I catch them from my hp bard to the variables @PE and @PG. I reset based on their duration and spell points which works fine however I need to choose one or the other.

I have a variable EoG which i would like to put either PE or PG into. So can I have a #IF statement that reads #if (@(@EoG)<50) {cast @EoG} ?

Basically I just want it to figure out which spell i want to check the duration on and recast it. Is there different syntax i should be doing or an easier way to do it period?
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Sat Mar 19, 2005 8:02 pm   
 
assuming
#VA PE 33
#VA PG 27
#VA EoG PE
then
#if (@{@EoG}<50) {cast @EoG}
should send 'cast PE' to the mud
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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