Unit Design - Terrain affinity

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

Unit Design - Terrain affinity

Post by Stratego (dev) »

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: 3209
Joined: Fri Apr 21, 2017 1:23 am
Location: New Jersey

Re: Unit Design - Terrain affinity

Post by Puss_in_Boots »

I like it. The useThisTemplate method.
Is it possible to use the same for bonuses?
OLÉ
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Unit Design - Terrain affinity

Post by Stratego (dev) »

same not, but will be a similar soon.
User avatar
Puss_in_Boots
Posts: 3209
Joined: Fri Apr 21, 2017 1:23 am
Location: New Jersey

Re: Unit Design - Terrain affinity

Post by Puss_in_Boots »

Brilliant!
It could save a lot of time changing all bonuses for many similar units.
OLÉ
Post Reply

Return to “Unit Design”