| 02-03-2004, 03:46 PM | #1 |
I have a question how i shud make this trigger: When a unit kills somwhone with X buff, he aquires that buff and the other unit loses the buff. Well, i know the event, (unit-a unit dies) but the rest is blurry. Could somwhone help me out here? |
| 02-03-2004, 04:58 PM | #2 |
Vig0r, The problem is, that there is no way to add a buff to unit unless by creating f.ex. a invisible unit and make him cast the spell (that causes the buff) on the unit. And that can be tough as you would then need to store side-by-side which spell creates which buff. If you manage to do that, then at a units death, you just check which buff he had, and then create a dummy invisible unit near the killing unit, Add the ability (that creates the correct buff) to the new unit, and order him to cast it on the killing unit. That's your only way i guess. Cubasis |
| 02-03-2004, 05:14 PM | #3 |
how about having an invisible unit with the buff, and when the mother units dies, cange ownership of the invisible unit to the killing unit? make the buff that only affects friendly units? would that work? ow, and make the invisible unit have no collision size, and make another trigger to move the invis unit to the mother unit all the time there |
| 02-03-2004, 05:31 PM | #4 |
Well, the thing is that that buff is connected to triggers for neutral camps: if u own the buff, u own the camps. (so the duration is 0...) |
| 02-03-2004, 05:32 PM | #5 |
i think you guys oughtta know what context this trigger will be in.. click link in sig for more info :D |
