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

[Trigger] Spawning help creeps

Status
Not open for further replies.
Level 19
Joined
Feb 15, 2008
Messages
2,184
here is my triggers.

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Loc1 = (Center of Spawning <gen>)
      • Set Loc2 = (Center of Main Base Spartans <gen>)
      • Melee Game - Use melee time of day (for all players)
      • Melee Game - Run melee AI scripts (for computer players)
  • Spam 1
    • Events
      • Time - Every 20.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 10 Footman for Player 12 (Brown) at Loc1 facing Default building facing degrees
  • Move
    • Events
      • Unit - A unit enters Spawning <gen>
    • Conditions
      • (Owner of (Entering unit)) Equal to Player 12 (Brown)
    • Actions
      • Unit - Order (Entering unit) to Attack-Move To Loc2
but the unit dont move to the location they just standing there and moving to the sea :S duno why whats the wrong?
 
Level 9
Joined
Apr 3, 2008
Messages
700
At first, remove Melee Scripts.
And you don't need 2 triggers. Just order "last created unit" to attack in the trigger where it was created.
  • Events
    • Time - Every 20.00 seconds of game time
  • Conditions
  • Actions
    • Unit - Create 10 Footman for Player 12 (Brown) at Loc1 facing Default building facing degrees
    • Unit - Order (Last created unit) to Attack-Move To Loc2
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
At first, remove Melee Scripts.
And you don't need 2 triggers. Just order "last created unit" to attack in the trigger where it was created.
  • Events
    • Time - Every 20.00 seconds of game time
  • Conditions
  • Actions
    • Unit - Create 10 Footman for Player 12 (Brown) at Loc1 facing Default building facing degrees
    • Unit - Order (Last created unit) to Attack-Move To Loc2

Day-Elven that trigger will only move 1 footman (the last created one).

It should be:
  • Events
    • Time - Every 20.00 seconds of game time
  • Conditions
  • Actions
    • For each integer A from 1 to 10 do actions:
      • Unit - Create 1 Footman for Player 12 (Brown) at Loc1 facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack-Move To Loc2
 
Status
Not open for further replies.
Top