Page 1 of 1

Unit Design - Terrain affinity

Posted: Sun Jul 12, 2020 7:02 pm
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

Re: Unit Design - Terrain affinity

Posted: Mon Jul 13, 2020 2:05 am
by Puss_in_Boots
I like it. The useThisTemplate method.
Is it possible to use the same for bonuses?

Re: Unit Design - Terrain affinity

Posted: Mon Jul 13, 2020 5:55 am
by Stratego (dev)
same not, but will be a similar soon.

Re: Unit Design - Terrain affinity

Posted: Mon Jul 13, 2020 1:14 pm
by Puss_in_Boots
Brilliant!
It could save a lot of time changing all bonuses for many similar units.