I have my exp stat's base setting to use a max value of 100 and then restart from minimum on each level up (like paper mario). Then I made a test event interaction to add exp to the player. He levels up fine, but not all the exp gets added if the player is just about to level up.

for example:
- The player is level 1 and his exp is at 98.
- I add 14 exp in my test event.
- The player is now level 2 and his exp should be at 12, but it's at 0.

Am I doing something wrong? Any help is greatly appreciated!
  • I think the issue is the max value of 100, that should actually be handled by the status development.

    Since your stat's max value is 100, it'll be capped at that and can't go over it. Having it at a larger value (e.g. maximum int value of 2147483647) it can get over 100, and the capping/resetting is handled by the status development (e.g. curve or just a flat out value of 100).
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Yep, that totally fixed it! Thanks GIL!
Sign In or Register to comment.