2 Questions on UnitPromotions.xml file

rarmonio8920

Chieftain
Joined
Oct 15, 2008
Messages
28
Hi guys, I have two quick questions on unit promotions.

1.) <PromotionPreReq> vs. <PromotionPreReqOr1>, <PromotionPreReqOr2>, etc.
Does <PromotionPreReq> mean that it is a REQUIRED Prerequisite promotion, while <PromotionPreReqOr1> and <PromotionPreReqOr2> mean that you can use the PreReqOr1 OR PreReqOr2 as a Prerequisite promotion? None of the Promotions in the game use the <PromotionPreReq> tag.

2.) What does <OrderPriority> do?
 
Hi guys, I have two quick questions on unit promotions.

1.) <PromotionPreReq> vs. <PromotionPreReqOr1>, <PromotionPreReqOr2>, etc.
Does <PromotionPreReq> mean that it is a REQUIRED Prerequisite promotion, while <PromotionPreReqOr1> and <PromotionPreReqOr2> mean that you can use the PreReqOr1 OR PreReqOr2 as a Prerequisite promotion? None of the Promotions in the game use the <PromotionPreReq> tag.

2.) What does <OrderPriority> do?

1. I believe this is correct. I would stick to using PrereqOr.
2. This orders the promotions when promoting a unit. I believe Heal Instantly is the only one that is different from the others, because that shows up before the others.
 
1. I believe this is correct. I would stick to using PrereqOr.
2. This orders the promotions when promoting a unit. I believe Heal Instantly is the only one that is different from the others, because that shows up before the others.

I'm having some difficulty with selecting certain promotions and I think it has to do with OrderPriority.

They all show up in the Civilopedia, but when promotion time comes... only some of them appear, and I'm noticing that they're my "entry-level" or "tier 1" promotions. I created A LOT of them, and can only think to tinker with the OrderPriority.
 
I'm having some difficulty with selecting certain promotions and I think it has to do with OrderPriority.

They all show up in the Civilopedia, but when promotion time comes... only some of them appear, and I'm noticing that they're my "entry-level" or "tier 1" promotions. I created A LOT of them, and can only think to tinker with the OrderPriority.

Post code, please. Use the
Code:
 tags.
 
I created A LOT of them, and can only think to tinker with the OrderPriority.

If "A LOT" is more than ~60, then that's the problem; the game only allows for a limited number of promotions, and the base game takes up most of that room. Mods, DLCs, etc. can only add a grand total of about 60 promotions, and anything beyond that is ignored entirely. So if your "entry level" ones are the first ones you list, then those'll be kept and the later ones dropped.
 
Okay, I figured it out! Thanks for some of your advice!

I made an entry-level promotion that I'll refer to as "Promotion A" (with a CannotBeChosen tag) to act as a gateway promotion to all my unique units and gave it to them as a free promotion. For some reason, all the immediate promotions (Promotion A's "children") could not be selected, yet the "children's children" COULD. I just added a promotion before my entry-level promotion and set that to being the one which could not be chosen. No idea why the engine ran the way it did, but everything's working like I wanted it to.

As far as Promotion Prerequisites are concerned, is it possible to have two MANDATORY prerequisites? Or does the current XML only allow for PreReq1 OR PreReq2, etc.?

As in, Promotion A needs Promotion B AND Promotion C as prerequisites, rather than Promotion B OR C?
 
Back
Top Bottom