Chef_Rannos
Member
The answer to my question is yes. BatBrain is awesome!
Oh my...I knew there was a reason I bought that tome!
The answer to my question is yes. BatBrain is awesome!
Oh my...I knew there was a reason I bought that tome!
They weren't perfectly clear on the wiki, but I didn't have much trouble filling in the details. Knife in the Dark was just a spread sheet of spading results, but since it matched other skills I'd just tested, it wasn't much of a puzzle. The big problem is add in that extra spooky damage. It's not a portion of the regular damage, but a different formula (which I haven't bothered to figure out, but it looks simple like 0+{.1,.15,.2}*1.25*wpnpower).Are the formulas well-spaded, or do those need work? >.>
if (my_location() == $location[Video Game Level 3]) {
string bossatt = get_property("gameProBossSpecialPower");
switch (bossatt) {
case "Cold immunity": mres[$element[cold]] = 1; break;
case "Cold aura": base.pdmg[$element[cold]] += 7; break;
case "Hot immunity": mres[$element[hot]] = 1; break;
case "Hot aura": base.pdmg[$element[hot]] += 7; break;
case "Ignores armor": /*This boss ignores parts of your armor*/ break;
case "Blocks combat items": setmatt("noitems", ""); break;
case "Reduced physical damage": mres[$element[none]] = 0.5; break;
case "Reduced damage from spells": /*This boss takes roughly 30% less damage from spells*/ break;
case "Stun resistance": setmatt("nostun",""); break;
case "Elemental Reistance": foreach el in $elements[] mres[el] = 0.3; break;
case "Passive damage": /*This boss deals some passive damage when attack with melee weapons*/ break;
}
}
Thanks! I've updated batfactors.txt with the formulas for those three spells. DB momentum handling was added by someone else. I left that alone and did not test it. Without momentum I'm getting very good matches now with both the mirror shard and the soap knife (3-6 and 20-40 dmg). In the end I cheated a bit with Knife in the Dark. In KoL the physical damage has a average 16.5 bonus damage which the spooky damage doesn't. In batfactors, I made physical damage and spooky damage the same, so they're both off by about 8.25.As requested by Crowther, add "bestknife" fvar, for use in batfactors with DB skills that use your best knife in inventory (there are three such skills to my knowledge). It will contain the best knife's power as given by the ASH function get_power().
Expression syntax errors for 'modifier_eval()':
Can't understand bestknife*1.25 (zlib.ash, line 185)
You're on your own, partner.
On the most recent version of KoLmafia, I'm getting this error when using WHAM, and I think it's probably coming from something that BatBrain is trying to do:
Code:Expression syntax errors for 'modifier_eval()': Can't understand bestknife*1.25 (zlib.ash, line 185) You're on your own, partner.
Of the scripts that I know WHAM uses (SmartStasis & BatBrain), I could only find a reference to the string "bestknife" in BatBrain.
I just reverted batfactors.txt to the previousu version (dated 2/11/14) using DropBox and BatBrain, WHAM, etc. are humming along happily now. I'm sure someone knowledgeable enough to fix the copy on Zarqon's server soon but until then, this is a workaround.
You should only need to update batbrain and it shoukd work fine.
Ugh. I would have tested that, but all my characters had mirror shards and those are quest items, so you can't go knifeless once you get that far.Aha -- it won't populate the variable for people without any knives. Fix coming in a few minutes.
EDIT EDIT: Never mind, it must have been a short-lived glitch. r31 gives us a fix for the knifeless and support for most of the Video Game Boss attributes as well.
Unsupported boss attribute: Reduced damage from spells
I'm guessing this is BatBrain but could be WHAM or perhaps BB added it and now WHAM needs to learn how to use it? (In which case this is the wrong thread...)