Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   Army Builder (http://forums.wolflair.com/forumdisplay.php?f=16)
-   -   Model counts limited to a roster scoped tag (http://forums.wolflair.com/showthread.php?t=49557)

BGKenney June 2nd, 2014 06:53 AM

Model counts limited to a roster scoped tag

Working away on the new book for Warmachine. I'm trying to write a rule that is scoped to unit and limited to that unit's id. The model count for that unit needs to be limited to the number of warjacks in the roster +1.

I thought this would work, but it's not picking up the tagcount...any suggestions?

var jacks as number

jacks = (roster.tagcount[cmpgrp.warjack]) + 1
if (count[model] <= jacks) then
@valid = 1


thebutcher June 2nd, 2014 07:48 PM

That was me...
Ok, been away from the board for a while and couldn't remember my password...got that sorted out.

But, yeah. Can't figure out what's up with that script. I thought I could get to the roster.tagcount from within a unit scope rule?

Anywho...working on the Cryx units in Vengeance tonight...thanks!

The Butcher

jlong05 June 4th, 2014 05:52 AM

Welcome back thebutcher. Glad to see you haven't disappeared permanently.

Harkan_again June 5th, 2014 10:19 AM

Is the tag group cmpgrp.warjack global or accrued?

thebutcher June 5th, 2014 01:43 PM


Originally Posted by Harkan_again (Post 184820)
Is the tag group cmpgrp.warjack global or accrued?

It is Accrued.

Harkan_again June 7th, 2014 03:35 PM

Odd ... have you tried putting that script into the Postlink section of the unit but changing the unit name to the tagcount (and stating the obvious sorry - removing the @valid=1 bit

That should at least give you an idea of what is being returned on the tagcount and may give you an indication where the fault lies. I've had a similar issue in the past where it was the tag not being properly assigned - it took a while but using the "Show all tags for unit" helped as well

The other obvious (sorry again!!) thing to ask is are there any Jacks in the roster you are using to test and how do they have tags assigned - are they scripted to add to the Jacks or are they "native" in the unit build in ABCreator??

thebutcher June 8th, 2014 09:38 AM

Got it!
I switched the focus from roster.tagcount[cmpgrp.warjack]
to overall.tagcount[cmpgrp.warjack]

And it works like a charm!
Thanks for the help out, Harkan!


All times are GMT -8. The time now is 09:53 AM.

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