• 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

Settra problem

dgirolamo

Member
The Tomb Kings data file does not function properly with regards to fielding Settra the Imperisable. The rule shows in the data file notes, but does not calculate. The rule is:

An army including Settra must be comprised of at least 50% of Heavy Cavalry, Chariots, and Tomb Guards.

What is the status of this bug? I have written to the datafile author and have not received a reply. I have also gone to the AB40K Maintainers website, which has no categories for WH6, a search for Chaos or Tomb Kings yields nothing but 40K races.
 
hi, this seems to be working fine? can you give me an example of a roster which this rule doesnt work with?
 
Settra Test

As I have tried several times before, I have created a roster that does not include a single unit of either;

- Heavy Horseman
- Chariots
- Tomb Guards

When fielding Settra, half of your army must consist of these three units above. According to that rule, this roster would be out of compliance and would show an !! in the red diamond. On my PC this symbol does not show and when I hit the rule validation, there is no error shown. I would love for this to be an easy fix, but I don't see how. I have rebooted, and tried it with several new rosters.

Help!!
 
This should actually be fairly easy as you can give setra a helper tag...Then write a rule that invalidates only when this tag is present...

var tot as number
var com as number
if (tagexpr[roster.size999999] = 1) then
com = cost[total]
else
com = usersize
endif

tot = statcalc[setra]

if (tagcount[helper.setra] > 0) then
if (com > tot * 2) then
@valid = 0
endif
else
@valid = 1
endif

Then you need to write a stat calc named "setra";
var tot1 as number
var tot2 as number
var tot3 as number

if (isunit[tombgaurd] > 0) then
tot1 = this.cost[unit]
elseif (isunit[chariot] > 0) then
tot2 = this.cost[unit]
elseif (isunit[heavycav] > 0) then
tot3 = this.cost[unit]
endif
@value = tot1 + tot2 + tot3

This scritp can probably be pared down, and the actual unit IDs are probably wrong but this mostly just a basis for the scripts...Oh, and I might be wrong on the statcalc script..."this.cost[unit]" might need to be something else but I just threw it together quickly...
 
I don't mean to sound disrespectful, but I don't know what to do with this script. I would think that the datafile author should release a bug fix to solve this.
 
ah! i see the problem, there is an error when you are not using a points limit (if you tell armybuilder to impose a 3000 point limit you get the error). i will fix this right now.

thanks :-)
 
OK. I didn't try it that way. I have tested, and if you specify a point limit, the rule works perfectly. However, it should work for unlimited points. Thanks for agreeing to fix it. Looks like this is a good way to get bugs handled.
 
The script was mostly for the (potential) use of the file author...Given I'm a fellow AB author and a WFB player I figured I'd drop the code just in case...
 
Back
Top