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

[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
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
instead of set moment speed I'd use a dummy ability like giving that unit a rune of speed
 
Level 7
Joined
Jul 20, 2008
Messages
377
(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?
 
Level 4
Joined
Jun 30, 2008
Messages
92
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.
Top