- Joined
- Aug 8, 2013
- Messages
- 21
- Reaction score
- 17
- Primarily Uses
Why hello there!
Let me explain my situation first:
- I use Yanfly's Base Parameter Control to let my MaxHP and MaxMP be influenced by my other attributes (actors defense stat for example).
- I also use Yanfly's Battle, Status and Equip Core (among others that should not be relevant)
So my problem now is this:
- When I equip a different - let's say - armor that increases my defense (-> and therefor my MaxHP) the character's current HP does not update (which is normal, but not how I want it).
What I want is:
- That my HP increases by the same amount that my MaxHP increases when I equip something.
- - If my actor is at 30/60 HP and equips an item that increases his Defense (and therefore his MaxHP) by 10, I want him to be at 40/70 HP.
- Same for HP and MP o.c.
I am able to adjust some basic JavaScript, I just didn't manage to fix this. (Since I don't directly add or decrease MaxHP, I thought of maybe requesting for a change in MaxHP while equipping and add the same value to HP, I couldn't get the code to work though :/ )
If someone could write me some code so that I can fix this problem, that would be fantastic!
Thanks
Simon
Let me explain my situation first:
- I use Yanfly's Base Parameter Control to let my MaxHP and MaxMP be influenced by my other attributes (actors defense stat for example).
- I also use Yanfly's Battle, Status and Equip Core (among others that should not be relevant)
So my problem now is this:
- When I equip a different - let's say - armor that increases my defense (-> and therefor my MaxHP) the character's current HP does not update (which is normal, but not how I want it).
What I want is:
- That my HP increases by the same amount that my MaxHP increases when I equip something.
- - If my actor is at 30/60 HP and equips an item that increases his Defense (and therefore his MaxHP) by 10, I want him to be at 40/70 HP.
- Same for HP and MP o.c.
I am able to adjust some basic JavaScript, I just didn't manage to fix this. (Since I don't directly add or decrease MaxHP, I thought of maybe requesting for a change in MaxHP while equipping and add the same value to HP, I couldn't get the code to work though :/ )
If someone could write me some code so that I can fix this problem, that would be fantastic!
Thanks
Simon

