Making Trait restrictions Part 2!

Even MOAR fun with more inconsistency, no-support and trolling!

So, I made a mercenary trait, that is great.

 

https://forums.elementalgame.com/444056/page/1/#3354953

 

 

Now, I want to add exclusive traits for the mercenary trait in unit design. This means only when a unit has mercenary trait, those traits would appear and the player can select them. Except, of course, it seems not that easy to get them working.

 

I tried to do with this...

 

<Prereq>
<Type>AbilityBonusOption</Type>
<Target>Unit</Target>
<Attribute>Mercenary</Attribute>
</Prereq>

 

Obviously with abilitybonustype as Unit Design. But this prereq does not work...The trait simply does not show up no matter what. Any ideas?

7,358 views 3 replies
Reply #1 Top

Unit design window does not support this type of dynamic blocking/unlocking of traits, as far as I know.

 

Reply #2 Top

As I addressed in the other thread, you need to use a seperate model type and utilize the male, female, other to accomplish this feat. The only other way to accomplish this, without stardock adding another other, is to create these special mercenary units for people to create and then it will support turning on and off these traits by doing specifically the SupportedUnitModelType tag.

Heavenfall is correct that what you are asking is not currently possible within the current system.

The best alternative is to have the units choose 1 of a set of traits (think radio buttons), namely you can have either mercenary, or this or this, or this, but not together.

Reply #3 Top

Thank you for the answers.

 

I thought about adding separate model type indeed, but it will be rather untidy.....