View Single Post
Homer S
Senior Member
Volunteer Data File Author
 
Join Date: Apr 2009
Posts: 134

Old May 22nd, 2013, 03:13 AM
Quote:
Originally Posted by Homer S View Post
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

The only "hobby" GW is interested in is lining their pockets with your money.
Homer S is offline   #4 Reply With Quote