• 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

How to make user select one of several options only?

Mettius

Well-known member
I'm a bit stumped on this. (Just getting started with Data file authoring).

For a given unit, I've defined several options from a particular category. I want the user to be required to select zero or one of the two options for this unit.

For example, unit is "Mama"
Option 1 - Big Mama : 10 pts
Option 2 - Bigger Mama : 20 pts

I only want one (or none) of the Option 1 or 2 to be selectable. How does one do this?
 
Last edited:
Set up an exclusion in your def file so that it runs zero to one, link the exlcusion to all of the options they have to choose from that are limited - that will ensure the user only selects up to one.

If you want the user to choose at least one of the options then create an exclusion that runs from one to x where x is the upper limit of how many they can choose
 
Sorry to be daft, but how do I link the Exclusion Group to the option?
I've created the exclusion group in an Augmentation file but don't see how to link this. (I've already recompiled w/o error).

It looks like the answer is an exclusion reference, yet for the life of me I can't figure out how to make one. :)

**Update: I figured it out... The exclusion group list for the option link was coming up empty. Some combination of closing and reopening/compiling the def, dat, and aug files caused the exclusion group to appear. I'm not sure exactly what action caused the exclusion groups to "appear".
 
Last edited:
When you make a change in another file like the def or an aug then you need to reload the dat file to pick up on the changes
 
Back
Top