whenever a unit dies, all other units that player control will gain increased stats permanently.
For example, 3 minutes into the game, 12 units have died for player A. This means that all other units player A controls would get for example +12 armor. 5 minutes into the game, 24 units have died. Now player A units gain +24 armor.
Any ideas how to build this?
The only way I can think of is that whenever a unit dies, it spawns an invisible dummy unit on the battlefield with a search effect that adds a buff to all other units. But I think that will lag because there will be a lot of units that die. Is there any other way?
I suppose I would give every unit a behavior buff (add it to them in data). I would then use triggers with a unit dies event. I would use the catalog actions to modify the behavior.
I assume this is to also affect newly created units. Best to give units a Buff behaviour with a death response that uses a Modify Player effect to add a stack of an upgrade.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hello,
whenever a unit dies, all other units that player control will gain increased stats permanently.
For example, 3 minutes into the game, 12 units have died for player A. This means that all other units player A controls would get for example +12 armor. 5 minutes into the game, 24 units have died. Now player A units gain +24 armor.
Any ideas how to build this?
The only way I can think of is that whenever a unit dies, it spawns an invisible dummy unit on the battlefield with a search effect that adds a buff to all other units. But I think that will lag because there will be a lot of units that die. Is there any other way?
I suppose I would give every unit a behavior buff (add it to them in data). I would then use triggers with a unit dies event. I would use the catalog actions to modify the behavior.
I assume this is to also affect newly created units. Best to give units a Buff behaviour with a death response that uses a Modify Player effect to add a stack of an upgrade.
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
Thank you! I found a solution based on the Modify Player effect