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
noobuser
Newbie


Joined: 20 Aug 2004
Posts: 3

PostPosted: Sat Aug 21, 2004 12:03 am   

Status Bar
 
ok i am really lost here i want to set up a status bar showing my hp gps and xp, on a mud called new moon. Regular commands that are used are score brief

Hp: 5740(5740) Tactics: 591(591) Xp: 2,430,439

score
You have :-
5740 hit points (5740 maximum),
591 tactics (591 maximum), and
600 social points (600 maximum).


You have 2,430,439 experience points.
You are a member of the League of Warriors (level 623).
You have died fifty-five times, and can die four more times before you are completely dead.
You are 58 days, 2 hours, 23 minutes and 13 seconds old.
You will not run away from fights.
You are ambidextrous, unburdened and goodness incarnate.
Your quests have made you famous.

if anyone can help me it ll be really appreciated
Reply with quote
fred@kuzel.ca
Beginner


Joined: 25 Nov 2003
Posts: 15
Location: United Kingdom

PostPosted: Sat Aug 21, 2004 1:13 am   
 
this should just about do it:

Code:
#CLASS {Character}
#VAR myHP {5740} {0}
#VAR myMaxHP {5740} {0}
#VAR myTP {591} {0}
#VAR myMaxTP {591} {0}
#VAR mySP {600} {0}
#VAR myMaxSP {600} {0}
#VAR myXP {2430439} {0}
#VAR myLVL {623} {0}
#TRIGGER {Hp: &%d{myHP}~(&%d{myMaxHP}~) Tactics: &%d{myTP}~(&%d{myMaxTP}~) Xp: &myXP} {myXP = %subchar( @myXP, ",", "")}
#TRIGGER {&%d{myHP} hit points ~(&%d{myMaxHP} maximum~),} {}
#TRIGGER {&%d{myTP} tactics ~(&%d{myMaxTP} maximum~), and} {}
#TRIGGER {&%d{mySP} social points ~(&%d{myMaxSP} maximum~).} {}
#TRIGGER {You have &myXP experience points.} {myXP = %subchar( @myXP, ",", "")}
#TRIGGER {You are a member of the League of Warriors ~(level &%d{myLVL}~).} {}
#BUTTON 1 {TP: @myTP / @myMaxTP} {} {} {} {@myTP} {} {BOLT} {Size} {100} {15} {Pos} {1} {130} {32800} {} {Gauge||12|@myMaxTP|@myMaxTP/2|7} {} "" {Explore|Inset} {} {gaugeTP} {2}
#BUTTON 2 {HP: @myHP / @myMaxHP} {} {} {} {@myHP} {} {HEART} {Size} {125} {15} {Pos} {1} {1} {32800} {} {Gauge||12|@myMaxHP|@myMaxHP/2|7} {} "" {Explore|Inset} {} {gaugeHP} {2}
#BUTTON 3 {SP: @mySP / @myMaxSP} {} {} {} {@mySP} {} {TALK} {Size} {100} {15} {Pos} {1} {233} {32800} {} {Gauge||12|@myMaxSP|@myMaxSP/2|7} {} "" {Explore|Inset} {} {gaugeSP} {2}
#STAT {<@myHP/@myMaxHp> <@mySP/@myMaxSP>}
#CLASS 0


If you are expanding variables at the command line you will have to either turn it off or save this to a text file and import it. expanding variables at the command line will cause the gauges to be set at static numbers and they won't update.

This will get you a status bar, some stats, and some gauges.

Enjoy.

Uziel
Reply with quote
noobuser
Newbie


Joined: 20 Aug 2004
Posts: 3

PostPosted: Sun Aug 22, 2004 11:03 pm   
 
Ah thanks alot the status bar on the bottom shows my hps dropping etc but on my gauges it shows the gauges decreasing and everything but the numbers remain the same is it suppose to be like that or can you make them change also, also power ups in the game allow you to change amounth of gps and hps the ones on the status bar also change to this but it doesnt on the gauges
Reply with quote
fred@kuzel.ca
Beginner


Joined: 25 Nov 2003
Posts: 15
Location: United Kingdom

PostPosted: Mon Aug 23, 2004 6:35 am   
 
Quote:
expanding variables at the command line will cause the gauges to be set at static numbers and they won't update.


There is a good chance the above is occuring.

To be safe:

Open notepage (START-->Program Files-->Accessories-->NotePad)

Copy the code below into notpad and then close notepad and save the file on the desktop as character.txt.

Open Zmud (unless you already have it open...)

Click on classes so you have your settings screen.

Delete the character class to be safe.

click (FILE-->Import Text)

go to your desktop and find character.txt.

click OK.

That should import the Character class without causing problems that can occur on the command line.

If you have more problems let me know, I will then fix it for your command line, in the meantime you might as well learn how to use text import.

Cheers,

Uziel


Code:
#CLASS {Character}
#VAR myHP {5740} {0}
#VAR myMaxHP {5740} {0}
#VAR myTP {591} {0}
#VAR myMaxTP {591} {0}
#VAR mySP {600} {0}
#VAR myMaxSP {600} {0}
#VAR myXP {2430439} {0}
#VAR myLVL {623} {0}
#TRIGGER {Hp: &%d{myHP}~(&%d{myMaxHP}~) Tactics: &%d{myTP}~(&%d{myMaxTP}~) Xp: &myXP} {myXP = %subchar( @myXP, ",", "")}
#TRIGGER {&%d{myHP} hit points ~(&%d{myMaxHP} maximum~),} {}
#TRIGGER {&%d{myTP} tactics ~(&%d{myMaxTP} maximum~), and} {}
#TRIGGER {&%d{mySP} social points ~(&%d{myMaxSP} maximum~).} {}
#TRIGGER {You have &myXP experience points.} {myXP = %subchar( @myXP, ",", "")}
#TRIGGER {You are a member of the League of Warriors ~(level &%d{myLVL}~).} {}
#BUTTON 1 {TP: @myTP / @myMaxTP} {} {} {} {@myTP} {} {BOLT} {Size} {100} {15} {Pos} {1} {130} {32800} {} {Gauge||12|@myMaxTP|@myMaxTP/2|7} {} "" {Explore|Inset} {} {gaugeTP} {2}
#BUTTON 2 {HP: @myHP / @myMaxHP} {} {} {} {@myHP} {} {HEART} {Size} {125} {15} {Pos} {1} {1} {32800} {} {Gauge||12|@myMaxHP|@myMaxHP/2|7} {} "" {Explore|Inset} {} {gaugeHP} {2}
#BUTTON 3 {SP: @mySP / @myMaxSP} {} {} {} {@mySP} {} {TALK} {Size} {100} {15} {Pos} {1} {233} {32800} {} {Gauge||12|@myMaxSP|@myMaxSP/2|7} {} "" {Explore|Inset} {} {gaugeSP} {2}
#STAT {<@myHP/@myMaxHp> <@myTP/@myMaxTP> <@mySP/@myMaxSP> XP: @myXP}
#CLASS 0
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