• 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

Increasing a unit count and the options selected count

harkan

Well-known member
Scenario:

A vehicle unit consisting of one to three vehicles (X), the user can either increase the count of X or add seperate vehicles depending on how they want to customise the vehicle upgrades, i.e. METHOD 1: if they select option A, B and C for every vehicle then all they need to do is add it to the first one and then increase the unit count OR METHOD 2: if they want one vehicle with A and B, another with A only and a third with A, B and C all they do is add seperate entries.

The prob is as follows - using method 1 when the unit count is increased the number of options does not increase, i.e. the display shows unit strength of three but only one of each option A, B and C instead of three of each one. The way it worked previously it did show the correct count of items however the cost display showed as zero but the overall cost was correct.

The increase in count of the item was achieved by a size script as follows:

@minimum=count[basic]
@maximum=count[basic]

which incremented the count of the item in line with the increment in unit size. However when the item and option were changed to display the correct cost, the overall unit cost then spiralled as follows (vehicle = 50 points and option A = 10 points):

one vehicle + one of option A = 60 points
two vehicles + two of option A = 140 points
three vehicles + three of option A = 240 points (each vehicle is now being counted as having three option A instead of three of them between the squad)

I couldn't see a way of changing it so that the correct number of option A were displayed for the unit and at the correct cost, i.e. three vehicles (each having one option A) + three of option A = 180 points ( 3 * (50 + 10))

Sooo, basically in a very long winded way is there a way to increase the unit count AND have the correct number of options showing for the squad as a whole AND have the correct cost??
 
Everything should be working correctly within AB, unless there's a bug we're not aware of. If there's a bug, then you'll need to send us some data files that demonstrate the problem. Be sure to include detailed instructions on how to reproduce the problem AND on where to find all of the involved entities and options within the data files.

Given your description, it sounds like this could be an issue of links with a type of "single" vs. "each". If an option is "single", then it will only be added once, regardless of the model count. If it's "each", it will be added once per model count. If you don't have this correctly specified, then you'll get the behavior that you describe below.

This could also be a misunderstanding of how things work. If an option is specified as "each", then the count of that option does NOT change with the model count. With "each", the option count shows how many for EACH model. Only the actual cost is multiplied by the model count. This is the desired behavior in numerous game systems when the options list configures the details for each model in the unit, and there are multiple identical models in the unit.

In your description below, you then start talking about "items". In the first two paragraphs, it's all about "options". So which is it? Are you mixing terms here? If so, I need this explained with accurate and consistent terminology so that can understand what you are trying to outline.

Before you again try outlining what you are actually doing, first tell me exactly how the game system rules work. It helps immensely if I understand what the game mechanics are that need to be achieved. Then outline how you are trying to solve it, clearly indicating which things are units, which are options, and which are items. At that point, I will hopefully be able to understand things enough to suggest a solution.

Providing example data files that demonstrate the problem is also quite helpful, although do NOT just send data files and expect us to figure things out (some have done this, so I have to point it out). If you send data files, be sure to include everything outlined above PLUS a detailed description of which units/options/items/linksets/tags/etc. are being utilized and where to find each of them in the data files.

Thanks, Rob

At 09:09 AM 12/15/2005, you wrote:

Scenario:

A vehicle unit consisting of one to three vehicles (X), the user can either increase the count of X or add seperate vehicles depending on how they want to customise the vehicle upgrades, i.e. METHOD 1: if they select option A, B and C for every vehicle then all they need to do is add it to the first one and then increase the unit count OR METHOD 2: if they want one vehicle with A and B, another with A only and a third with A, B and C all they do is add seperate entries.

The prob is as follows - using method 1 when the unit count is increased the number of options does not increase, i.e. the display shows unit strength of three but only one of each option A, B and C instead of three of each one. The way it worked previously it did show the correct count of items however the cost display showed as zero but the overall cost was correct.

The increase in count of the item was achieved by a size script as follows:

@minimum=count[basic]
@maximum=count[basic]

which incremented the count of the item in line with the increment in unit size. However when the item and option were changed to display the correct cost, the overall unit cost then spiralled as follows (vehicle = 50 points and option A = 10 points):

one vehicle + one of option A = 60 points
two vehicles + two of option A = 140 points
three vehicles + three of option A = 240 points (each vehicle is now being counted as having three option A instead of three of them between the squad)

I couldn't see a way of changing it so that the correct number of option A were displayed for the unit and at the correct cost, i.e. three vehicles (each having one option A) + three of option A = 180 points ( 3 * (50 + 10))

Sooo, basically in a very long winded way is there a way to increase the unit count AND have the correct number of options showing for the squad as a whole AND have the correct cost??
 
I am seeing a similar problem in my development of the Warmaster Ancients rules.

Select the Egyptian Army List.
Add a Leader, 80 pts.
Select Command Chariot Option, 10 pts.

At this point everything is correct, result is 90 pts.

Use +/- to add another leader.

At this point, we have 2 Leaders, One Command Chariot. The result should be 80 + 80 + 10 = 170 pts. Army Builder calculates 180 pts accounting for 2 command chariots.


I have changed the toggle for single on both the Leader option link and on the option itself. No combination appears to work.

I will export and upload the datafiles for your investigation. I do not see a way to attach them to this thread. I will reply to this thread once they are uploaded with the actual file names and location.
 
Forgot, I cannot upload .ab files. Sorry about that. I sent a separte email to support.wolflair.com.

Let me know what I can do to help.

Regards,

Todd
 
I found a way around this for me.

I changed the command chariot to an item. The calculation is performed corrected using the "Cost is Single?/yes" option on the link for the option.
 
Received an email response from W.L. Support. I messed up. The "cost is single" selection on the option from the unit link or from the option itself works correctly. My mistake.

Regards,

Todd
 
Back
Top