I've been racking my brain, trying to figure out why this isn't working, so I thought I'd open it up to the minds out there.
I'm using the editor that Kael made to create FFH, but for a mod that is more closely similar to the Charlemagne scenario from BtS. Actually, I've stripped the Charlemagne scenario of all its Python scripts, so I'm using the base XML that came with it, but have completely rewritten the Civilizations, Leaders, added a new Academy building, and new promotions.
Everything is working fine, except the promotions I've entered. My idea was to have unique promotions available to the 10 different civilizations I've made. Each civ can build a special academy building unique to its own civ, which will give all new units a free starting promotion. These promotions can only be achieved through this method.
I followed the Doctrine Only method I'd noticed in Total Realism. Basically, there is a promotion called DOCTRINE_ONLY which is available to NO UnitCombats so that no unit can ever achieve it. The construction of the academy will give a unit (let's say a Pyrean Warrior) a free Pyrean I promotion, whose prereq promo is Doctrine_Only. This means that Pyrean I cannot be achieved except through the presence of a Pyrean Academy. This part works fine (after some debugging).
The problem is, when this Pyrean Warrior gets enough experience, it should be able to upgrade to the Pyrean II promotion (which is dependent only on having Pyrean I already). But instead, the unit only has access to the other promotions it would normally have (ie. combat1, shock1, etc).
Is there something I have forgotten to do or overlooked? Or is this example so convoluted in itself that only through looking through the code will the answer become evident? I've looked through several times, and am pretty confident Kael's Editor I'm using isn't making any mistakes (I did go through several of the VisualBasic code for the Editor, to ensure that there's no FFH factors playing into my non-FFH mod).
Any ideas/comments?
I'm using the editor that Kael made to create FFH, but for a mod that is more closely similar to the Charlemagne scenario from BtS. Actually, I've stripped the Charlemagne scenario of all its Python scripts, so I'm using the base XML that came with it, but have completely rewritten the Civilizations, Leaders, added a new Academy building, and new promotions.
Everything is working fine, except the promotions I've entered. My idea was to have unique promotions available to the 10 different civilizations I've made. Each civ can build a special academy building unique to its own civ, which will give all new units a free starting promotion. These promotions can only be achieved through this method.
I followed the Doctrine Only method I'd noticed in Total Realism. Basically, there is a promotion called DOCTRINE_ONLY which is available to NO UnitCombats so that no unit can ever achieve it. The construction of the academy will give a unit (let's say a Pyrean Warrior) a free Pyrean I promotion, whose prereq promo is Doctrine_Only. This means that Pyrean I cannot be achieved except through the presence of a Pyrean Academy. This part works fine (after some debugging).
The problem is, when this Pyrean Warrior gets enough experience, it should be able to upgrade to the Pyrean II promotion (which is dependent only on having Pyrean I already). But instead, the unit only has access to the other promotions it would normally have (ie. combat1, shock1, etc).
Is there something I have forgotten to do or overlooked? Or is this example so convoluted in itself that only through looking through the code will the answer become evident? I've looked through several times, and am pretty confident Kael's Editor I'm using isn't making any mistakes (I did go through several of the VisualBasic code for the Editor, to ensure that there's no FFH factors playing into my non-FFH mod).
Any ideas/comments?