• 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

options limit

etthui

Member
Hi I want to set a limit for an option that cannot be selected more than twice in a roster.
I tried with the profile, and with exclusions, but the option can still be picked.
( with the profile, any unit picked up would get the message), and the exclusions only work for a squad, and not a roster.
Any help would be welcome !
 
Try using accrued tags, have a script on the option that tags the unit when it is selected

Then use a rule that counts the accrued tags and if under two then passes
 
Thanks for your answer, but I just need a"global" count, to display the total of the options selected of a roster, and not just some particlar options.

I am really new to AB, and I don't even know how to do what you suggested... The docs wasn't really hepful :(
 
It depends on how you want the user to be notified of breaking the limit.

Putting a global count would not be overly helpful as it does not give a lot of feedback to the user as it would rely on the user checking the roster statistics or some other way of feeding it back. Using a rule gives better feedback as it is immediate.

Have you looked at setting up accrued tags and looked at them in the doc?
 
Ok, I admit my defeat against Ab documentation, I surrender... It's getting a bit frustating, I admit.

So I've checked the docs on accrued tags, and I still don't understand how does it works. This is (i think) what I want to set for my options, but I still don't know how, an accrued tag on all roster's squad options to display for the user's information, and a rule with a 12,5% limit option of the total points of the roster.

And, I found a very non useful article on Verifying an Entity Only Exists in a Limited Number of Squads, it's a second rule that I have to setup, and after reading the article, and the related ones, I still don't know what to do. How do set up something like that. This article was souding great, but no example to show.

Any help would be great, I really don't know how to use army builder, and the docs isn't of any help.
 
An accrued tag is used to count how many times the tag shows up in a roster - you can use global tags but they have a far greater overhead for AB to work with, accrued are always better. An accrued tag can be counted up and that is what it is designed to do.

Try downloading the Bolt Action file - look in the def file at the tag group tgAGeneral (App - Accrued), this will show you how to set up an accrued tag group. then have a look at usaDat.dat at Lt Audie Murphy (usaMurphy).

He has an accrued tag added to him of tgMurphy

Have a look at the rules in usaDat.dat (rule called rlMurphy) - that shows you how to count up an accrued tag across the roster for a set limit, in this case limit of one

The other thing you can do is use merge rule - if you look at generalBADat.dat in the rules as any of the rules called rlLimit1 etc. These look for any unit that has one of these tags on them then merges them together to see how many there are - merge rules are very useful.

I've pm'd you as well
 
Many thanks for your help my friend! I will look at your data files and see how this works. I'll pm in last resort!
Thanks again !
 
Back
Top