[{"data":1,"prerenderedAt":6},["ShallowReactive",2],{"extra:mechanics:setMaxHealth":3},{"html":4,"title":-1,"frontmatter":5},"\u003Ch2>Examples\u003C\u002Fh2>\n\u003Cp>This example would simply set the new max health of the entity to 5. If\nthe new max health is lower than the entity’s current health, the\ncurrent health will be set to the new max health.\u003C\u002Fp>\n\u003Cpre class=\"language-yaml\">\u003Ccode class=\"language-yaml\">\u003Cspan class=\"yaml-key\">  Skills\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Ca class=\"mythic-ref\" data-mythic-ref=\"m:setmaxhealth\">setmaxhealth\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">amount\u003C\u002Fspan>=\u003Cspan class=\"yaml-number\">5\u003C\u002Fspan>;\u003Cspan class=\"yaml-plain\">mode\u003C\u002Fspan>=\u003Cspan class=\"yaml-plain\">STATIC\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> @\u003Ca class=\"mythic-ref\" data-mythic-ref=\"t:self\">self\u003C\u002Fa> ~\u003Ca class=\"mythic-ref\" data-mythic-ref=\"tr:onInteract\">onInteract\u003C\u002Fa>\n  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Cspan class=\"yaml-plain\">...\u003C\u002Fspan>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>This example would increase the new max health of the mob to 5 and scale\nit’s remaining HP up as well. If the entity has 15\u002F20 health and is then\ninteracted with, instead of the new health being 5\u002F5 it would become\n3\u002F5.\u003C\u002Fp>\n\u003Cpre class=\"language-yaml\">\u003Ccode class=\"language-yaml\">\u003Cspan class=\"yaml-key\">  Skills\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Ca class=\"mythic-ref\" data-mythic-ref=\"m:setmaxhealth\">setmaxhealth\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">amount\u003C\u002Fspan>=\u003Cspan class=\"yaml-number\">5\u003C\u002Fspan>;\u003Cspan class=\"yaml-plain\">mode\u003C\u002Fspan>=\u003Cspan class=\"yaml-plain\">SCALE\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> @\u003Ca class=\"mythic-ref\" data-mythic-ref=\"t:self\">self\u003C\u002Fa> ~\u003Ca class=\"mythic-ref\" data-mythic-ref=\"tr:onInteract\">onInteract\u003C\u002Fa>\n  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Cspan class=\"yaml-plain\">...\u003C\u002Fspan>\n\u003C\u002Fcode>\u003C\u002Fpre>\n",{},1779402753465]