Warcraft III resources & community, 2003–2006 · archived

How to make all units in region invulnerable?

6 posts
#1

How to make all units in region invulnerable?

How to make all units in region invulnerable? with a trigger
#2
that depends on what you want to happen to make the units invul. if you tell me what ill tell you how (mabye if i know :wink: )
#3
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 :/
#4
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
#5
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)
#6
thanks a bunch hope it works =D