• 🏆 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] Trigger wotn work gui

Status
Not open for further replies.
Level 6
Joined
Apr 22, 2009
Messages
164
  • SpawnZones
    • Events
      • Time - Elapsed game time is 0.50 seconds
    • Conditions
    • Actions
      • Set RSpawn[1] = Respawn1 <gen>
      • Set RSpawn[2] = Respawn2 <gen>
      • Set RSpawn[3] = Respawn3 <gen>
      • Set RSpawn[4] = Respawn4 <gen>
  • [TRIGGER]
  • [TRIGGER]RSpawn
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Triggering unit)) Not equal to Player 12 (Brown)
      • (Owner of (Triggering unit)) Not equal to Player 11 (Dark Green)
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Goblin Titan
          • (Unit-type of (Triggering unit)) Equal to Harpy Titan
          • (Unit-type of (Triggering unit)) Equal to Ocean Titan
    • Actions
      • Wait 5.00 seconds
      • Set RLoc = (Random point in RSpawn[(Player number of (Owner of (Triggering unit)))])
      • Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at RLoc facing Default building facing degrees
      • Selection - Add (Last created unit) to selection for (Owner of (Triggering unit))
      • Custom script: call RemoveLocation(udg_RLoc)
  • [TRIGGER]
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • SpawnZones
    • Events
      • Time - Elapsed game time is 0.50 seconds
    • Conditions
    • Actions
      • Set RSpawn[1] = Respawn1 <gen>
      • Set RSpawn[2] = Respawn2 <gen>
      • Set RSpawn[3] = Respawn3 <gen>
      • Set RSpawn[4] = Respawn4 <gen>
  • RSpawn
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Triggering unit)) Not equal to Player 12 (Brown)
      • (Owner of (Triggering unit)) Not equal to Player 11 (Dark Green)
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Goblin Titan
          • (Unit-type of (Triggering unit)) Equal to Harpy Titan
          • (Unit-type of (Triggering unit)) Equal to Ocean Titan
    • Actions
      • Wait 5.00 seconds
      • Set RLoc = (Random point in RSpawn[(Player number of (Owner of (Triggering unit)))])
      • Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at RLoc facing Default building facing degrees
      • Selection - Add (Last created unit) to selection for (Owner of (Triggering unit))
      • Custom script: call RemoveLocation(udg_RLoc)

It should work, the wait does not bug it since triggering unit is a local variable. Remove the conditions to try to isolate the problem See if it works then.
 
Status
Not open for further replies.
Top