• 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] How to custom a script With a integer

Status
Not open for further replies.
Level 8
Joined
Jul 10, 2018
Messages
383
Hi i'm trying to remove a leak of a location but it isn't working here's the Trigger.

  • Spawners Variables Leakless
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Center[0] = (Center of Undead Units Spawner 1 <gen>)
      • Set Center[1] = (Center of Undead Units Spawner 2 <gen>)
      • Set Center[2] = (Center of Undead Units Spawner 3 <gen>)
      • Set Center[3] = (Center of Undead Units Spawner 4 <gen>)
And this is the Advancing Trigger
  • Spawner Units First 1
    • Events
      • Time - Every 20.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 6 Ghoul for Player 21 (Coal) at Center[0] facing Default building facing degrees
      • Unit - Create 1 Crypt Fiend for Player 21 (Coal) at Center[0] facing Default building facing degrees
      • Unit Group - Pick every unit in (Units in Undead Units Spawner 1 <gen>) and do (Unit - Order (Picked unit) to Attack-Move To (Center of Attacking Point <gen>))
      • Custom script: call RemoveLocation(udg_center[0])
 
Status
Not open for further replies.
Top