|
jroper73 Novice
Joined: 03 Aug 2006 Posts: 30
|
Posted: 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 |
|
|
|
Qiz Novice
Joined: 14 Aug 2006 Posts: 34 Location: Sweden
|
Posted: 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 |
|
|
|
jroper73 Novice
Joined: 03 Aug 2006 Posts: 30
|
Posted: 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? |
|
|
|
|
|