Warcraft III resources & community, 2003–2006 · archived

Very difficult trigger problem.

2 posts
#1

Very difficult trigger problem.

Hi guys

I need help with a trigger badly.
I want it so that if a unit aquires a specific item, he gains a few abilities. One is advanced (4x)HP regeneration. The second is not being able to attack. The third is the ability (not item ability, a normal ability) to shoot his item. He selects a target and shoots the item at it/them. This must be a homing missle. If the item, however, encounters another player on its way to the intended target, it is automatically picked up by this new player. :shock:

Any ideas on how this trigger/item/ability/combo thereof will work?

help very much appreciated
Bort
#2
Don't know how you could do the other two, but for the throw ability: for every player make an air unit that always hovers above his head. Make a shockwave-like ability, but targeting only air. The problem would be finding something for this that is homing (or can you make shockwave homing?). The player whose unit is damaged first gets the item. To avoid complications you would have to add a cooldown after aquiring the item.
Two scenarios for clarification:

A player throws the item and hits another players air unit with it. It is damaged. The player gets the item.

A player throws the item and hits another player with it, but afterwards also hits the original target. The player whose unit was damaged first gets the item. Because of the cooldown its not possible that the second hit was from another throw, so the player doesnt get the item.

You'll have to make the details yourself or wait for someone with a better idea, as I don't know much about triggers.