Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   Army Builder (http://forums.wolflair.com/forumdisplay.php?f=16)
-   -   Remainder while using an effective child (http://forums.wolflair.com/showthread.php?t=6265)

retaf33c June 1st, 2006 05:41 AM

Remainder while using an effective child
 
I have one unit with a minimum size of 4 with a unit champion for a total of 5 in the unit. The parent unit with a champion as a child are equiped with the same default weapon. Up to 5 models in the squad are allowed a weapon upgrade. I've set the option for the default weapon using remainder and identified the champion as effective so as to be included in the model count.

The problem is that the effective count doesn't appear to be used when calculating the remainder. The weapon count shows 4 instead of 5. Then when selecting the weapon upgrade I can only upgrade the 4 models in the parent unit.

How do I include the unit champion in the upgrade. The problem gets even more difficult in that the unit is allowed up to 5 unit champions and it is possible to give just the unit champions the weapon upgrade.

rob June 6th, 2006 04:30 AM

Remainder while using an effective child
 
As you've discovered, there is a critical distinction between the normal model count and the EFFECTIVE model count. The two are not the same. If you are using a remainder option, it is based on the exclusion usage and NOT model counts, per se. You need to have the exclusion usage get tallied up properly to enforce the exclusion limit the way you want it.

If I understand you correctly, the solution is similar to the question on resource pools you also posed. The trick is to assign each of the child units an exclusion reference equal to their model count towards the exclusion group you're using to track the upgrade limit. If you do this, then each of the champions will count an extra "1" towards the exclusion usage.

This assumes the champion always counts as an "upgrade". If the champion have the OPTION of upgrading, then the above approach won't work. In this situation, the upgrade option would be on the child unit, so there is no way of automatically propogating that upwards. If this is the case, you'll need to be a bit more sneaky. The trick is to use a private unit stat on the parent unit that sets the upgrade limit. Then have your exclusion group use the stat value as its maximum limit. The upgrade option on child units will then need to subtract one from the stat on the parent unit. If the option is selected on the parent unit, it will have no parent, so the subtraction won't be performed (assuming you setup the transitions properly). The net result is a hybrid solution that uses exclusions AND a modified private unit stat to achieve the desired goal.

Hope this helps,
Rob


At 06:41 AM 6/1/2006, you wrote:

Quote:

I have one unit with a minimum size of 4 with a unit champion for a total of 5 in the unit. The parent unit with a champion as a child are equiped with the same default weapon. Up to 5 models in the squad are allowed a weapon upgrade. I've set the option for the default weapon using remainder and identified the champion as effective so as to be included in the model count.

The problem is that the effective count doesn't appear to be used when calculating the remainder. The weapon count shows 4 instead of 5. Then when selecting the weapon upgrade I can only upgrade the 4 models in the parent unit.

How do I include the unit champion in the upgrade. The problem gets even more difficult in that the unit is allowed up to 5 unit champions and it is possible to give just the unit champions the weapon upgrade.

retaf33c June 6th, 2006 07:52 PM

Rob, thanks, I think that will work. That actually was the next thing I was going to try. But to clearify, below is a sample:

4 Soldiers @ [170] Pts
Constrictor Rifle (x4); Soldiers Champion; Soldier Champion
4 Constrictor Rifle @ [0] Pts
1 Soldier Champion @ [45] Pts
1 Constrictor Rifle @ [0] Pts
1 Soldier Champion @ [45] Pts
1 Constrictor Rifle @ [0] Pts

The Soldier Champions are childs to the Soldier parent.

I can add 4 more soldiers and upgrade 3 of them to Soldier Champions (total squad size is 5 soldiers and 5 champions)

I can upgrade any Constrictor Rifle to a cannon for a max of 5. I have the cannons member of two exclusion groups one it shares with the rifle (set as remainder for that group) with a max of # and the other with a max of 5.

If I understand you right, the group with max 5 should be a unit stat with max set to 5 that I can decrement in a postlink script each time I upgrade a champion.

I certainly like this over what I was trying to do.

retaf33c June 6th, 2006 08:06 PM

Rob, it worked perfectly. I'm embarrassed how much time I spent on this problem and the solution was so simple. I was able to test it out in just under 2 minutes. Thanks again!


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

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