Jorgen_CAB
Warlord
If it is of any interest for any modders out there, i have just incorporated an extra attack value for different terrains and features.
I managed to insert two new values into the XML schema called <TerrainAttack> and <FeatureAttack> and they do exactly what they are suppose to do, give a unit an attackvalue when they attack another unit occupying a certain type of terrain or feature plot.
Of course this did entail some minor addition to the SDK, but I will have everything documented and ready for use if it is of any use.
I have attached some picture to show this change...
http://forums.civfanatics.com/attachment.php?attachmentid=125390&d=1146489356
http://forums.civfanatics.com/attachment.php?attachmentid=125391&d=1146489356
Right now, units will not gain any defensive bonus from a tile unless they have bin stationary for at least one turn, I will incorporate a value called Light_Unit or some such to neglect this (in different terrain also, called Forrester_Unit and Hillmen_Unit and DesertRaider_Unit). Any special bonuses from Terrain or Features will not be affected by this.
All this may be used in Python as Functions/Values and also used for Promosions, haven't testet everything yet but it should work.
I have not intended to upload anything at the moment becuase this is not usable by anyone of the bat since it will require a Schema change and updating of a few other XML files. Though I will provide with information of how to do and the DLL, or to incorporate it to anyone elses project if you changed it.
I managed to insert two new values into the XML schema called <TerrainAttack> and <FeatureAttack> and they do exactly what they are suppose to do, give a unit an attackvalue when they attack another unit occupying a certain type of terrain or feature plot.
Of course this did entail some minor addition to the SDK, but I will have everything documented and ready for use if it is of any use.
I have attached some picture to show this change...
http://forums.civfanatics.com/attachment.php?attachmentid=125390&d=1146489356
http://forums.civfanatics.com/attachment.php?attachmentid=125391&d=1146489356
Right now, units will not gain any defensive bonus from a tile unless they have bin stationary for at least one turn, I will incorporate a value called Light_Unit or some such to neglect this (in different terrain also, called Forrester_Unit and Hillmen_Unit and DesertRaider_Unit). Any special bonuses from Terrain or Features will not be affected by this.
All this may be used in Python as Functions/Values and also used for Promosions, haven't testet everything yet but it should work.
I have not intended to upload anything at the moment becuase this is not usable by anyone of the bat since it will require a Schema change and updating of a few other XML files. Though I will provide with information of how to do and the DLL, or to incorporate it to anyone elses project if you changed it.