• 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 unit die if he doesent enter any region?

Status
Not open for further replies.
Level 14
Joined
Mar 4, 2009
Messages
1,156
___________________________________________________________________
There is a unit called "Human Flag(Base Owner)" and i want to kill it if he
doesn't enter any region but if he does he must stay alive off course....
___________________________________________________________________
It actually means that "Human Flag(Base Owner) didn't enter any base
i can do more regions but i would need about 30 of them.....

every base has 1-3 regions and "Human Flag(Base Owner) mus´t be built outside

BTW can 100 regions make some lags/bugs?(there is trigger for every of those regions)
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
How about you check conditions like

  • test
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • (Your Region contains (Your unit)) Equal to False
    • Actions
      • Unit - Kill (Your unit)
maybe like that.. xD

no...xD

i think i will solve this problem adding ability wich will kill HumanFlag(Base Owner)

but i will remove it if it enters any region (and i need about 70 events becouse in my map has 70 regions....

{EDIT}
  • Untitled Trigger 001 002 003 Copy
    • Events
      • Unit - A unit enters Region 001 <gen>
      • Unit - A unit enters Region 002 <gen>
      • Unit - A unit enters Region 003 <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Entering unit)) Equal to Human Flag(Base Owner)
        • Then - Actions
          • Unit - Remove ability SUECIDE from (Entering unit)
        • Else - Actions
SUECIDE is ability witch kills "Human Flag(Base Owner)" if it is not removed and i will not remove it if it didnt enter any of my regions

i dont know is there any easyer way to do this but i think this is solved....
 
Last edited:
Status
Not open for further replies.
Top