RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Percentage Formula

0 Members and 1 Guest are viewing this topic.

****
Rep:
Level 87
In my own little world...
Ever wanted to draw a percentage of your health/Magic, but didn't know how?
Fear not! Good 'ol Arkbennett has got your back.

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

Code: [Select]
<>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 to variables, one that records the players current HP/MP and his Max HP/MP. Multiple his current HP/MP by 100, then divide it by his max. Simple equations. 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.
« Last Edit: August 20, 2007, 01:17:47 AM by Arkbennett »