 |
racolon Beginner
Joined: 27 Apr 2003 Posts: 25 Location: USA
|
Posted: Sun Apr 27, 2003 4:42 am
Hit Points Gauge |
I have seen a gauge that takes around 1/5 of the screen of that person, it displays his hps from max 34,000 to the minimum zero, plus with his status bar the gauge always shows him the exact amount of hps left. I cannot get it because I saw this only on someone web page and I dont know the person, but if anyone here knows how to make that let me know because I'd like to add some pretty neat stuff like amount of experience, current hps and max hps on that gauge. Let me know if someone knows how to and explain it to me
Thanks
BTW My @hpmax is 26300
Experience 150mil combat and 54mil Quest EXP
Endora |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Apr 27, 2003 5:58 am |
A gauge can only show one value. You can, of course, have several gauges. The first step is to get the information needed for the gauge, usually this is done with triggers and variables. I copied your trigger from the Finished Scripts forum, but made some minor changes.
zMUD provides a multitude of special purpose wildcards, such as %d for any number of digits, 0-9, and uses parentheses to indicate which portions of the trigger pattern may be referred to later in the trigger value. This is preferred to the use of %1, %2, etc in the pattern because it is more precise and at the same time more flexible.
#TRIGGER {Hit Points : (%d) / (%d)} {#var hp %1
#var hpmax %2}
You may need to adjust the number of spaces before and after the :
With the triggers and variables in place, all that's left is to make the gauge(s). Open the editor by clicking on the Buttons button. Click New. Set the Kind to Gauge. In the Caption field, type HP (just don't leave it blank).
Click the Gauge tab. On the Gauge tab, type in @hp as the Value. Gauge Max will be @hpmax. Gauge Low will be the value where you'd like the gauge to change color, I usually use 1/4 of the max which would be @hpmax/4. Set the colors.
Go to the Position/Size tab. Set the size as desired (or use Autosize). 100 wide by 15 high works well for me. Set the position or use AutoPosition. I usually use AutoPosition and that's the best choice until you've made a few buttons and are comfortable with fixing your mistakes.
Click Save. Repeat, with whatever changes are necessary, to create additional gauges for other values such as mana.
A gauge needs 3 main items to work properly:
A name (usually the Caption)
A value (@hp)
A maximum value (@hpmax)
LightBulb
Advanced Member |
|
|
 |
Dumas Enchanter
Joined: 11 Feb 2003 Posts: 511 Location: USA
|
Posted: Sun Apr 27, 2003 6:03 am |
I am going to assume you are not looking how to create a gauge, only to get it so that the numbers are there instead of the name. In that case, you simply change the caption of the gauge to show the value(s) of the variables holding whatever you are wanting to keep track of. For instance...a basic health gauge would get the caption @hp/@hpmax and if hp was 3000 and hpmax 4000 it would show 3000/4000 on the gauge
|
|
|
 |
Dumas Enchanter
Joined: 11 Feb 2003 Posts: 511 Location: USA
|
Posted: Sun Apr 27, 2003 6:05 am |
My mistake...can't use a second variable in the caption either
|
|
|
 |
racolon Beginner
Joined: 27 Apr 2003 Posts: 25 Location: USA
|
Posted: Sun Apr 27, 2003 1:13 pm |
Hmm ok you kinda lost me.
Explain that a little bit less complicated :)
And why I wanna make a gauge because in my screen I have like 1/4 of my screen on the right side that is just black(not used for anything) due way the mud shows the output so I'd like to use that extra space for like 2 or 3 gauges to make my Zmud look GOOD :)
Thanks
Endora |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Apr 27, 2003 6:03 pm |
Hmm ok you kinda lost me.
Explain WHAT a little bit less complicated?
If you meant making a gauge, here's the less complicated version.
Go to the settings editor and make a new "Gauge"-type button.
You've been extremely vague in your questions. That tends to result in equally vague answers.
LightBulb
Advanced Member |
|
|
 |
Dumas Enchanter
Joined: 11 Feb 2003 Posts: 511 Location: USA
|
Posted: Sun Apr 27, 2003 6:13 pm |
One thing to think on, gauges can only be placed on the sides of the window, so if you were thinking about free-floating gauges, that won't work. Something like that is better done with the status window.
If you don't mind just using the side of the screen, then what you will have to do with your new gauge is change the position and size. There is a tab for each button that says exactly that. It lets you change the size, the position of the button on the button bar, and what side of the screen you would like it on. If you want it on the right side of the screen, that is fine. just click RIGHT underneath location and it will move there. One caution, gauges on the sides of the window are at full at the top and empty at the bottom, so plan your sizes and positions accordingly. |
|
|
 |
racolon Beginner
Joined: 27 Apr 2003 Posts: 25 Location: USA
|
Posted: Mon Apr 28, 2003 6:13 pm |
Thanks:
Got it to work, but sadly I cant make it to show the amount of HPs I currently have. My #ST does but not the gauge. If I figure out how to do it goodie but if you guys know a way let me know.
And thanks for the help now I got 2 nifty nice gauges ;)
Endora |
|
|
 |
TonDiening GURU

Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Mon Apr 28, 2003 7:07 pm |
quote:
but sadly I cant make it to show the amount of HPs I currently have
Put the variable of your current HPs into the gauge button name? "MY HP Guage shows I have @Hp HP"
Ton Diening |
|
|
 |
racolon Beginner
Joined: 27 Apr 2003 Posts: 25 Location: USA
|
Posted: Mon Apr 28, 2003 8:42 pm |
Oh yeah!
thanks!
Endora |
|
|
 |
|
|