Fullerene
Warlord
- Joined
- Aug 26, 2009
- Messages
- 228
So, I finally got my hands dirty on modding civ4:col
This is simple mod component that adds new attribute to units: a nationality.
Every unit has a national identity and there's also a hidden variable that indicates how strong the national identity is for the unit. Statesmen try to convert the citizens to their own nationality. For example you can try to convert Apache converts to English identity.
How it works?
In this mod comp the Statesmen have extra function. They do not only accumulate liberty bells, they also spread nationalistic propaganda, trying to convert other units with other nationality and strengthen the national identity of units of the same nationality. The hidden variable stores the strength of national identity (max 100). If statesman has same nationality than the unit, the national identity rises. If nationality is different, the identity gets weaker. If identity goes below zero, the unit converts to the statesman's nationality.
What does nationality do?
Not much yet. But if the unit has same nationality than the player civ is (it usually has), the unit works bit harder. (If profession output is at least 4, it gives +1 to output.)
Notes
I didn't test this too much, but it seems to work as intended. Also, it isn't very interesting as standalone modcomp but I have further modding plans where I'm going to use the nationalities for more interesting features.
DLL sources are included.
This is simple mod component that adds new attribute to units: a nationality.
Every unit has a national identity and there's also a hidden variable that indicates how strong the national identity is for the unit. Statesmen try to convert the citizens to their own nationality. For example you can try to convert Apache converts to English identity.
How it works?
In this mod comp the Statesmen have extra function. They do not only accumulate liberty bells, they also spread nationalistic propaganda, trying to convert other units with other nationality and strengthen the national identity of units of the same nationality. The hidden variable stores the strength of national identity (max 100). If statesman has same nationality than the unit, the national identity rises. If nationality is different, the identity gets weaker. If identity goes below zero, the unit converts to the statesman's nationality.
What does nationality do?
Not much yet. But if the unit has same nationality than the player civ is (it usually has), the unit works bit harder. (If profession output is at least 4, it gives +1 to output.)
Notes
I didn't test this too much, but it seems to work as intended. Also, it isn't very interesting as standalone modcomp but I have further modding plans where I'm going to use the nationalities for more interesting features.
DLL sources are included.