Barbarian Envoy: Python + XML
The Barbarian Envoy can sneak into barbarian cities and attempt to convince them to join your cause. The chance of success improves if you have a state religion.
Notes:
Thanks to Flintlock1415 and The_J for pointing in in the right direction with my first Python project, and to TC01 for the tutorial.
Let me know what you think!
The Barbarian Envoy can sneak into barbarian cities and attempt to convince them to join your cause. The chance of success improves if you have a state religion.
Notes:
- The graphics are "borrowed" from the "Gods of Old" mod.
- This is still a work in progress - works fine for human players, but not yet designed so that the AI can activate it. In addition, some functionality could be more elegant, for example the defense unit in the city is either an archer or longbowman depending on tech level. I could have made it select a wider variety of units, but it should be realistic under most circumstances.
- It's "mostly" modular, but a few files such as python, and CIV4ArtDefines_Interface.xml are not.
- It was designed to work with BTS 3.17
- The chance of success depends partly on the size of the target city - larger cities are more difficult to impress, but of course worth more once you convert them.
- I calculated the unit value based on the sum of weighted probabilities of each outcome - with a self -adjustment factor described above. It should be "fair" but I welcome input.
Thanks to Flintlock1415 and The_J for pointing in in the right direction with my first Python project, and to TC01 for the tutorial.
Let me know what you think!