I was wondering if there was a way to increase a unit's kill bounty when they enter the proximity of a specific unit. I thought the best way would be to make an aura, which I know how to do and put it onto a unit, but I haven't found a way to change the kill bounty of a unit under the effect of an aura. I've tried looking under the "modify" bit of the buff behavior but I didn't find anything.
By bounty I'm assuming a resource (mineral/vespene/etc) award for the player that kills the unit. In that case, what might work is to use your aura and modify the death response of the granted behaviour.
First create an effect of type "modify player". Set the "resources" field to the amount of added resources you want the aura to grant. Set the "player" field to "hostile". Now go back to the behaviour, go to death response, set the chance to 1 and set the effect to the newly created modify player effect.
This MIGHT work, but since I didn't test it myself, the problem will likely be that it won't grant the killing player those extra resources. To fix this try playing around with the "player" field under the effect.
I was wondering if there was a way to increase a unit's kill bounty when they enter the proximity of a specific unit. I thought the best way would be to make an aura, which I know how to do and put it onto a unit, but I haven't found a way to change the kill bounty of a unit under the effect of an aura. I've tried looking under the "modify" bit of the buff behavior but I didn't find anything.
Is there a way I can make this work?
Thanks
@Shurukin: Go
Not sure if you can do this through data but I'd just use the Set Unit Property trigger action, then set that to kills.
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
By bounty I'm assuming a resource (mineral/vespene/etc) award for the player that kills the unit. In that case, what might work is to use your aura and modify the death response of the granted behaviour.
First create an effect of type "modify player". Set the "resources" field to the amount of added resources you want the aura to grant. Set the "player" field to "hostile". Now go back to the behaviour, go to death response, set the chance to 1 and set the effect to the newly created modify player effect.
This MIGHT work, but since I didn't test it myself, the problem will likely be that it won't grant the killing player those extra resources. To fix this try playing around with the "player" field under the effect.
Make aura, appling behaviour on nearby units, then
1. Use "Modify player" on death response with validating this behaviour
-or-
2. Use trigger "set player property" with event unit die and condition "amount of behaviour on triggering unit" <=1