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
Malleus
Novice


Joined: 05 Jan 2003
Posts: 45
Location: USA

PostPosted: Sat Mar 08, 2003 3:46 am   

Malleus
 
How would I go about displaying how much damage was done to me last round? and then display that number directly underneath my hpbar?

MUD OUTPUT:
Giant tickled you in the stomach.
> HP: 568/590 SP: 162/182 W: 132/345(24) L: 94% P: 1/89% A: 28 T: extreme G: 93

You score a good hit, effectively poisoning Giant.
You recite: Only I will remain.
Giant grazed you.
> HP: 571/590 SP: 159/182 W: 128/345(28) L: 94% P: 1/90% A: 27 T: goner G: 55

You score a direct hit, deeply poisoning Giant.
You recite: I must not fear.



-the hpbar is all one line, if it wordwraps on here.

anyone that can help has my appreciation :)

/ Malleus /
Reply with quote
Malleus
Novice


Joined: 05 Jan 2003
Posts: 45
Location: USA

PostPosted: Sat Mar 08, 2003 3:47 am   
 
sorry for no topic heh...

/ Malleus /
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat Mar 08, 2003 5:54 am   
 
#VAR HpLast 590
#VAR HpNow 590
#VAR HpChange 0
#TRIGGER {^~> HP~:%s(%d)} {#VAR HpLast @HpNow;#VAR HpNow %1;#MATH HpChange {@HpLast-@HpNow}}

So if you went from 500 to 400 then @HpChange is -100
So if you went from 400 to 500 then @HpChange is 100

Show @HpChange where you desire. You can #ECHO it or include it in your status bar etc.

Ton Diening
Reply with quote
Malleus
Novice


Joined: 05 Jan 2003
Posts: 45
Location: USA

PostPosted: Sat Mar 08, 2003 6:58 am   
 
awesome thanks alot :)

/ Malleus /
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