wotan321
Feb 04, 2008, 10:11 AM
How does that PROMOTION_LEADERSHIP work in the Champion event?
I want an event that cannot be gained EXCEPT in an event, or given through a building. Where in the civ4promotioninfos.xml file can you control if its available?
Thanks.
Gaius Octavius
Feb 04, 2008, 12:28 PM
The leadership promotion is actually available another way... you can get it through a Great General. ;)
What you want to do is create a dummy promotion that is not available to any unit class as a prereq. Then you create your new promotion and set its prereq to the dummy promotion. I did this in my Lost Wonders mod with Leonardo's Workshop: it gives all units built in that city an upgrade bonus through a promotion.
wotan321
Feb 04, 2008, 07:28 PM
So what does the
<bLeader>1</bLeader>
tag do? I see it in the PROMOTION_LEADER promotion, but that promotion does not show up.
Dom Pedro II
Feb 04, 2008, 08:55 PM
I've included a tag that prevents a promotion from being acquired through experience... it's to be released in an upcoming modcomp.
Dom Pedro II
Feb 05, 2008, 11:05 AM
Well, it depends... it can be given through buildings, traits, events, etc. It doesn't block ALL promotions from being acquired through experience... just the ones you choose.
So let's just say that you want all the leaders with the Aggressive trait to get a special promotion that increases the gold amount from pillaging and call it Raider or something like that, but you don't want anybody else to be able to get it. You simply set the tag blocking the promotion from being acquired from experience to true in the XML and you're good to go.
jefmart1
Feb 05, 2008, 12:00 PM
Could it be set so it could only be purchased in a city with a specific building?
For example, a reactive armor upgrade for a tank. It would require a "tank plant" and cost 250 gold.
Dom Pedro II
Feb 05, 2008, 04:56 PM
Could it be set so it could only be purchased in a city with a specific building?
For example, a reactive armor upgrade for a tank. It would require a "tank plant" and cost 250 gold.
The short answer is no. The long answer is that's exactly where I'm going with it. The problem is that it will require interface coding in python which I'm not terribly familiar with. Doing what you suggest, however, is the long-term goal.