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


Joined: 26 Mar 2012
Posts: 1

PostPosted: Mon Mar 26, 2012 12:43 am   

Reading hp and mana values off the prompt. Help?
 
Sorry of this is a noob question. I've been trying for weeks to get a trigger setup where my spell triggers will automatically shut themselves off if my mana drops below a certain level. My intent to do this was to read my current mana level off the prompt but I just can't figure out how. This is exactly what my prompt looks like. Any assistance would be greatly appreciated.

Invis 71 200hp(200) 583ma(690) NH HL >
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Wed Apr 04, 2012 2:21 pm   
 
It would be easier if your prompt started with a special character such as |.
As such, you will need to create a trigger to capture the mana level. Ignoring
the first 2 pieces of information, which is unnecessary, your resultant trigger would
look like:
#trig {(%d)hp~(%d~) (%d)ma~(%d~) * ~>} {#var CurrentHP {%1};#var CurrentMana {%1}} "" "prompt"
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