Basically my unit needs to be healed by a fixed amount of life points when last-hits an enemy unit after researching an upgrade. How do I do that with Data?
there is an awnser for this it's called Ike a healing multiplier but you need to search up healing in table view and see you're results once you have a select ability but it work more like if you heal takes 10 seconds and it is taking longer the multiplier will speed it up to 10 seconds. But it's more of a repair time.
I believe the Best Option, if using data, would be to put a behavior on ever unit that can be killed, that when killed uses a validator or group of them to apply a modify unit effect to the killing unit, if that owner of that unit has the upgrade, and that the killing unit is the kind of unit you want to take healing in this way. i can attache basic proof of concept map if you would like to look at one.
As vailreth said, you can have your unit's weapon apply a hidden buff to the unit it is attacking.
Under the Combad: Damage Response^ + field, ensure the Fatal^ flag is checked and the Handled^ effect is set to a Modify Unit effect which heals some of the killing unit's health.
To ensure the killing unit is the one healed, set the (Basic) Target: Impact Unit + field of the Modify Unit effect to Source Unit and the Effect to the Apply Behavior effect which applied the buff to the unit being killed.
while aZergBaneling has a point, i meant how ever, that all of the creeps, providing this is a Moba style map, would have a behavior that when the unit took fatal damage, it fired an effect that checked whether or not the killing unit was in this instance heroic, and that the owner of the killing unit had a specific upgrade, and if these are both true heal the killing unit. i have achieved this is a test map.
In the attached map there are a marauder and a marine, the marine has the heroic attribute. there is also and upgrade dialog. you can use the upgrade dialog to add the required up grade. lastly there are two zerglings near the two player units that can be killed to test the effect of the upgrade or once its active tes the difference between a heroic unit and a standard one.
if there are any questions about what i did in the map to get things working please feel free to ask.
Basically my unit needs to be healed by a fixed amount of life points when last-hits an enemy unit after researching an upgrade. How do I do that with Data?
there is an awnser for this it's called Ike a healing multiplier but you need to search up healing in table view and see you're results once you have a select ability but it work more like if you heal takes 10 seconds and it is taking longer the multiplier will speed it up to 10 seconds. But it's more of a repair time.
I believe the Best Option, if using data, would be to put a behavior on ever unit that can be killed, that when killed uses a validator or group of them to apply a modify unit effect to the killing unit, if that owner of that unit has the upgrade, and that the killing unit is the kind of unit you want to take healing in this way. i can attache basic proof of concept map if you would like to look at one.
Yes I'd appreciate a concept map since I can't figure out how to retrieve the killing unit.
As vailreth said, you can have your unit's weapon apply a hidden buff to the unit it is attacking.
Under the Combad: Damage Response^ + field, ensure the Fatal^ flag is checked and the Handled^ effect is set to a Modify Unit effect which heals some of the killing unit's health.
To ensure the killing unit is the one healed, set the (Basic) Target: Impact Unit + field of the Modify Unit effect to Source Unit and the Effect to the Apply Behavior effect which applied the buff to the unit being killed.
Custom Campaign Initiative | Mapster Community Project: Data Wizards
Starcraft II: Unsung Rebels, a custom campaign for Starcraft II
SC2Saver, a way to create saved games via trigger
Frustrated with the editor and would like answers in real time? Join the SC2Mapster Discord!
while aZergBaneling has a point, i meant how ever, that all of the creeps, providing this is a Moba style map, would have a behavior that when the unit took fatal damage, it fired an effect that checked whether or not the killing unit was in this instance heroic, and that the owner of the killing unit had a specific upgrade, and if these are both true heal the killing unit. i have achieved this is a test map.
In the attached map there are a marauder and a marine, the marine has the heroic attribute. there is also and upgrade dialog. you can use the upgrade dialog to add the required up grade. lastly there are two zerglings near the two player units that can be killed to test the effect of the upgrade or once its active tes the difference between a heroic unit and a standard one.
if there are any questions about what i did in the map to get things working please feel free to ask.
Thanks a lot!