• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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 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