• 🏆 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] 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