Crevasse
惡名昭彰
~*~*SOLVED*~*~
I encountered an interesting problem when changing a player's max HP with equipment. I set Knight armor and Knight legs to increase the wearer's max HP by 20% (each) by adding the maxhitpointspercent attribute and then changing movements.xml. This works just fine, the issue comes when the player wearing the equipment relogs (or dies). Example:
My test character's base max HP is 100. I put on knight armor and knight legs, the max HP is now 140. I heal up with exura to get full HP. Then, I relog. When I log back in, the max HP is 140 (the bonus is still there) which is fine, but I'm not at full HP anymore, I'm at 120.
Something is wrong with storage somewhere and it isn't "saving" that the player has healed up to their new max HP. Wearing just one of the two (only K-legs or K-armor) doesn't have a problem. It's when I wear more than 1 item that modifies max HP that the problem arises.
Any help is greatly appreciated.
I encountered an interesting problem when changing a player's max HP with equipment. I set Knight armor and Knight legs to increase the wearer's max HP by 20% (each) by adding the maxhitpointspercent attribute and then changing movements.xml. This works just fine, the issue comes when the player wearing the equipment relogs (or dies). Example:
My test character's base max HP is 100. I put on knight armor and knight legs, the max HP is now 140. I heal up with exura to get full HP. Then, I relog. When I log back in, the max HP is 140 (the bonus is still there) which is fine, but I'm not at full HP anymore, I'm at 120.
Something is wrong with storage somewhere and it isn't "saving" that the player has healed up to their new max HP. Wearing just one of the two (only K-legs or K-armor) doesn't have a problem. It's when I wear more than 1 item that modifies max HP that the problem arises.
Any help is greatly appreciated.
Last edited: