Resource icon

Great General Spare Troops v1.0 2016-10-05

"Great General Spare Troops" python mod by Outitch

This is my very first attempt to mod CIV. This is a simple python code inserted inside the function onUnitKilled() from the file CvEventManager.py

What the mod does:
If a unit possessing the leader promotion (i.e. having a great general attached to) dies from combat, the great general will try to attach to a new unit if there is any remaining unit from the stack which was containing the former (defeated) leader unit.
The leader will try to attach to a unit of the same combat class, or the stronger unit remaining if there is no unit of the same combat class. The last line of python code make the leader give 20 xp to his new unit, but fell free to comment this line if you don't want that the leader gives xp each times he is attached to a new unit.
To my knowledge there is no python mod that gives leaders the opportunity to survive the defeat of its unit if he has spare troops remaining inside his stack. I apologize by advance if such a mod already exist (the mod database is quite huge).
Let me know if there is any bug.

And last, a link to the modcomp thread: http://forums.civfanatics.com/showthread.php?p=11258959#post11258959
Author
Outitch
Downloads
233
Views
342
First release
Last update

Ratings

0.00 star(s) 0 ratings
Back
Top Bottom