How to add veterancy bonuses without Promotions?

Exel

Prince
Joined
Nov 25, 2001
Messages
440
Location
Finland
I want to give units some bonus for each their xp level regardless of the promotions they choose. How can I for instance give them +5% withdrawal chance automatically with each level-up?
 
First you need to create a series of promotions containing the bonuses that you want to apply. When you do so, set them so that they aren't available to any unit type. This prevents the AI/Player from being able to select it, but doesn't prevent it from being otherwise assigned.

Next, you need to do some work in Python. I don't remember exactly what it is at the moment, but there should be an event trigger you can hook into for when a unit is promoted. Your code would add the relevant promotion for the new level.

Also, you can design the promotions so that only one gets applied at a time to reduce clutter.

In other words, make PromoII be whatever PromoI contains and whatever extra you want. Then, in your python code, remove PromoI when you add PromoII.
 
First you need to create a series of promotions containing the bonuses that you want to apply. When you do so, set them so that they aren't available to any unit type. This prevents the AI/Player from being able to select it, but doesn't prevent it from being otherwise assigned.

Next, you need to do some work in Python. I don't remember exactly what it is at the moment, but there should be an event trigger you can hook into for when a unit is promoted. Your code would add the relevant promotion for the new level.

Also, you can design the promotions so that only one gets applied at a time to reduce clutter.

In other words, make PromoII be whatever PromoI contains and whatever extra you want. Then, in your python code, remove PromoI when you add PromoII.

Okay. So there's no way of doing this in Civ4 without using promotions? Next, Python is not part of my skill set - has someone made a code for auto-assigned promotions?
 
Okay. So there's no way of doing this in Civ4 without using promotions?
You can do it in the SDK. But if python isn't something you know I guess neither is c++.

If you want all levelups to have the same benefit and neither python nor SDK is an option you can add the bonus to all promotions. It won't be exactly what you want. Promotions given out by traits etc would get the bonus too. But without python or SDK that's problably the best you can do.
 
Top Bottom