Removing maximum health currently seems to retain the current health the unit had. I want it to retain the percent of health it had instead, how can I do this?
Also, is there a way to detect the health of a caster unit and give that percent of health to a created unit?
There is the Unit Compare Vital validator which can detect fractions of vitals. Maybe have a Modify Unit effect that heals the unit to max before instantly applying a damage effect that does a percent of the vital. This method would create an approximation of the hp change but you might need triggers for a more precise change. Otherwise I cannot think of anything specific.
Removing maximum health currently seems to retain the current health the unit had. I want it to retain the percent of health it had instead, how can I do this?
Also, is there a way to detect the health of a caster unit and give that percent of health to a created unit?
There is the Unit Compare Vital validator which can detect fractions of vitals. Maybe have a Modify Unit effect that heals the unit to max before instantly applying a damage effect that does a percent of the vital. This method would create an approximation of the hp change but you might need triggers for a more precise change. Otherwise I cannot think of anything specific.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg