Quote: --- Original message by: TCGreflexhammer
I'm currently trying to have something set up in single player were if an event happens the players maximum health will be halfed (or just reduced).
(if (= hollow true) (unit_set_maximum_vitality Player0 .5 1))
I thought this might work but it seems the player doesn't count as a unit? also how do I modify the players shield regen
player0 is defined elsewhere; where did you define it?
define it like this
(global unit player0 (unit (list_get (players) 0)))
Also, unit_set_maximum_vitality doesn't work with percentages, it works with the exact values from the collision (A unmodified cyborg tag would be 75 body, and 75 shield)