• 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

Validate roster by points %

khrk2012

Active member
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.+
 
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
 
Back
Top