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

How to make all units in region invulnerable?

Status
Not open for further replies.
Level 8
Joined
Jul 9, 2004
Messages
405
I just want them to go invulnerable at the begging like using regions or something they are peasants and stuff in a town and i cant figure out what actions make units in a region invulnerable :/
 
Level 21
Joined
Feb 14, 2004
Messages
3,311
Hows a simple trigger like this:

Create a Region where you can name it for a point where the peasant becomes invulnerable (invulr1) example

Event - A unit enters invulr1
Condition
Action - Unit - make entering unit invulnerable

If you want a specific unit in that region to turn invulnerable, add the condition:

Condition - Unit type comparision - unit type of entering unit equal to <your specific unit>

If you want the unit's specific owner:

Event - a unit owned by player 2 enters invul1
 
Level 13
Joined
May 5, 2004
Messages
1,330
For making any unit in a region invulnerable

Events
Map initialization or Elapsed Game Time 0.01 secs (didn't test if map init works, but it should)
Conditions
Actions
Unit Group - Pick every unit in (Units in [Any Region]) and do (Unit - Make (Picked unit) Invulnerable)

For making specific unit in region invulnerable (e.g. peasants)

btw its units in region matching condition


Events
Map initialization or Elapsed Game Time 0.01 secs (didn't test if map init works, but it should)
Conditions
Actions
Unit Group - Pick every unit in (Units in [Any Region]((Unit-type of (Picked unit)) Equal to Peasant)) and do (Unit - Make (Picked unit) Invulnerable)
 
Status
Not open for further replies.
Top