• Civ7 is already available! Happy playing :).
Resource icon

[BTS Python/XML] StackAid Promotion Mod 2016-10-05

Here is another spin-off mini mod:

StackAid Promotion Mod

It adds new Promotions: StackAids (idea/python code by Zuul, modified by GIR)
It also adds a little python code:

The new Promotions come with a new system, the StackAid system (see pic for new Promotions). You can’t promote your units with this Promotions, but units will get this Promotions depending on the Stack they are in:
e.g. a stack of melee units will get the Heavy Aid Promotion. If a unit will get the HeavyAid_I, or HeavyAid_II or HeavyAid_III Promotion depends on the base strength of the unit and the total strength of the melee units in the whole stack. That means a bigger stack give your units higher StackAid Promotions and weaker units will get easier higher Aid Promotions like strong units.
Of course you can mix your units and they will get different StackAid Promotions: e.g if you have a stack with melee units, scouts and archery units your units will get HeavyAid, ScoutAid and RangeAid Promotions.
Note: Stacks that are too big lose the benefits from StackAid Promotions. For more info see spoiler.

I decided to only give weak effects to the Aid Promotions so it only has a small impact on the gameplay but you can change the Promotion effects in the Promotion.xml file.

Spoiler :

Stacks that are too big lose the benefits from StackAid Promotions:
minus one Aid-lvl if stack > 20 units
minus two Aid-lvl if stack > 40 units
minus three Aid-lvl if stack > 60 units
give crowded Promotion if stack > 80 units
(values can be changed in the top of the StackAid.py file)


Q: I have a stack with 1 Swordsman, 2 Axeman and 2 Archer and 1 Medic Scout. How many catapults I need to get a SiegeAid_II Promotion for my Axemen?

A:

A unit will get an Aid1 of a certain kind if the stack_strength combat_type > unit_strength * 1.
Aid2 with stack_strength combat type > unit_strength * 4.
Aid3 with stack_strength combat type > unit_strength * 12.

That means if you want to have a SiegeAid_II Promotion for your Axemen you need:

stack_strength Catapult(Str:5) > Axeman(Str:5) * 4
x * 5 > 5 * 4
x > 4

--> that means you need 5 Catapults to get SiegeAid_II Promotion for your Axemen.

Q: What promotions will my Axemen get in this stack?

A:

Let’s get the stack strength of the different combat types:

stack_range: 3+3 = 6
stack_scout: 1
stack_siege: 5*5 = 25
stack_heavy: 6+5+5 = 16

Will it get a RangeAid1?
stack_strength combat_type > unit_strength * 1
stack_strength_Range > Axemen * 1
6 > 5
Will it get a RangeAid2 (RangeAid2 replace RangeAid1)?
6 > 5*4 = 6 > 20 --> wrong (no RangeAid2, only RangeAid1)

Will it get a ScoutAid1?
1 > 5 --> wrong (no ScoutAid)

We know it will get a SiegeAid2

The Axemen is a melee unit (-> stack_heavy) and for balancing issues you have to subtract the base_strength from the stack_strength of the own kind, in this case of the heavy_stack_strength:
relative_stack_heavy: 16-5 = 11
Will it get a HeavyAid1?
relative_stack_strength_Heavy > Axemen * 1
11 > 5 --> right
Will it get a HeavyAid2?
11 > 5 * 4
11 > 20 --> wrong (only HeavyAid1)

--> the Axeman will get a RangeAid1, HeavyAid1 and a SiegeAid2 Promotion in this Stack!



Some pics:



Have fun!

Thread:
http://forums.civfanatics.com/showthread.php?t=241245




Author
GIR
Downloads
316
Views
316
First release
Last update

Ratings

0.00 star(s) 0 ratings
Top Bottom