• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Unit specific promotion set

Countbuffalo

Chieftain
Joined
Aug 16, 2013
Messages
94
Hi, I'm working on a mod project and I want to create some promotions that only the Unique Unit can get, I've finished my promotions, how would I ensure that only the Unique unit can get these promotions?
 
Give your UU a unique promotion, say PROMOTION_DUMMY, which states that "it can earn unique promotions" (for example). PROMOTION_DUMMY acts as a 'flag' or 'marker' (where it does nothing combat-wise), but can also have some effects itself (think in terms of the XML-tags). You then make sure all your unique promotions require a unit to already have PROMOTION_DUMMY, in the same way PROMOTION_SHOCK_2 requires a unit to already have PROMOTION_SHOCK_1 before it can be chosen.

EDIT: Make sure that you don't have the <CannotBeChosen>-tag set to true!
 
Oh yeah that's clever, didn't quite think of that. Cheers.
 
Back
Top Bottom