|
godhandunuki Beginner
Joined: 28 Jan 2003 Posts: 10 Location: USA
|
Posted: Tue Jan 28, 2003 6:47 am
gauges |
I will keep this short and simple i am trying to set a gauge my prompt looks like this <80hp 211m 145mv 4042> (4042 is my exp tnl) i followed the tutorial and someone on a mud even tried showing me but it does not seem to work. i went to view/preferences/general/ in the box where it says "text that mud prompt starts with" i put < then where it said "variables to load with prompt i put it like this
hp
ma
mv
xp
then i was told to type #var on the mud and it was supposed to read my prompt or somthing if someone has a better way to make a gauge please let me know *side note (heh i guess this wasen't so short) |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Jan 28, 2003 8:01 am |
This should put the values from your prompt into the appropriate variables. You can check that it's working by entering the following at the command line:
#SHOW {Hitpoints = @hp, Mana = @ma, Moves = @mv, Experience = @xp}
You'll still need to create the gauges themselves. The easiest way (in my opinion) is to click the Buttons button, which will open the Editor.
Sample Hitpoint Gauge
- Press the New button.
- Fill in a name in the Caption field (HP).
- Pull down the list for Kind, and click Gauge.
- Go to the Gauge tab. (last one on the right)
- Fill in Value with one of your variables (@hp)
- Fill in Gauge Max. This can be another variable (@maxhp) or just a number (whatever your current max hp's is)
- Fill in Gauge Low. This is the value where the gauge will change colors, it can be a number, a variable, or a formula. I usually use 1/4 of max (@maxhp/4)
- Select your colors (I like Blue, Red, and Grey, usually)
- Go to the Position/Size tab
- If desired, you can change the Size by unclicking "Autosize", then trying different sizes until you find something you like. (width=100, height=15)
- It's probably best to leave the location on Automatic for now
- Click the Save button
You can make additional gauges for Mana, Moves, and anything else by repeating the same steps (just using different names and variables). Note that you'll need to create the variable @maxhp before you can use it.
LightBulb
Senior Member |
|
|
|
godhandunuki Beginner
Joined: 28 Jan 2003 Posts: 10 Location: USA
|
Posted: Tue Jan 28, 2003 4:12 pm |
thanks for the help took me about 5 mins to get it set up ^ ^
|
|
|
|
godhandunuki Beginner
Joined: 28 Jan 2003 Posts: 10 Location: USA
|
Posted: Tue Jan 28, 2003 4:22 pm |
hmm i seem to have run into a lil snag the hp bar will go down but when i get healed it won't go back up..sorry to be a pain it just the helpfiles well aren't really helpful
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Jan 28, 2003 7:38 pm |
It should go back up the next time you receive a prompt (since that's where you get @hp). I've never had a problem with mine.
LightBulb
Senior Member |
|
|
|
|
|