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


Joined: 18 Jul 2005
Posts: 1

PostPosted: Mon Jul 18, 2005 8:42 pm   

Health and Psi Triggers Button
 
I haven't really understood it so I'll let you pros help me out with this triggers. I'm trying to have button to show me how much health or psi I have. I will show you example.

You have 1000 of 1000 health points remaining.
Current psi energy: 1000/1000

However those isn't in prompt, I have to type health or psi to even see them. Is there a way to trigger it so I can view health or psi without having to type it? Please respond, thank you all.
Reply with quote
GaidinBDJ
Wanderer


Joined: 15 Nov 2002
Posts: 52
Location: Las Vegas, Nevada

PostPosted: Tue Jul 19, 2005 5:14 pm   
 
Hrm...you could set a timer action, then gag the prompts. Just beware of your MUD's robot policy.

Then just
#trigger {^You have &%d{curHealth} of &%d{maxHealth} health points remaining.$} {#GAG}
#trigger {^Current psi energy: &%d{curPsi}/&%d{maxPsi}$} {#GAG}

Then just set up a gauge for each value.
#GAUGE health "Health: @curHealth/@maxHealth" @curHealth @maxHealth (@maxHealth/5) "" "blue" "red"
#GAUGE psi "Psi @curPsi/@maxPSI" @curPsi @maxPsi (@maxPsi/5) "" "green" "red"

You can edit the gauges a little better in the Settings Editor, change the colors and such.
_________________
Barry
Gaidin @ 3k.org
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