I've got this Marine hero who can call down squad members one at a time through an ability called "Call Reinforcements". I'd like to keep the squad limited to the Hero + 3 normal Marines, so I made set the number of charges on the ability to 3, using 1 charge per use.
What I need to do now is grant the Hero a charge on the ability whenever one of the Marines in the squad dies.
I've been trying to make this work by giving the squad marines a behavior buff called "Alive" with an Effect - Effect - Final of and Effect "Marine Death (Add Charge). The effect uses Cost - Cost + modifying "Reinforcements" (the hero ability) "Usage Charge Count" to -1 (giving the ability another charge).
However, the whole thing's not working correctly. I suspect that the Effect is not targeting the Hero correctly, but I have no idea how to do that, since the "caster" is technically the dying Marine, and there is no apparent target. Does anyone have any ideas on how to solve this?
Having some difficulty with this ability.
I've got this Marine hero who can call down squad members one at a time through an ability called "Call Reinforcements". I'd like to keep the squad limited to the Hero + 3 normal Marines, so I made set the number of charges on the ability to 3, using 1 charge per use.
What I need to do now is grant the Hero a charge on the ability whenever one of the Marines in the squad dies.
I've been trying to make this work by giving the squad marines a behavior buff called "Alive" with an Effect - Effect - Final of and Effect "Marine Death (Add Charge). The effect uses Cost - Cost + modifying "Reinforcements" (the hero ability) "Usage Charge Count" to -1 (giving the ability another charge).
However, the whole thing's not working correctly. I suspect that the Effect is not targeting the Hero correctly, but I have no idea how to do that, since the "caster" is technically the dying Marine, and there is no apparent target. Does anyone have any ideas on how to solve this?
I ended up working around this problem by making ability requirement limits similar to the requirements on building a Mothership.
However, I still think this is a pretty interesting problem and would welcome the solution if anyone has any ideas.
As far as I followed tohse kind of topics, detecting kills is impossible using data, as well as adding ability charges (I am not 100% sure, though)
However, both can easily be achieved using triggers, so i would just use them.