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

#31
Posts: 32
Threads: 4
Thanks Received: 0
Thanks Given: 0
Joined: Mar 2012
Reputation: 0
Status
None
(01-09-2016, 10:18 PM)funkydiscogod Wrote: Ok...I suck.  So, I have another possibly wrong solution for y'all.  I hope to not screw up anything else.  It seems the correct answer includes "all of the above" solutions.  And, rather than try to change as little as possible, I just went for a small rewrite of the section governing potions and
I've encountered a tiny problem with the code you created. I wanted my Potions and Ethers to heal 10 x the value given to them outside of battle, changing the LDA 80 and LDA 02 in both the HP and MP formulas to A0 and 00, respectively, causing the game to read max HP as 160, thus healing 10 HP for each 1/16 value entered. This works just fine, as long as you enter a value under 127, healing up to 1270 HP. Anything over 127, however, causes problems. I used the code on my X-Potions, with intention of them healing 2,500 HP, but when used outside of battle, they take *away* 30 HP. 

This is a bit of a problem for my plans, as a 10 x multiplier is the most nuanced possible factor for what I intend, since I wanted Tinctures to heal 30 MP.

The easiest way around this may actually be to edit HatZen08's code. While your code multiplies HP and MP on a separate basis, HatZen's code uses a single multiplier for both. If it could be reworked in such a way that HP and MP restorations get their own individual multipliers, it would perhaps be ideal. After all, since HP typically is already one digit greater than MP, it would make sense for them to have different multipliers, in my opinion. But I'm not sure I can figure it out on my own.

...well, the answer to my dilemma was staring me in the face. I simply took the effect attributed to Dried Meat (which in fact is nothing), re-routed its pointer to an empty area in the code, and repeated HatZen's code there, with the necessary adjustments. Now I have my 30 healing Tinctures (Ethers), 500 healing (Hi)Potions and my 2500 healing X-Potions.
  Find
Quote  



Messages In This Thread
RE: Gaining a greater health from Potions? - by Marketa Lazarova - 07-07-2016, 09:52 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite