• 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

Disabling options when allies are present

Annatar

Well-known member
I’m working on a game system where various armies now get a bonus special rule if they don’t take any allies.

I’m having a hard time figuring out how to achieve this. I’ve tried a couple of things, but I haven’t found anything that works yet.

The special rules are presumably best implemented as options, so that's what I've done.

It’s easy to determine that a unit is an ally, using a tag template like [ally.?].

But I need to find a way to get that information to the units/options that are NOT allies. What the best way to do that?

I thought a good way would be to have a script (prelink) to check for [ally.?] and then set a global tag, but scripts can't set global tags, so that doesn't seem to work.
 
Thanks, but that's not really the issue. Like I said above, it's easy for any unit to find out if it's an ally (ally.?) or not an ally (!ally.?), but the challenge was to let a non-allied unit find out that there are other units in the roster that are in fact allies.

Here's how I ended up doing it. It feels a bit kludgy, but it works, so I'm keeping it for now.

Added a global linkset ("is_ally"), which has a Live condition (ally.?) and includes an option ("ally") which includes an autotag ("mixed_army"), which is a global tag, and therefore visible to even the non-allies.
 
Back
Top