Hmmmm. What if you assigned every ancillary a unique power of two as a code number (1, 2, 4, 8, 16 . . .), and then had it give an Electability bonus equal to that number? You would then have a finite number of possibilities for the Electability attribute for a possessor of the ancillary.Originally Posted by Malrubius
For instance, say we wanted to check five ancillaries as part of trigger conditions. We assigned them respective powers of two from 2^0 to 2^4. Now, if we want to check whether a general has ancillary #3 (with code number 4), we check if his Electability is equal to 4, 5, 6, 7, 12, 13, 14, 15, 20, 21, 22, 23, 28, 29, 30, or 31. If it's equal to any of those numbers, he has the ancillary; if not, he doesn't. Of course, the number of possibilities will increase exponentially as we increase the number of ancillaries we want to test for, but there's no limit to triggers, so no worries there. We'd just need to make a simple program to generate them.
*adds another notch to his List of Stuff I've Probably Helped EB Out with Without Having to Do a Damned Thing, a list quite a lot longer than the List of Stuff I've Helped EB Out with by Actually Doing Something*
Bookmarks