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

[Solved] Attack-Move under certain conditions

Status
Not open for further replies.
Level 3
Joined
Jul 30, 2011
Messages
50
Hello, I want make:

1. When I destroy the gate, Creeps going to attack my "Capital"
2. In Region, When the Gate is Destroyed they going to attack my Capital... Hope you understand me.

 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
1:
  • capital attack
    • Events
      • Destructible - Demonic Gate (Diagonal 2) 0000 <gen> dies
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in new region <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To (Center of another region <gen>)
and i dont know what you mean with 2

EDIT;
you do the same way as i showed as 1
 
Level 3
Joined
Jul 30, 2011
Messages
50
Thanks, but i want, when i destroy the gate, In Region can make "spawn" Creeps in "x Secounds" to "Attack-Move" to Region. You Understand me ?
 
Level 13
Joined
Jun 1, 2008
Messages
360
Then you just use "A unit enters region" as event.
I suggest you
A) take a close look at the trigger editor. Look what events/conditions/actions are available (there also is a search field)
Most things are easy to make, just try them urself, and if it doesn't work we can still help out.
B) please use a better topic name
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
no idea how you want it :S
  • capital attack
    • Events
      • Destructible - Demonic Gate (Diagonal 2) 0000 <gen> dies
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in new region <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To (Center of another region <gen>)
      • Unit - Create 10 Footman for Player 1 (Red) at (Center of new region <gen>) facing Default building facing degrees
 
Level 3
Joined
Jul 30, 2011
Messages
50
Thanks, but, can you make, when i destroy the gate this (10 Footman) Spawn every 15 seconds and going to attack me
 
Last edited:
Level 13
Joined
Oct 25, 2009
Messages
995
  • capital attack
    • Events
      • Destructible - Demonic Gate (Diagonal 2) 0000 <gen> dies
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in new region <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To (Center of another region <gen>)
      • Trigger - Turn on (Spawn)
  • Spawn
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 15, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Your Spawn Region)) facing Default building facing degrees
          • Unit - Order (Last created unit) to Attack-Move To (Center of (Your Region))
Make sure you Spawn is initially off before the gate destroyed.
 
Status
Not open for further replies.
Top