• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Third Runner spawning after the second runner

Level 6
Joined
Aug 3, 2021
Messages
112
Hello its Pekisa7 again. I still haven't figured out how to stop the third runner from spawning after the second because when I kill the first runner the second spawns than the third runner spawns with the second. Do i just set runner 2 as a variable. I really don't know. Can someone help me with this? Here are the triggers :
  • Start Timer 03
    • Events
      • Unit - A unit owned by Player 15 (Turquoise) Dies
    • Conditions
      • (Dying unit) Equal to Runner
    • Actions
      • Set RunnerActive = True
      • Countdown Timer - Start RunnerTimer03 as a One-shot timer that will expire in 45.00 seconds
  • Third Runner Timer Expires
    • Events
      • Time - RunnerTimer03 expires
    • Conditions
      • ExitCinematicRunning Equal to False
      • (QuestRunner is failed) Equal to False
      • GameOver Equal to False
    • Actions
      • Trigger - Add Runner 03 <gen> to the trigger queue (Checking conditions)
      • Trigger - Turn off Third Runner Timer Expires <gen>
  • Runner 03
    • Events
    • Conditions
      • RunnerActive Equal to True
      • GameOver Equal to False
    • Actions
      • Countdown Timer - Hide RunnerTimerWindow
      • Leaderboard - Show RunnerLeaderboard
      • Set RunnerRandomLine = (Random real number between 0.00 and 2.00)
      • Sound - Setup all volume channels for speech
      • Sound - Reset all volume channels to 100%
      • Cinematic - Send transmission to (All players) from a Player 5 (Yellow) Footman named Footman at (Player 5 (Yellow) start location): Play Sned_in_the_runner_03 <gen> and display These undead are st.... Modify duration: Add 0.00 seconds and Wait
      • Cinematic - Send transmission to (All players) from a Player 4 (Purple) Necromancer named Necromancer at (Player 4 (Purple) start location): Play Before_he_reaches_Capital_City <gen> and display My King, humans hav.... Modify duration: Add 0.00 seconds and Wait
      • Unit - Create 1 Runner for Player 15 (Turquoise) at (Center of RunnerStart <gen>) facing 270.00 degrees
      • Set Runner = (Last created unit)
      • Unit - Set Runner movement speed to ((Default movement speed of Runner) - RunnerMovmentSpeed)
      • Trigger - Run RandomizePath For Runner <gen> (ignoring conditions)
      • Unit - Order Runner to Move To (Center of RunnerMoveTeleport <gen>)
      • Trigger - Turn on RunnerHeartbeat <gen>
      • Cinematic - Ping minimap for Player Group - Player 4 (Purple) at (Center of RunnerStart <gen>) for 2.00 seconds
      • Camera - Set a spacebar-point for Player 4 (Purple) at (Center of RunnerStart <gen>)
      • Countdown Timer - Start TimerRunnerFailsafe as a One-shot timer that will expire in 300.00 seconds
      • Trigger - Remove (This trigger) from the trigger queue
 
Level 6
Joined
Jul 7, 2006
Messages
28
base.gif
Start Timer 03
  • joinminus.gif
    events.gif
    Events
    • line.gif
      joinbottom.gif
      unit.gif
      Unit - A unit owned by Player 15 (Turquoise) Dies
  • joinminus.gif
    cond.gif
    Conditions
    • line.gif
      joinbottom.gif
      if.gif
      (Dying unit) Equal to Runner
  • joinbottomminus.gif
    actions.gif
    Actions
    • empty.gif
      join.gif
      set.gif
      Set RunnerActive = True
    • empty.gif
      joinbottom.gif
      timer.gif
      Countdown Timer - Start RunnerTimer03 as a One-shot timer that will expire in 45.00 seconds
You don't have a condition that differentiates which runner is currently spawned or dying so this trigger is triggering when the first runner is dying simultaneously with your 2nd runner start timer

  • Runner_Number Equal to 2
add in some integer comparison like above and add in the actions:

  • Set VariableSet Runner_Number = (Runner_Number + 1)
whenever a runner is being spawned, if your first runner is preplaced make sure to set the variables initial value to 1 or set it to 1 in some initialization trigger.
 
Level 6
Joined
Aug 3, 2021
Messages
112
You don't have a condition that differentiates which runner is currently spawned or dying so this trigger is triggering when the first runner is dying simultaneously with your 2nd runner start timer

  • Runner_Number Equal to 2
add in some integer comparison like above and add in the actions:

  • Set VariableSet Runner_Number = (Runner_Number + 1)
whenever a runner is being spawned, if your first runner is preplaced make sure to set the variables initial value to 1 or set it to 1 in some initialization trigger.
Hey! Thanks for the help . I got back from vacation yesterday so I couldn't answer you sooner. I tried everything you told me here . The third runner dosen't spawn when i put these triggers. Also the first runner isn't preplaced so.... But when i put set variable Runner + 1 it spawns the third runner right after the second when i put it in inilaization. But when i put it in start timer 03 it dosen't spawn the third runner.
 
Last edited:
Level 6
Joined
Jul 7, 2006
Messages
28
Hey! Thanks for the help . I got back from vacation yesterday so I couldn't answer you sooner. I tried everything you told me here . The third runner dosen't spawn when i put these triggers. Also the first runner isn't preplaced so.... But when i put set variable Runner + 1 it spawns the third runner right after the second when i put it in inilaization. But when i put it in start timer 03 it dosen't spawn the third runner.
Ok so it sounds like somewhere theres an addition happening somwhere where it shouldn't. Can you post the triggers where you added to the runner count and what initial value are you using for your runner count variable?
 
Level 6
Joined
Aug 3, 2021
Messages
112
Ok so it sounds like somewhere theres an addition happening somwhere where it shouldn't. Can you post the triggers where you added to the runner count and what initial value are you using for your runner count variable?
  • Start Timer 03
    • Events
      • Unit - A unit owned by Player 15 (Turquoise) Dies
    • Conditions
      • Runner_Number Equal to 2
    • Actions
      • Set Runner_Number = (Runner_Number + 1)
      • Set RunnerActive = True
      • Countdown Timer - Start RunnerTimer03 as a One-shot timer that will expire in 45.00 seconds
Inital value is 1.
 
Last edited:
Level 6
Joined
Jul 7, 2006
Messages
28
  • Start Timer 03
    • Events
      • Unit - A unit owned by Player 15 (Turquoise) Dies
    • Conditions
      • Runner_Number Equal to 2
    • Actions
      • Set Runner_Number = (Runner_Number + 1)
      • Set RunnerActive = True
      • Countdown Timer - Start RunnerTimer03 as a One-shot timer that will expire in 45.00 seconds
Inital value is 1.

Ok so it seems where you put the +1 increment isn't correct you need to add the +1 during the trigger that spawns the 2nd runner

  • Unit - Create 1 Runner for Player 15 (Turquoise) at (Center of RunnerStart <gen>) facing 270.00 degrees
  • Set Runner_Number = (Runner_Number + 1)
You want to put the +1 to the runner count during the trigger that is spawning your second runner during your runner02 trigger
 
Level 6
Joined
Aug 3, 2021
Messages
112
Ok so it seems where you put the +1 increment isn't correct you need to add the +1 during the trigger that spawns the 2nd runner

  • Unit - Create 1 Runner for Player 15 (Turquoise) at (Center of RunnerStart <gen>) facing 270.00 degrees
  • Set Runner_Number = (Runner_Number + 1)
You want to put the +1 to the runner count during the trigger that is spawning your second runner during your runner02 trigger
Thank you so much! It worked!
 
Last edited:
Top