Junior Member
Join Date: May 2005
Posts: 18
|
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. |
#1 |
Senior Member
Volunteer Data File Author
Join Date: Jun 2005
Posts: 528
|
hi, this seems to be working fine? can you give me an example of a roster which this rule doesnt work with?
|
#2 |
Junior Member
Join Date: May 2005
Posts: 18
|
Sure, how do I attach a file?
|
#3 |
Junior Member
Join Date: May 2005
Posts: 18
|
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!! |
#4 |
Junior Member
Join Date: May 2005
Posts: 18
|
See File
|
#5 |
Senior Member
Volunteer Data File Author
Join Date: Mar 2005
Location: New Hampshire, USA
Posts: 388
|
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... |
#6 |
Junior Member
Join Date: May 2005
Posts: 18
|
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.
|
#7 |
Senior Member
Volunteer Data File Author
Join Date: Jun 2005
Posts: 528
|
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 :-) |
#8 |
Junior Member
Join Date: May 2005
Posts: 18
|
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.
|
#9 |
Senior Member
Volunteer Data File Author
Join Date: Mar 2005
Location: New Hampshire, USA
Posts: 388
|
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...
|
#10 |
|
|