Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Difference Between Health and maxHealth

Does anybody know the difference between health and maxhealth because I do not understand what it does?

maxHealth is the maximum HP your hero can have. For example, you’d start with maxHealth as your health number. So if you have 5000 maxHealth, that’s the maximum HP you can heal up to.
health is the number of HP you currently have. Lets say you had 5000 maxHealth, then you’d start with full HP, or 5000 health. An ogre hits your hero for 500 health, so you’d have 4500 health, but still have 5000 maxHealth.

Oh okay that makes since thanks.