Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   Army Builder (http://forums.wolflair.com/forumdisplay.php?f=16)
-   -   Validate roster by points % (http://forums.wolflair.com/showthread.php?t=63929)

khrk2012 February 23rd, 2020 10:26 AM

Validate roster by points %
 
I am confused on where to enter and what to enter. The only validation is that one group of 'Personality Points not exceed 50% of the roster army points total.

How can I achieve this? I can find no examples in the AB files - and maybe I do not know where to look.....

AB 3.+

Homer S March 10th, 2020 04:34 PM

I think what you might want is this:

Create a stat something like persPts with the accumulated option set.
Create a rule something like

var persRatio as number

persRatio = roster.stat[persPts]/roster.usersize

if (persRatio <= 0.5) then
@valid = 1
else
@valid = 0
endif

Homer


All times are GMT -8. The time now is 09:56 PM.

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