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
saw8343
Newbie


Joined: 18 Mar 2005
Posts: 2

PostPosted: Fri Mar 18, 2005 8:14 pm   

Trigger for spell point range
 
I need help with a trigger. Been trying to figure it out and i just can't for the life of me get it to work. I want to trigger off of "You sense your opponent" and have it cast a spell if above 100 sp. My hpbar looks like -HP: 415/415 | SP: 220/220 .

Can anyone help me?

Question
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Fri Mar 18, 2005 8:40 pm   
 
Code:
#CLASS {Test}
#VAR my_sp {}
#TRIGGER {^-HP: %d/%d | SP: (%d)/%d} {#var my_sp {%1}} "" {prompt}
#TRIGGER {^You sense your opponent} {#if (@my_sp > 100) {cast 'somespell'}}
#CLASS 0


I wasnt sure if the space and the period following "-HP: 415/415 | SP: 220/220" was part of your prompt or just punctuation so I didnt make it part of the trigger.
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
saw8343
Newbie


Joined: 18 Mar 2005
Posts: 2

PostPosted: Fri Mar 18, 2005 9:05 pm   
 
Twisted Evil

dude, you rock. thanks a million.
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