 |
Malleus Novice
Joined: 05 Jan 2003 Posts: 45 Location: USA
|
Posted: 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 / |
|
|
|
 |
Malleus Novice
Joined: 05 Jan 2003 Posts: 45 Location: USA
|
Posted: Sat Mar 08, 2003 3:47 am |
sorry for no topic heh...
/ Malleus / |
|
|
|
 |
TonDiening GURU

Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
 |
Malleus Novice
Joined: 05 Jan 2003 Posts: 45 Location: USA
|
Posted: Sat Mar 08, 2003 6:58 am |
awesome thanks alot :)
/ Malleus / |
|
|
|
 |
|
|
|