• 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

Excluding multiple selections from choices?

TCArknight

Well-known member
Howdy all!

Just wondering if anyone has come up with a good script/procedure to exclude previously chosen selections from subsequent choosers?

For ex. - I have three choosers expressions: usrCandid1, usrCandid2, usrCandid3. All three give the choice of component.X.

If usrChosen1 = A, then usrCandid2 and usrCandid3 should include !thingid.A
If usrChosen2 then = D, usrCandid3 should then include !thingid.D as well.

Does that make sense?
TC
 
Our normal handling for this is to use an eval rule to complain if the user selects the same thing more than once, but excluding them is possible, too;
Code:
field[usrCandid1].text = "a tag expression"

field[usrCandid2].text = "a different tag expression"
if (field[usrChosen1].ischosen <> 0) then
     field[usrCandid2].text &= " & !(" & field[usrChosen1].chosen.tagids[thingid.?,"|"] & ")"
     endif
I'd just be worried about what kind of weird situations the user might run into if they changed their mind about what selections were made on these selectors, and tried to change them, and ran into situations where there's things missing because of the way it's trying to control the selections. That's the main reason we generally use eval rules to verify these, instead of controlling the list of what can be chosen from - to avoid having to worry about that.
 
Back
Top