Users browsing this thread: 2 Guest(s)
Gaining a greater health from Potions?

#11
Posts: 149
Threads: 21
Thanks Received: 40
Thanks Given: 3
Joined: Dec 2013
Reputation: 9
Status
Auto-life
For items, the value of healing is based on the “max out” flag with the “affects HP” or “affects MP” flags.

If the “max out” flag is set, the value will be a fraction of max HP or max MP defined by the item power. The formula is X/16, where X is between 1 and 16. The value of 16 is 16/16 or 100%, the value of 8 is 8/16 or 50%, the value of 4 is 4/16 or 25%, etc.

If “max out” flag isn't set, it will use the value defined by the item power. Unfortunately, it is only one byte and can't store values beyond 255. If you want fixed values beyond 255 which aren't related to max HP or max MP, you will need to change the code, assembly style.
  Find
Quote  



Messages In This Thread
RE: Gaining a greater health from Potions? - by HatZen08 - 06-02-2014, 06:24 AM

Forum Jump:

Users browsing this thread: 2 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite