• 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

Child in other composition group

Got this (other) problem in ABv3:

A unit is in a certain composition group ("characters" in this case).
I can mount it on an elephant. But the elephant has to be in the composition group "Special" and NOT in the composition group "characters".
I managed to add them in both composition groups through their composition tags. But the cost of the elephant is somehow added to the character (and thus to the caracter composition group). I can't seem to prevent the costs being added to the character.

Could you help?

greetings,

Richard
 
This is something that has to be handled within the Profile. It sounds like you are simply grabbing the total cost for the top-level unit as the value being accrued. This total cost includes all children. Since you want to include the Elephants in a separate profile, you need to make sure that you tally up the cost of EVERY unit (not just top-level) and you have to tally up the unit cost MINUS the cost of all child units. Tallying up every unit ensures that the elephants (as a child) will properly be tallied for the "Special" composition group. Since you can access the child unit cost separately, subtracting out the child unit cost from the total unit cost is easily accomplished within your script.

Hope this helps,
Rob

At 08:41 AM 4/5/2006, you wrote:

Got this (other) problem in ABv3:

A unit is in a certain composition group ("characters" in this case).
I can mount it on an elephant. But the elephant has to be in the composition group "Special" and NOT in the composition group "characters".
I managed to add them in both composition groups through their composition tags. But the cost of the elephant is somehow added to the character (and thus to the caracter composition group). I can't seem to prevent the costs being added to the character.

Could you help?

greetings,

Richard
 
Back
Top