As the title says, I'm to make a buff that once placed on a unit, will cause it's attacks to infest it's targets causing a brooding to burst out if/when they die.
As far as I know there's no default sc2 ability similar to this, so kind of have little idea how to do this?
two versions of the weapon of the unit you want to be able to buff with this ability, one with the infesting effect, one without. The unit would be initially equipped with the non-infesting weapon. The "infesting weapon" buff would disable the original weapon (under the Modification+ -> Weapon tab) and add the infesting weapon to the unit instead. The infesting weapon would apply a buff to the target with a Death Response effect (under Modification+ -> Combat), which would spawn the broodlings.
I don't see where in a buff behavior you can add an effect to attacks in general. The only combat-related effects fields I can find are damage- and death- response effects. Where is this?
Don't know why I didn't think of that, which is much cleaner than my solution. Still though, to be able to put the buff on an arbitrary unit, without adding the infestation effect to every unit, I think triggers are the way to go.
I thought of adding the Zerg - building spawn broodling behavior onto unit's attacked, but then how can I make those broodlings belong to the attacker?
Hi,
As the title says, I'm to make a buff that once placed on a unit, will cause it's attacks to infest it's targets causing a brooding to burst out if/when they die.
As far as I know there's no default sc2 ability similar to this, so kind of have little idea how to do this?
Any help or tips would be great thanks.
@Fullachain: Go
My approach:
two versions of the weapon of the unit you want to be able to buff with this ability, one with the infesting effect, one without. The unit would be initially equipped with the non-infesting weapon. The "infesting weapon" buff would disable the original weapon (under the Modification+ -> Weapon tab) and add the infesting weapon to the unit instead. The infesting weapon would apply a buff to the target with a Death Response effect (under Modification+ -> Combat), which would spawn the broodlings.
Hey thanks, problem is I want the buff castable on any unit, that way would be pretty long :p
http://forums.sc2mapster.com/resources/project-workplace/3281-contest-unit-spells/?post=87
just bind the infest the search is doing directly to your weapon
@Fullachain: Go
In that case, I'd probably go to a trigger. Unit Starts Attacking, with a Unit Has Behavior condition.
@WildPickles: Go
You could just make it so that a behavior does an effect(create behavior) when the unit with the behavior attacks stuff.
@SouLCarveRR: Go
I don't see where in a buff behavior you can add an effect to attacks in general. The only combat-related effects fields I can find are damage- and death- response effects. Where is this?
hm the unit may have the ability all the time but it has a isInfested validator
@WildPickles: Go
Its in there.
The behavior will "do" an effect to the defend/attacker , depending on how you set it up.
I made a "bash/mellee stun" abiltiy that uses it this way.
The behavior has a 20% chance to do an effect that creates a "stunned" behavior on the unit it is attacking.
@b0ne123: Go
Don't know why I didn't think of that, which is much cleaner than my solution. Still though, to be able to put the buff on an arbitrary unit, without adding the infestation effect to every unit, I think triggers are the way to go.
I thought of adding the Zerg - building spawn broodling behavior onto unit's attacked, but then how can I make those broodlings belong to the attacker?
@Fullachain: Go
On the Create Unit effect for the broodlings, Unit - Spawn Owner+ is probably set to Player Origin. Changing that to Caster should do it.