• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How to make all units in region invulnerable?

Status
Not open for further replies.
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 :/
 
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
 
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.
Back
Top