Code

Posted by Xavaier on Mon 27 May 2002 12:20 AM — 2 posts, 13,963 views.

USA #0
I am looking to find a snippet or just general reference as to how to create a meter for players so that when they're fighting a mob they will see the mobs hp above their own as so (but with color): (example)
Snake [{R|||||{B|||||{M|||||]{R <100%>{=?
Me [{R|||||{B|||||{M|||||] {C<100%>{=?

How could this be done or could it be done? Thanks guys!
Xavaier
Amended on Mon 27 May 2002 12:21 AM by Xavaier
#1
Its not that hard to do
i had this system before
first you need to get the mobs max hp and its current hp
and store the division of these two variables in a percentage
ie current/max hp
then i just did a bunch of if statements reflecting the various levels

ie at 100%
==========
at 80%
========**
then just drop this section of code in the appropriate section i incorprated it in the prompt section.