Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit


Thread Tools Display Modes
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,115

Old November 2nd, 2017, 12:47 PM
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?
TCArknight is offline   #1 Reply With Quote
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 12,675

Old November 2nd, 2017, 02:14 PM
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;
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.?,"|"] & ")"
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.
Mathias is offline   #2 Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 12:39 AM.

Powered by vBulletin® - Copyright ©2000 - 2020, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.