negating race restrictions

Is there a tag to exclude race like
    

<Prereq>
   <Type>RestrictedRace</Type>
   <Attribute>Race_Type_myRace</Attribute>
</Prereq>

or any workaround to negate race restrictions?


I want to exchange weapons unlocked by tech for a specific race only.

It is no problem to give equip only to a specific race with use of

<Prereq>
   <Type>Race</Type>
   <Attribute>Race_Type_myRace</Attribute>
</Prereq>


The problem comes when I tried to disable the normal weapons.

Example: The Dagger available from the tech "Weaponry"

Method: Copy the "Dagger"-entry in coreWeapons.xml and insert
        <Prereq>
            <Type>RestrictedAbilityBonusOption</Type>
            <Attribute>SpecialWeapons</Attribute>
            <Target>Player</Target>
        </Prereq>

Works fine, if "SpecialWeapons" is added to a kingdom (the RaceConfig) BUT...
SpecialWeapons is a race ability and stored within the sovereign-definition und there the game will not recognize it.

Every designed kingdom based on myRace should see the new weapon instead of the normal Dagger.

From my experience with the game mechanics it is necessary to link the weapons with the Race_Type to archieve this.

 

Or is there another way to do it?

3,529 views 4 replies
Reply #1 Top

Other than the obvious - give every faction of your race a special faction trait - I can't really help you.

Reply #2 Top

Thanks for the quick answer.

 

When I use your method, this trait will be selectable for all factions not only for those based on my specific race. Like the way the trait "GreatHammers" work.

I do not want people have to edit the RaceConfig.xml. It should work automaticly when using the race editor: Design a faction from myRace --> grants special weapons instead of the normal ones.

 

What if I change the techtree and replace "Weaponry" with my own one. Then all normal weapons will not show up and I can link my new weapons to the new tech. Bingo!

But then all other tech with the requirement "Weaponry" will not show up, or?

Reply #3 Top

Correct.

Reply #4 Top

Note for developers: It would be nice to have a tag

<ReplacedTechReq>techname</ReplacedTechReq>

in one of the coming patches.

:grin:

 

Back to topic.

I created a ability for zero cration points named "IsRace_MyRace" that have to be selected by anyone, creating a faction based on myRace and given a text advise not to select it for other races.

 

Not nice but a workaround.