• 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!

[Trigger] Increasing speed while on a road. (Help Needed)

Status
Not open for further replies.
Level 4
Joined
Jun 30, 2008
Messages
92
  • Road Speed
    • Events
      • Time - Every 0.25 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Terrain type at (Position of (Picked unit))) Equal to Lordaeron Summer - Rock
            • Then - Actions
              • Unit - Set (Picked unit) movement speed to ((Default movement speed of (Picked unit)) + 50.00)
            • Else - Actions
              • Unit - Set (Picked unit) movement speed to (Default movement speed of (Picked unit))
That is my code so far, I don't see where I'm making a mistake, but I'm still pretty new to this.

From my tests I think that this increases speed of all units, but not while they're on a road, instead it's constant. Any help would be nice.

-Thanks
 
(Terrain type at (Position of (Picked unit))) Equal to Lordaeron Summer - Rock

Red text is leak.

But as for your question - check carefully what type of terrain you are using. Are you sure it's Lordaeron Summer?
 
Thank you guys, I scoffed you're attempts to check if my terrain was Rock. Of course it is, I put it down, I chose summer as my tileset, I couldn't be that dumb...

Yea... I changed my tileset to Ashenvale just before I worked on that trigger and my zombie triggers. Thanks guys.
 
Status
Not open for further replies.
Back
Top