|
darkfenix Wanderer
Joined: 02 Feb 2002 Posts: 58
|
Posted: Sun Oct 20, 2002 3:12 pm
more gauges |
You have achieved level 55 (Idolized) and are 23% of the way to the next level.
Endurance: 13796/13875 Willpower: 13050/13050
well im trying to make a guage bar to this if its possible heres what I came up with and obviously its not working...is what Im trying to do even possible?
#ALIAS expfull {100} "healthbar"
#ALIAS maxwillpower {19950} "healthbar"
#VAR maxendurance {21225} {_nodef} "healthbar"
#TRIGGER {Endurance:%d/21225 Willpower: %d/19950} {#var endurance %1;#var willpower %1} "healthbar"
#TRIGGER {and are %d% of the} {#var exp %1} "healthbar"
#BUTTON 3 {Endurance} {} {} {} {@endurance} {} {} {} {} {} {} {} {} {} {} {Gauge|9|12|@maxendurance|@maxendurance/4} {} "healthbar" {Explore|Inset} {} {}
#BUTTON 5 {exp} {} {} {} {@exp} {} {} {} {} {} {} {} {} {} {} {Gauge|9|12|@expfull|} {} "healthbar" {Explore|Inset} {} {}
#BUTTON 4 {Willpower} {} {} {} {@willpower} {} {} {} {} {} {} {} {} {} {} {Gauge|9|12|@maxwillpower|@maxwillpower/4} {} "healthbar" {Explore|Inset} {} {}
I also need help with a input in the status bar...
Your body positively glows with health and vitality. (trigger)
then I want an input in the status bar saying VITALITY UP!!!! if it can be a button or something thats clearer thats great.
numbness fade away.
status bar/buttong saying CAREFUL!!!! NO VITALITY!!!
I know I can echo them but they are kinda too permanent for echo and they last a while so echos dont help but you might be able to *g* thanks!!! |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Oct 20, 2002 4:05 pm |
Part of the reason it is not working is right here:
#ALIAS expfull {100} "healthbar"
#ALIAS maxwillpower {19950} "healthbar"
should be
#VAR expfull {100} {_nodef} "healthbar"
#VAR maxwillpower {19950} {_nodef} "healthbar"
As to the status bar thing:
#TR {Your body positively glows with health and vitality.} {#ST {VITALITY UP!!!!}}
#TR {numbness fade away.} {#ST {CAREFUL!!!! NO VITALITY!!!}} |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Oct 20, 2002 4:55 pm |
You can skip the first 3 commands. Two of those values, @maxendurance and @maxwillpower, should come from the triggers. Also, you left out the parentheses, (), in your triggers.
#TR {Endurance: (%d)/(%d) Willpower: (%d)/(%d)} {#VAR endurance %1;#VAR maxendurance %2;#VAR willpower %3;#VAR maxwillpower %4} "healthbar"
#TRIGGER {and are (%d)~% of the} {#var exp %1} "healthbar"
The other value, @expfull, is a constant, so just use the number 100 as the gauge max.
#BUTTON 5 {exp} {} {} {} {@exp} {} {} {} {} {} {} {} {} {} {} {Gauge|9|12|100|} {} "healthbar" {Explore|Inset} {} {}
LightBulb
Senior Member |
|
|
|
darkfenix Wanderer
Joined: 02 Feb 2002 Posts: 58
|
Posted: Mon Oct 21, 2002 2:26 pm |
okies working great thanks but how do I make the status bar show more than one thing I want to setup more #ST stuff but it seems to accept only one
VITALITY BALANCE EQUI SPEED you know? thanks again |
|
|
|
doomfyre Apprentice
Joined: 03 Jan 2002 Posts: 152 Location: USA
|
Posted: Mon Oct 21, 2002 5:55 pm |
Copied directly from the help file within Zmud:
STATUS
Syntax: #ST text
Sets the definition used for the status line displayed beneath the output window. This line can contain variables which are expanded before the status line is displayed. The status line is updated whenever a variable is changed.
STATUS example
#ST {Gold: @gold Tank: @tank}
If the value of @gold is 1234 and the value of @tank is Zugg, then the text
Gold: 1234 Tank: Zugg
is displayed on the status line.
So, if you have variables with the names at the end of your post above:
#ST {Vitality: @vitality Balance: @balance Equi: @equi Speed: @speed} |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Oct 21, 2002 6:05 pm |
You only get one status bar but you can put as much info (text/variables/expressions) as you want in it.
#TR {Your body positively glows with health and vitality} {#VAR vitality {VITALITY }}
#TR {numbness fades away} {#VAR vitality vitality;#MESSAGE {Careful, no VITALITY}}
#TR {^(%d)h, (%d)m (*)-} {#VAR hp %1;#VAR mana %2;#IF %pos(x, %3) {#VAR balance BALANCE } {#VAR balance balance};#IF %pos(e, %1) {#VAR equi EQUI} {#VAR equi equi}} {} {prompt|nocr}
#ST {@vitality @balance @equi}
This will give you uppercase when things are active, lowercase when they aren't. You might prefer to use nullstrings "" when they aren't active. You can also change colors in the status bar using the %if function (to decide which colors to use) and the %ansi function (to change the color).
LightBulb
Senior Member |
|
|
|
|
|