• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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