1. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  2. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  3. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  4. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  5. Shoot to thrill, play to kill. Sate your hunger with the 33rd Modeling Contest!
    Dismiss Notice
  6. Do you hear boss music? It's the 17th Mini Mapping Contest!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Solved] Attack-Move under certain conditions

Discussion in 'World Editor Help Zone' started by DDLove, Oct 15, 2011.

  1. DDLove

    DDLove

    Joined:
    Jul 30, 2011
    Messages:
    50
    Resources:
    0
    Resources:
    0
    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.

    [​IMG]
     
  2. Chaosy

    Chaosy

    Tutorial Reviewer

    Joined:
    Jun 9, 2011
    Messages:
    11,041
    Resources:
    18
    Icons:
    1
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    18
    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
     
  3. DDLove

    DDLove

    Joined:
    Jul 30, 2011
    Messages:
    50
    Resources:
    0
    Resources:
    0
    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 ?
     
  4. kleinerhauck

    kleinerhauck

    Joined:
    Jun 1, 2008
    Messages:
    300
    Resources:
    8
    Maps:
    8
    Resources:
    8
    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
     
  5. DDLove

    DDLove

    Joined:
    Jul 30, 2011
    Messages:
    50
    Resources:
    0
    Resources:
    0
    Not work... I put there download of map to see?
     
  6. Chaosy

    Chaosy

    Tutorial Reviewer

    Joined:
    Jun 9, 2011
    Messages:
    11,041
    Resources:
    18
    Icons:
    1
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    18
    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
     
  7. DDLove

    DDLove

    Joined:
    Jul 30, 2011
    Messages:
    50
    Resources:
    0
    Resources:
    0
    Thanks, but, can you make, when i destroy the gate this (10 Footman) Spawn every 15 seconds and going to attack me
     
    Last edited: Oct 16, 2011
  8. GangSpear

    GangSpear

    Joined:
    Oct 25, 2009
    Messages:
    971
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Triggers
    • 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.
     
  9. DDLove

    DDLove

    Joined:
    Jul 30, 2011
    Messages:
    50
    Resources:
    0
    Resources:
    0
    Thanks, but not work.... I stay without destroy the gate but Creeps been Spawned...
     
  10. GangSpear

    GangSpear

    Joined:
    Oct 25, 2009
    Messages:
    971
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Are your trigger of spawn is initially off before the gate destroyed?After the gate destroyed then turn on the trigger of spawn.
     
  11. DDLove

    DDLove

    Joined:
    Jul 30, 2011
    Messages:
    50
    Resources:
    0
    Resources:
    0
    I dont understand you....
    1. I put Trigger of spawn off, and they continued spawned without i destroy the gate..

    nvm, Look my map
    ( Folder is "Destroy Gate" )
    http://www.solidfiles.com/d/476ab
    Look if i put there good..
     
  12. Chaosy

    Chaosy

    Tutorial Reviewer

    Joined:
    Jun 9, 2011
    Messages:
    11,041
    Resources:
    18
    Icons:
    1
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    18
    here you go
     

    Attached Files:

  13. DDLove

    DDLove

    Joined:
    Jul 30, 2011
    Messages:
    50
    Resources:
    0
    Resources:
    0
    Thank you very Much!!