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
technomage
Beginner


Joined: 18 Jul 2002
Posts: 13

PostPosted: Tue Mar 11, 2003 9:03 pm   

little gauge help
 
I have folloing class everything work except the first one, the life gauge, it dosent show color like the other 2 gauages




#CLASS {general}
#VAR maxhp {53425}
#VAR maxmana {52602}
#VAR mana {45673}
#VAR maxmove {50600}
#VAR move {50600}
#VAR toexp {87590}
#VAR chp {53425}
#TRIGGER {~<(%d)/(%d)hp (%d)/(%d)ma (%d)/(%d)mv~> N/A~|n/a~|(%d)} {#VAR maxhp %1;#VAR chp %2;#VAR maxmana %3;#VAR mana %4;#VAR maxmove %5;#VAR move %6;#VAR toexp %7} "" {prompt}
#BUTTON 1 {@maxhp/@chp} {} {} {} {@chp} {} {} {Size} {150} {25} {} {} {} {32} {} {Gauge||12|@hpmax|@hpmax/2|7} {} "" {Explore|Inset} {} {}
#BUTTON 2 {@maxmana/@mana} {} {} {} {@mana} {} {} {Size} {150} {25} {} {} {} {32784} {} {Gauge||14|@maxmana|@maxmana/2|7} {} "" {Explore|Inset} {} {}
#BUTTON 3 {@maxmove/@move} {c ref} {} {} {@move} {} {} {Size} {150} {25} {} {} {} {96} {} {Gauge||8|@maxmove|@maxmove/10|7} {} "" {Explore|Inset} {} {}
#CLASS 0
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Mar 11, 2003 9:45 pm   
 
Visually they appear to all be of the same format.

If you edit the non working gauge does it look right? Does it contain
@maxhp/@chp or did it turn into numbers like 55555/55555?

What happens if you change @chp manually? Does the gauge change and somehow
@chp isn't being set properly from your prompt or something?

#VAR Chp 20000
#VAR Chp 30000



Ton Diening


Edit: *grin* I stared at it for awhile and missed that typo as well!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Mar 11, 2003 11:06 pm   
 
Pick a variable name and stick to it.
#BUTTON 1 {@maxhp/@chp} {} {} {} {@chp} {} {} {Size} {150} {25} {} {} {} {32} {} {Gauge||12|@hpmax|@hpmax/2|7} {} "" {Explore|Inset} {} {}

LightBulb
Advanced Member
Reply with quote
technomage
Beginner


Joined: 18 Jul 2002
Posts: 13

PostPosted: Wed Mar 12, 2003 6:00 pm   
 
stupid me, nothing more to add
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