• 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

Model count question

UltraPrime

Well-known member
I'm making a unit that can have no more that 10 members. The unit can be a mix of foot and mounted. I've got the rule in place that caps it at 10, but a mounted model should only count as 1, not 2. How can I get AB to ignore the mount?
 
Hello,

I don't understand the error you get:
- You reach the unit model count limit with for example 6 footers and 2 riders (e.g 8 people, 2mounts)
- The roster model count is false because of the mounts but there is no issue with the unit (e.g you can have 6 footers and 4 riders on the unit, but the roster model count is 14)

Would you search for the model count option:
On the Others Details window, (AB Creator, Unit tab, there is an EDIT button near an empty area under the size fields, then browse the fields on the listbox to find 'Model Count')set the model count to 0.



The solution will depend on the way you did program the limitation to 10 members. I will need more details of the unitsm the way you add mounts... to give you a usefull answer.



A solution I would use if I had to start from scratch
Create a group called mountNB with tags 1,2,3,4,5,6,7,8,9,10.
In the unit size maximum, you should have 10.
Then, an option would add the right number of mount linked to the 'selection' tagof the option :
- Child type: Linked
- Child Entity: <HORSE>
- Eval script:
var val as number
var mountTag as string
mountTag = "mountNB." & selection
val = unit.assignstr[mountTag]
- Size script:
@minimum=tagvalue[mountTag.?]
@minimum=tagvalue[mountTag.?]

mount:
On the Others Details window, (AB Creator, Unit tab, there is an EDIT button near an empty area under the size fields, then browse the fields on the listbox to find 'Model Count')set the model count to 0.

The result will be a unit with the rider/footer profile and the right number of mount childs.
There is no need to get a rule with this behavior and the model number remain valid.

Garfunkel
 
I'll try to be a bit more clear.

I have a unit which starts off with nothing in it. All members are an option. The options will either be a foot unit or a mounted unit, as you can mix the two. The mounted unit will be a unit with child unit mount.

The rule I have setup is:

var total as number
var ok as number

total = entity.count[recurse] - 2
ok = 10

if (total < ok) then
@valid = 1
endif

The mounts are being counted, even when I set it's count to 0.
 
I can see two ways around your problem; don't know which you prefer...

The first is to create an Exclusion Id in the definition file with a Max Allowed of 10, and then setting the usage of that group to # (which indicates that the count of the child unit is used).

The other way I can think of, is to mark the troopers on foot and those mounted as effective, but not the mounts. This is done similarly to setting the count to 0. Then you modify the total variable to be determined by:

total = entity.count[effective]

hope this helps
 
I spoke too soon..... now it is not adding up the cost of the Effective units. I'm probably missing something simple here.
 
Back
Top