Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Sign in to follow this  
Arkbennett

Percentage Formula

Recommended Posts

Ever want to draw up a percentage for your health, magic, or other? I got your back.

 

To draw up the percentage simply do a formula like this.

 

<>Variable: [0001: Player HP Current] = [Player#]HP
<>Variable: [0002: Player HP Max] = [Player#]Max HP
<>Variable: [0001: Player HP Current] *= 100
<>Variable: [0001: Player HP Current] /= Variable [0002: Player HP Max]

 

# = Actor that you want to covert HP/MP to percentages.

 

Simple eh? Basically you need two variables, one that records the players current HP/MP and his Max HP/MP. Multiply his current HP/MP by 100, then divide it by his max. Simple equation. But, I do remember being a young kiddo at the age of 11/12 and not knowing how to do this at all. So this goes out to the young ones, newbs, or people that didn't pay attention in math.

Btw, variable 1 will display your percentage.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...