Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Army Builder Forums > Army Builder

Notices

Reply
 
Thread Tools Display Modes
Homer S
Senior Member
Volunteer Data File Author
 
Join Date: Apr 2009
Posts: 134

Old June 10th, 2010, 02:07 PM
Is it possible to remove options based on either tags or other options?

The case is

When Option A is selected Tag One is assigned
When Option B is selected Tag Two is assigned
Options A & B are Exclusion 11 (so one is required, the other is disabled)

Option C is auto and live with Tag One and not Tag Two
Option D is user selectable and live with Tag One and not Tag Two

If A and D are selected and the user deselects A to select B, Option C disappears but Option D remains and flags a validation error.

I'd like deselecting A to remove the selection of Option D.

Homer

The only "hobby" GW is interested in is lining their pockets with your money.

Last edited by Homer S; June 10th, 2010 at 03:32 PM.
Homer S is offline   #1 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old June 17th, 2010, 12:32 PM
You should be able to do a "parent.option[id].selection = 0" in an option eval script to have one option deselect another. (You can't do this in a pre-link or post-link script on a unit or item, only on a script on an option.)

Alternatively you can use "parent.option[id].kill = 1" to make an option disappear entirely, as if it failed its live test.
Colen is offline   #2 Reply With Quote
Reply

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 04:34 AM.


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