Equipping/Unequipping an item that changes MaxHP should also change HP.

● ARCHIVED · READ-ONLY
Started by Intezil 1 posts View original ↗
  1. Currently, if you equip an item that changes a character's maximum hit points (or magic points), it doesn't also change the current HP (or MP). This is both mechanically and thematically weird, as equipping armor that boosts your vitality shouldn't then require you to be healed. And it should be easy to fix in javascript, but my javascripting is very, very weak.

    Basically, I just want a script that when MaxHP or MaxMP increases or decreases by X, HP or MP (respectively) should also increase or decrease by X. Oh! Also check to keep it from going below 1, so a character won't die from taking their armor off.