• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Ally Mechanism and Unit Filtering

Homer S

Well-known member
OK,

So how does a unit get filtered for selection via the ally mechanism?

It appears that only units native to the race are showing up. Note that once added to the roster units receive a non-global tag, ally.<race>, so that cannot be used for selection. Tagging the unit with a roster.<race> tag does not work, although it does work for tagging them with the new race for selection when it is the parent race.

Homer
 
The ally mechanism is in the def file in the races section, add the race name/tag to the Allies list on that page (I think off top of head)

thanks
 
Thanks,

The issue is how to dynamically assign a tag to a unit to get it in the filter. So for instance:

Unit A is native to Race 1. I can use a .ext file to make Unit A a member of roster.Race 2 and when you create a Race 2 roster, it shows up for selection. If you create a Race 3 roster which is defined to have Race 2 as an ally in the def file, it does not show up in the list for allied Race 2.

So, is ally selection based on roster.Race 2 or race.Race 2 or some other thing?

Homer
 
Thanks,

The issue is how to dynamically assign a tag to a unit to get it in the filter. So for instance:

Unit A is native to Race 1. I can use a .ext file to make Unit A a member of roster.Race 2 and when you create a Race 2 roster, it shows up for selection. If you create a Race 3 roster which is defined to have Race 2 as an ally in the def file, it does not show up in the list for allied Race 2.

So, is ally selection based on roster.Race 2 or race.Race 2 or some other thing?

Homer
UPDATE: OK, I think I might have this knocked. The key is this: { roster.{Race 2} | (roster.{Race 3} & ruleset.ro_AllyBB) } as the conditional. This lets the Race 1 unit show in Race 2 and in Race 2 as allies with Race 3. Now I just have to fix the " (IA)" when taken in Race 3, not allied. That should be trivial.

Homer
 
Back
Top