• 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

Is it possible to overwrite a profile in a definition file?

  • Thread starter Thread starter hakujin_grande at yahoo.c
  • Start date Start date
H

hakujin_grande at yahoo.c

Guest
I'm trying to implement the Space Wolves in AB3. As you might know,
the Space Wolves don't use the standard HQ composition of 1-2 as set
in the Profiles of the warhammed40k.def file. Instead they use 1 HQ
for every 750 points in the army or fraction thereof for any scenario,
i.e. they use 1 HQ for up to 750 points, 2 HQ for 751 - 1500, 3 HQ for
1501 - 2250, etc.

Is there a way to override the hq profile in an external file, or must
the scripts be modified in the definition file?

Also, I'm a novice datafile editor, would the following Minmax script
achieve my desired results?

@maxvalue = round(roster.activesize / 750,0,1)
@minvalue = round(roster.activesize / 750,0,1)
 
You can simply define a separate set of profiles for the Space Wolves and
use those instead of the set that is used by all the other armies. You can
define your new profiles in a separate file, just like I'm sure you have
the Space Wolves units in a separate data file. Just put the profiles and
the race record in their own augmentation files (e.g. "spacewolves.aug").

The script logic looks like it ought to work nicely. However, the value
you're using is going to cause confusion for most users. I understand that
you're being careful to use the activesize to handle the case where the
user creates a roster of unlimited size. But that will be confusing for
users who have created a roster of a specific size (e.g. 2000 points). So
you're best bet is to first determine which value to use and then calculate
the min/max values based on the proper value.

For example, consider the following script code:

var size as number
size = roster.usersize
if (size >= 999999) then
size = roster.activesize
endif
@minvalue = round(size / 750,0,1)
@maxvalue = @minvalue

This will yield the results you want, yet it will also cleanly handle the
case of a fixed size or unlimited size roster.

Hope this helps,
Rob

At 03:56 AM 2/1/2005 +0000, you wrote:
>I'm trying to implement the Space Wolves in AB3. As you might know,
>the Space Wolves don't use the standard HQ composition of 1-2 as set
>in the Profiles of the warhammed40k.def file. Instead they use 1 HQ
>for every 750 points in the army or fraction thereof for any scenario,
>i.e. they use 1 HQ for up to 750 points, 2 HQ for 751 - 1500, 3 HQ for
>1501 - 2250, etc.
>
>Is there a way to override the hq profile in an external file, or must
>the scripts be modified in the definition file?
>
>Also, I'm a novice datafile editor, would the following Minmax script
>achieve my desired results?
>
>@maxvalue = round(roster.activesize / 750,0,1)
>@minvalue = round(roster.activesize / 750,0,1)


---------------------------------------------------------------------------
Rob Bowes (rob@wolflair.com) (650) 588-8252
Lone Wolf Development www.wolflair.com
 
Back
Top