• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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

 
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
 
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 ?
 
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
 
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
 
Thanks, but, can you make, when i destroy the gate this (10 Footman) Spawn every 15 seconds and going to attack me
 
Last edited:
  • 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.
Back
Top