• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

triger of stuckin

Status
Not open for further replies.
Level 33
Joined
Mar 27, 2008
Messages
8,035
1. Pick every unit that will become invulnerable and add them to a Unit Group variable
2. Add invulnerable ability to the picked unit
3. Make a check, if a unit acquires that item-type, pick every unit in the UnitGroup variable and remove the invulnerable

Since you don't give us the domain of your map (how the event start, how many units are there initially, etc), I just give you the solution to the problem.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Since everyone is invulnerable, I think there is no need to add 'Abun' to the picked units ?
Unless there are some other units around it that doesn't get affected by these triggers.

That is why it's hard when OP gives us a little of information in the situation.
 
Level 6
Joined
Sep 13, 2013
Messages
155
Make the guardians invulnerable, and make them sleep, you can use dreadlord's curse. Then create a trigger with event of a unit acquired the item then remove their sleep by a invulnerable targeting Purge or disenchant, dispel magic etc. Also an action which makes them vulnerable. For all of these spells you need a dummy unit.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Or... you can just Pause that unit (guardian).

1. At the map start, add all these guardians in a Unit Group variable
2. Add invulnerable state to the picked unit AND pause them
3. Upon acquiring item, pick all unit in the Unit Group variable and remove the invulnerability along AND unpause them.
 
Status
Not open for further replies.
Top