• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

different moveing speed on different terrain

Status
Not open for further replies.
Level 2
Joined
Jun 29, 2004
Messages
19
is it possible to change moving speed on certain kind of terrain ?? e.g. in the town +20% / on road +10% / plains - fields +2% / snow -10% / swamps -15% / cursed land -20% ??

and without doing specific regions for that, coz that is impossible while working on bigger map ;/
 
Mesiash said:
is it possible to change moving speed on certain kind of terrain ?? e.g. in the town +20% / on road +10% / plains - fields +2% / snow -10% / swamps -15% / cursed land -20% ??

and without doing specific regions for that, coz that is impossible while working on bigger map ;/

i will write this out in psuedo:

Code:
event, periodic, every second or so
actions,
    set point Z = position of Hero
    set terraintype Y = terrain type at point Z
    if terraintype is blah blah
        set movement speed of Hero = blah blah
    endif
    etc...
    destroy Z

now, the problem with this so far is that obviously you can't use a direct modifier since it would accumulate over time, the alternative is the save the Hero's base speed into a variable and modify that, since i don't think base speed of unit takes into account items or like poisoned/chilled it might be hard to make those apply and get modified
now, alternatively, it may be possible to give the unit 'speed modifying' abilities that don't show up as they enter new terrain types, and take them away as they come off of them

thats the best i can come up with
 
Status
Not open for further replies.
Back
Top