• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Runner Redirection

Level 12
Joined
Aug 3, 2021
Messages
434
Hello Hive Workshop. It's Pekisa7. I need help for the runner redirection. When he gets to where he needs to be he just goes to path b or redirect east. how do i make him go to redirect west? I know you guys gave me the triggers for the runner in my runner dosen't walk on the road thread. But he dosen't take another path. Do I change something in randomize path for runner or do I just turn it off. Can somone help? Here are the triggers:
  • RandomizePath For Runner
    • Events
    • Conditions
    • Actions
      • Set RandomRegion = (Random real number between 0.00 and 4.00)
      • If (RandomRegion Less than 1.00) then do (Set RunnerVariableTarget = RedirectWest <gen>) else do (Do nothing)
      • If ((RandomRegion Greater than or equal to 1.00) and (RandomRegion Less than 2.00)) then do (Set RunnerVariableTarget = RedirectWest <gen>) else do (Do nothing)
      • If ((RandomRegion Greater than or equal to 1.00) and (RandomRegion Less than 2.00)) then do (Trigger - Turn on Waypoints A <gen>) else do (Do nothing)
      • If ((RandomRegion Greater than or equal to 2.00) and (RandomRegion Less than 3.00)) then do (Set RunnerVariableTarget = RedirectEast <gen>) else do (Do nothing)
      • If ((RandomRegion Greater than or equal to 2.00) and (RandomRegion Less than 3.00)) then do (Trigger - Turn on Waypoints B <gen>) else do (Do nothing)
      • If (RandomRegion Less than 1.00) then do (Set RunnerVariableTarget = RedirectEast <gen>) else do (Do nothing)
 
Do you have this option turned off? It causes the random numbers to always be the same

1753185788808.png


Also, if your number is less than 1, then this

  • If (RandomRegion Less than 1.00) then do (Set RunnerVariableTarget = RedirectWest <gen>) else do (Do nothing)
Gets overwritten by this

  • If (RandomRegion Less than 1.00) then do (Set RunnerVariableTarget = RedirectEast <gen>) else do (Do nothing)
So he's much more likely to go east in the end. Why not do something more simple?

  • Actions
    • Set VariableSet RandomInt = (Random integer number between 1 and 2)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • RandomInt Equal to 1
      • Then - Actions
        • -------- Go East --------
      • Else - Actions
        • -------- Go West --------
(I use integers for cases like this where you only have 2 possibilities but I guess it doesn't make a difference)
 
Do you have this option turned off? It causes the random numbers to always be the same

View attachment 542653

Also, if your number is less than 1, then this

  • If (RandomRegion Less than 1.00) then do (Set RunnerVariableTarget = RedirectWest <gen>) else do (Do nothing)
Gets overwritten by this

  • If (RandomRegion Less than 1.00) then do (Set RunnerVariableTarget = RedirectEast <gen>) else do (Do nothing)
So he's much more likely to go east in the end. Why not do something more simple?

  • Actions
    • Set VariableSet RandomInt = (Random integer number between 1 and 2)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • RandomInt Equal to 1
      • Then - Actions
        • -------- Go East --------
      • Else - Actions
        • -------- Go West --------
(I use integers for cases like this where you only have 2 possibilities but I guess it doesn't make a difference)
I unceacked fixed random seed it dosen't change a thing. I did it more simpler as you told me below. Can it work like this?:
  • RandomizePath For Runner
    • Events
    • Conditions
    • Actions
      • Set RandomInit = (Random integer number between 1 and 2)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RandomInit Equal to 1
        • Then - Actions
          • Unit - Order Runner to Move To (Center of RedirectEast <gen>)
        • Else - Actions
          • Unit - Order Runner to Move To (Center of RedirectWest <gen>)
 
Only one way to find out ^^ But I guess you also need the "Trigger - Turn on Waypoints" part that you were using on your previous trigger
I tried it this way above that I posted. It still dosen't work. Where to add turn on Waypoints by the way?
 
you try to spawn Runners with cumstom value you can keep tack of them and then When he gets to where he needs you make them to east or west or where ever like as chaosium sad but with cumstom value


Triggers please. How do I do it? What custom vaules do I add?
 
Last edited:
Triggers please. How do I do it? What custom vaules do I add?

you try to spawn Runners with cumstom value you can keep tack of them and then When he gets to where he needs you make them to east or west or where ever like as chaosium sad but with cumstom value



you try to spawn Runners with cumstom value you can keep tack of them and then When he gets to where he needs you make them to east or west or where ever like as chaosium sad but with cumstom value


Ermm. Hello?
 
Back
Top