Promotions and suchlike

The Great Apple

Big Cheese
Joined
Mar 24, 2002
Messages
3,361
Location
Oxford, England
Firstly, has any bright spark managed to find a way of removing promotions, or do I have to dabble in Python? Ideally I want a way to strip certain promotions on unit upgrade, and be able to re-allocate them.

Maybe
Code:
			<FreePromotions>
				<FreePromotion>
					<PromotionType>PROMOTION_BLAHBLAH</PromotionType>
					<bFreePromotion>0</bFreePromotion>
				</FreePromotion>
			</FreePromotions>
would do the job of removing a current promotion... but I don't think so for some reason.

Basically, in the mod that I'm working on, a unit can have a combination of weapons. To upgrade their weapons first they need the right promotion, then they just need to upgrade at their local upgradery.

At the moment I can't see any way to have it purely promotion based, as I want it so the unit can have either one weapon, or another (spear or sheild for example, but never both). They way the current .xml is set up, if you have access to both, there is nothing to stop you getting both, which is not what I want.

The way I'm trying to work it, is that a unit gets the promotion, goes back into their terriatory, chooses a weapon upgrade (and gets upgraded to a different unit, which in turn receives a free promotion of the weapon - if it doesn't work like this, then it gets quite messy with units with more than 1 weapon upgrade - I have to make lots and lots of individual units).

Unfortunetely I also want units to be able to upgrade the normal way. However, I can see it looking rather stupid when you end up with an gunpowder unit with the "Pike" promotion. Ideally I need a way to strip these weapon promotions off when the unit is upgraded, however then I run into the problem of lost experience...

Now I could get it to work fine by cutting out the free promotion on upgrade, but as I meantioned earlier, it could get messy. I can see myself having a unit duplicated a lot of times if there are several possable promotions (armour/weapon/sheild/mount... etc)

So, can anybody think of a better way of doing it? If I wasn't very clear I can try to explain again - it's a tiny bit complicated.
 
Back
Top Bottom