So, I made a unit which I want to deal 1 bonus damage for each other of the same unit near it when it attacks. The best way I could think to do this (I could be wrong) was by triggering it. I made the trigger below, originally with an instant damage effect on the attack, and I believe it worked (I'm not 100% because I didn't look closely as I was focused on the attack not being how I had wanted it). I have since changed the attack to a missile attack and now the trigger is definitely not working.
I assume the problem originates from the "damaging unit" being the missile rather than the unit launching the missile, although I don't know that for sure, and if that is the case I have no idea how to fix it. All the data fields are correct (I didn't accidentally use the other Drone or anything like that). So can anyone possibly tell me what the problem is? Or an alternate solution? Thank you.
Drone Damage
Events
Unit - Any Unit takes Fatal or Non-Fatal Any damage (from Any effects)
Conditions
(Damaging effect) == Drone Beam Damage
Actions
Environment - Deal damage using Drone Beam Damage Dummy on (Triggering unit) from (Damaging unit) with (Number of Living units in (Drone units within 4.0 of (Position of (Damaging unit)) where player (Damaging player) matches filter Excluded: Missile, Dead, Hidden, with at most Any Amount)) extra damage
I trigger almost anything but even I would choose data for this one.
Create a permanent behavior of type buff for your unit, which has as periodic effect a search area effect (be sure to exclude the caster and validate that the unit type is correct here). The search effect applies a apply behavior effect which applies a second behavior of type buff which modifies the unit damage +1. Make sure that this behavior is stackable.
i want to suggest a data solution. use search effect - trigger effect - damage 1-x. the trigger effect has x validators validating the number of units around with the corresponding damage trigger.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So, I made a unit which I want to deal 1 bonus damage for each other of the same unit near it when it attacks. The best way I could think to do this (I could be wrong) was by triggering it. I made the trigger below, originally with an instant damage effect on the attack, and I believe it worked (I'm not 100% because I didn't look closely as I was focused on the attack not being how I had wanted it). I have since changed the attack to a missile attack and now the trigger is definitely not working.
I assume the problem originates from the "damaging unit" being the missile rather than the unit launching the missile, although I don't know that for sure, and if that is the case I have no idea how to fix it. All the data fields are correct (I didn't accidentally use the other Drone or anything like that). So can anyone possibly tell me what the problem is? Or an alternate solution? Thank you.
I trigger almost anything but even I would choose data for this one.
Create a permanent behavior of type buff for your unit, which has as periodic effect a search area effect (be sure to exclude the caster and validate that the unit type is correct here). The search effect applies a apply behavior effect which applies a second behavior of type buff which modifies the unit damage +1. Make sure that this behavior is stackable.
@Elmaex: Go
That sounds perfect. I'm away from my computer so I can't try it out right now, but I imagine it will work, thank you.
I guess triggering things like this is still just a habit left over from the wc3 editor.
Also be sure to give the modification buff a limited duration (e.g. 0.25 s) and limit it's "per caster stack count" to 1.
Yeah, I think that's why I'm triggering so much. You always avoid getting into data if you know how you would do it with triggers.
@Elmaex: Go
i want to suggest a data solution. use search effect - trigger effect - damage 1-x. the trigger effect has x validators validating the number of units around with the corresponding damage trigger.