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


Joined: 11 Oct 2003
Posts: 5

PostPosted: Mon Oct 13, 2003 1:25 am   

status bar
 
is there a way to do little status bars easily, i mean little coloured bars that show a graphical representation of you current health and mana.. cos i couldnt see any easy way so i cobbled this together...

only problem is it has a delay it doesnt show the correct bar percentage until the next health/mana prompt triggers. can someone help me? i am missing something (probably a brain).

#TRIGGER {(%d)h, (%d)m*}

#var maxhealth 4073
#math healthbar1 (%1 * 30/ @maxhealth)
#var healthbar2 {%repeat("|",@healthbar1)}
#math healthbar3 (@healthbar1 * -1 + 30)
#var healthbar4 {%repeat("|",@healthbar3)}
#if (@healthbar1 > 15) {#var barcolor green}
#if (@healthbar1 < 16) {#var barcolor red}
#var maxmana 3380
#math manabar1 (%2 * 30/ @maxmana)
#var manabar2 {%repeat("|",@manabar1)}
#math manabar3 (@manabar1 * -1 + 30)
#var manabar4 {%repeat("|",@manabar3)}
#if (@manabar1 > 15) {#var manacolor blue}
#if (@manabar1 < 16) {#var manacolor purple}

#ST {~<b>Health: <color @barcolor @barcolor>@healthbar2</color><color black black>@healthbar4</color> Mana: <color @manacolor @manacolor>@manabar2</color><color black black>@manabar4</color> </b>}

Thanks.
Tacasti
Reply with quote
Brujah
Wanderer


Joined: 13 Nov 2002
Posts: 88
Location: USA

PostPosted: Mon Oct 13, 2003 2:51 am   
 
your MUD doesnt have MXP by any chance does it?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Oct 13, 2003 2:52 am   
 
Yes there is an easy way. It is called a guage. The best way to set them up is in the Settings Editor, they are a type of button. You can set them to be on a bottom panel, and thereby keep them where you want to look and leave your status bar open for displaying text information.
Reply with quote
Legion
Beginner


Joined: 09 Dec 2000
Posts: 22
Location: USA

PostPosted: Sun Oct 19, 2003 11:42 am   
 
Something else that might help, is if you have access to the options of the initial trigger (or all involved triggers if there are more) and set it to fire off on PROMPT. This might help it keep more up to date.
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