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
jroper73
Novice


Joined: 03 Aug 2006
Posts: 30

PostPosted: Mon Aug 14, 2006 6:23 pm   

Help with Gauges to secondary chars
 
I want to create a script to watch the mana of a healer. But I want the healer to be a variable to can be changed on the fly.

The follow code works
Code:

#var MyHealer {tinea}
#GAUGE @MyHealer"-Mana" @MyHealer"-Mana" @tinea.MyMana @tinea.MyTotalMana (@tinea.MyTotalMana/40) "" "green" "red"


I want to get rid of all of the @tinea and replace it with @MyHealer
However, whenever I try to replace the others, it causes the gauge not to work. I tried
Code:

@%expand(@MyHealer).MyMana


Help
Asbestos
ncmud.org 9000
Reply with quote
Qiz
Novice


Joined: 14 Aug 2006
Posts: 34
Location: Sweden

PostPosted: Mon Aug 14, 2006 9:41 pm   
 
I havn't tried this, so this suggestion is unconfirmed:

@@{MyHealer}.MyMana and similar for the other stuff

Unless I'm misstaken this should be expanded as first:
@{MyHealer}.MyMana // expands to tinea.MyMana

and then:
@tinea.MyMana
Reply with quote
jroper73
Novice


Joined: 03 Aug 2006
Posts: 30

PostPosted: Sat Feb 24, 2007 5:13 am   
 
I played around with this. Still could not get this to work. Gauge has several fields
#GAUGE id caption [value] [maxvalue] [lowvalue] [class] [normcolor] [lowcolor] [backcolor]

ID and CAPTION appears to allow variables
however
VALUE, MAXVALUE, and LOWVALUE all appear only to except veratim input

I have tried a huge range of syntaxes, and ever time it copies to the gauge verbatim
I also tried to create a string and stick all the arguments in it, then pass it
#Gauge @MyString
Did not work.

Any ideas?
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