Unit Design - Terrain affinity

Post Reply
Stratego (dev)
Site Admin
Posts: 14743
Joined: Fri Apr 25, 2014 9:28 pm

Unit Design - Terrain affinity

Post by Stratego (dev) » Sun Jul 12, 2020 7:02 pm

In unit statsheet you see example how to use the "normal" way:
eg:

Code: Select all

         "rangeWalk":3,
         "trnWalkTerrain":[
            {"terrainType":"TERRAINS_FORESTWALKABLE", "modifier":1},
            {"terrainType":"TERRAINS_ROUGHWALKABLE", "modifier":0.75},
            {"terrainType":"TERRAINS_VERYROUGHWALKABLE", "modifier":0.4},
            {"terrainType":"TERRAINS_FASTWALKABLE", "modifier":1.5},
            {"terrainType":"TERRAINS_VERYFASTWALKABLE", "modifier":1.85}
            ],
Meaning unit has 3 walk by default on all listed terrains in "trnWalkTerrain" but multiplied with the modifier value (increasing or decreasing the value)

Extra: you can use refrences to other units so you dont need to set the same values multiple times
read here: viewtopic.php?f=216&t=8414&p=102190

Want to modify other unit properties than speed?
you can check here: viewtopic.php?f=215&t=4307

User avatar
Puss_in_Boots
Posts: 3178
Joined: Fri Apr 21, 2017 1:23 am
Location: New Jersey

Re: Unit Design - Terrain affinity

Post by Puss_in_Boots » Mon Jul 13, 2020 2:05 am

I like it. The useThisTemplate method.
Is it possible to use the same for bonuses?
RED, WHITE and BLUE!

Stratego (dev)
Site Admin
Posts: 14743
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - Terrain affinity

Post by Stratego (dev) » Mon Jul 13, 2020 5:55 am

same not, but will be a similar soon.

User avatar
Puss_in_Boots
Posts: 3178
Joined: Fri Apr 21, 2017 1:23 am
Location: New Jersey

Re: Unit Design - Terrain affinity

Post by Puss_in_Boots » Mon Jul 13, 2020 1:14 pm

Brilliant!
It could save a lot of time changing all bonuses for many similar units.
RED, WHITE and BLUE!

Post Reply

Return to “Unit Design”