• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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