PDA

View Full Version : Settra problem


dgirolamo
June 13th, 2005, 02:35 PM
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.

robert
June 13th, 2005, 08:46 PM
hi, this seems to be working fine? can you give me an example of a roster which this rule doesnt work with?

dgirolamo
June 14th, 2005, 03:31 PM
Sure, how do I attach a file?

dgirolamo
June 14th, 2005, 03:38 PM
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!!

dgirolamo
June 14th, 2005, 04:38 PM
See File

deathlynx
June 16th, 2005, 05:45 PM
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...

dgirolamo
June 16th, 2005, 06:43 PM
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.

robert
June 17th, 2005, 11:17 AM
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 :-)

dgirolamo
June 17th, 2005, 07:16 PM
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.

deathlynx
June 20th, 2005, 02:48 PM
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...