Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   Army Builder (http://forums.wolflair.com/forumdisplay.php?f=16)
-   -   Unit Size Determines Upper Range Attrib? (http://forums.wolflair.com/showthread.php?t=13831)

Decurion August 25th, 2011 03:25 PM

Unit Size Determines Upper Range Attrib?
 
I have a unit that I need to allow 50% to take a specific option (e.g. 50% of the unit may take bows).

I found some old posts from 2003, but they were using AB 2 (I think).

Any suggestions on how to do this?

Tim

Garfunkel August 29th, 2011 01:10 AM

Hello,

1. Create a unitstat with is set to #/2 by script.
2. Create an exclusion group limited by a @unitstat.
3. Each option you need to be limited uses 1 on this exclusion group

Or

1. Create an exclusion group limited by #
2. Each option uses 2 on this exclusion group.

Note the second solution is easyer to implement, but it round down your division by 2.

If you need details on the implementation, just ask :)

Hope that help.

Frédéric

Decurion August 31st, 2011 10:59 AM

Frédéric,

Thanks much! I used the second option and it works great.

Thank you again.

Tim

Quote:

Originally Posted by Garfunkel (Post 61628)
Hello,

1. Create a unitstat with is set to #/2 by script.
2. Create an exclusion group limited by a @unitstat.
3. Each option you need to be limited uses 1 on this exclusion group

Or

1. Create an exclusion group limited by #
2. Each option uses 2 on this exclusion group.

Note the second solution is easyer to implement, but it round down your division by 2.

If you need details on the implementation, just ask :)

Hope that help.

Frédéric



All times are GMT -8. The time now is 07:37 PM.

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