NwabudikeMorgan
CEO
So i know how to make it happen that when you defeat a unit, it is captured, and that's all fine and dandy, however, I would like a little help or feedback with this idea: In the Napoleon Mod by Alazkan Assassin it was coded in the Python that when you defeated a ship, you had a % chance to capture it, and then also coded was a preset amount of damage that ship would have sustained ie: captured frigate has 1.0/8 HP
I wanted to include this same feature in my mod, but try as i might I couldent get the python from Napoleon to work. I had another idea, which was to make a weaker version of each ship, which would be the "captured vessel" and could be upgraded at a small cost of gold to the original.
here's what i mean:
Frigate loses in a battle to an ironclad, so the frigate will be captured, but instead of a frigate, the ironclad player recieves a "damaged frigate" with, say 4HP instead of 8, which can be upgraded to a standard frigate with 8 HP for say 50 gold.
this second way is easy to code, as all you need is XML, but i just wanted some feedback, and to see if anyone has knowledge of how to script the capture thing in python.
I wanted to include this same feature in my mod, but try as i might I couldent get the python from Napoleon to work. I had another idea, which was to make a weaker version of each ship, which would be the "captured vessel" and could be upgraded at a small cost of gold to the original.
here's what i mean:
Frigate loses in a battle to an ironclad, so the frigate will be captured, but instead of a frigate, the ironclad player recieves a "damaged frigate" with, say 4HP instead of 8, which can be upgraded to a standard frigate with 8 HP for say 50 gold.
this second way is easy to code, as all you need is XML, but i just wanted some feedback, and to see if anyone has knowledge of how to script the capture thing in python.