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
Morten
Apprentice


Joined: 17 Feb 2001
Posts: 119
Location: Denmark

PostPosted: Fri Dec 28, 2001 11:36 pm   

buttons/gauge
 
how do one make a gauge from command linie
lets say i wish to have a hp gauge and
i got a max hp at 500

Yugo Sangori
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Sat Dec 29, 2001 3:34 pm   
 
Assuming your prompt looks like this:

<485hp 543ma 230mv>

Your prompt trigger would look like:

#TRIGGER {~<(%d)hp %dma %dmv~>} {#VAR hp %1} "" "prompt"

You manually set your max hp variable: #VAR maxhp 500

Then at the command prompt enter:

#GAUGE hp "hp" @hp @maxhp (@maxhp/10) "" "blue" "red"

This will make the gauge line blue when your hp is between 50 and 500, and red when your hp is less than 50.

Troubadour
Reply with quote
Morten
Apprentice


Joined: 17 Feb 2001
Posts: 119
Location: Denmark

PostPosted: Sun Dec 30, 2001 9:14 am   
 
great works like a dream...

now what if i want 2 gauge can this be done from the command line?

Yugo Sangori
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