if(my_path() == "Way of the Surprising Fist")
if(get_action($skill[entangling noodles]).stun > 1 && die_rounds() < 5)
enqueue(get_action($skill[entangling noodles]));
if(get_action(get_action($skill[Drunken Baby Style]).id != "")
enqueue(get_action($skill[Drunken Baby Style]), "");
if(my_path() == "Way of the Surprising Fist")
{
if(get_action($skill[entangling noodles]).stun > 1 && die_rounds() < 5)
enqueue(get_action($skill[entangling noodles]));
if(get_action(get_action($skill[Drunken Baby Style]).id != "")
enqueue(get_action($skill[Drunken Baby Style]), "");
}
So what's the word on someone making an all handling combat script with BatBrain? There were a few scripts a ton of pages back and in the spamattack thread but I haven't heard anything since and it's hard to track down random attachments in thread posts.
[ default ]
consult DestroyAllMonsters.ash
case 7081: fvars["botcharges"] = get_property("bagOTricksCharges").to_int();
case 2003: case 2005: case 2015: case 2103: case 2105: case 2106: case 2107: if (weapon_type(equipped_item($slot[weapon])) == $stat[Moxie]) continue;
default: dam = eval(fields.dmg,fvars);
One quick problem... you've made that moxie classes always try to use drunken baby, but only use noodles if you're in a fist-path. Also, there's no alternative provided for non-fist path or fist pre-drunken. Anyways, here's the problem code:I think what you wanted was this:Code:if(my_path() == "Way of the Surprising Fist") if(get_action($skill[entangling noodles]).stun > 1 && die_rounds() < 5) enqueue(get_action($skill[entangling noodles])); if(get_action(get_action($skill[Drunken Baby Style]).id != "") enqueue(get_action($skill[Drunken Baby Style]), "");
Code:if(my_path() == "Way of the Surprising Fist") { if(get_action($skill[entangling noodles]).stun > 1 && die_rounds() < 5) enqueue(get_action($skill[entangling noodles])); if(get_action(get_action($skill[Drunken Baby Style]).id != "") enqueue(get_action($skill[Drunken Baby Style]), ""); }
Hmm... did your copy of BatBrain miss the shieldbutt-moxie bugfix? Or is that not needed anymore? That would be the middle line of this:Code:case 7081: fvars["botcharges"] = get_property("bagOTricksCharges").to_int(); case 2003: case 2005: case 2015: case 2103: case 2105: case 2106: case 2107: if (weapon_type(equipped_item($slot[weapon])) == $stat[Moxie]) continue; default: dam = eval(fields.dmg,fvars);
Hmm... did your copy of BatBrain miss the shieldbutt-moxie bugfix? Or is that not needed anymore?
boolean ok(advevent a) {
matcher aid = create_matcher("(skill |use |attack|jiggle)(?:(\\d+),?(\\d+)?)?",a.id);
if(aid.find())
switch(aid.group(1)+aid.group(2)) {
case "skill 66": //Flying Fire Fist
// Don't auto-use this if it will expend Salamanderenity.
if(have_effect($effect[Salamanderenity]) > 3* get_property("fistSkillsKnown").to_int()) return false;
return true;
case "skill 2005": //Shieldbutt
case "skill 2105": //Head + Shield Combo
case "skill 2106": //Knee + Shield Combo
case "skill 2107": //Head + Knee + Shield Combo
if(item_type(equipped_item($slot[off-hand])) != "shield") return false;
case "skill 1003": //Thrust-Smack
case "skill 1004": //Lunge-Smack
case "skill 1005": //Lunging Thrust-Smack
case "skill 2003": //Headbutt
case "skill 2015": //Kneebutt
case "skill 2103": //Head + Knee Combo
if(weapon_type(equipped_item($slot[weapon])) == $stat[Moxie]) return false;
case "attack":
if(m == $monster[Procrastination Giant]
&& weapon_type(equipped_item($slot[weapon])) != $stat[Moxie]) return false;
}
return true;
}
Yeah, it's got some quirkiness that I haven't eliminated yet. However, sometimes it is shockingly efficient and it is quite fast, even if you have every attack skill in the game.
DestroyAllMonsters v0.2 beta
Download this BatBrain (overwrite the current version) to /scripts
Is it a good idea to just remove the iceball line from batfactors, when I get around to getting a new one? Or is this a "bug" in BatBrain, or DestroyAllMonsters?
Yes, looking at your code it either saucesplashes, plinks (which mine admittedly doesn't), shieldbutts or attacks with the cheapest most high damaging skill/item which would definitely speed up execution. Seeing as my knowlegde of what skills are going to do what damage is very limited a normal manula combat would take a lot longer than the 5s it currently takes with the script I still save tons of time
[430] F'c'le
Encounter: bee thoven
Round 0: bale wins initiative!
Round 1: Princess Vina is looking a little thin.
You lose 12 hit points
2/6 monsters drop goals here.
DestroyAllMonsters: attack... killrounds: 3, dierounds: 3
Round 1: bale executes a macro!
Round 1: bale casts STRINGOZZI SERPENT!
Round 2: bee thoven takes 35 damage.
Round 2: bee thoven takes 18 damage.
You lose 39 hit points
Your slimeling needs sating.
DestroyAllMonsters: attack... killrounds: 1, dierounds: 2
Round 2: bale executes a macro!
Round 2: bale attacks!
Round 3: bee thoven takes 20 damage.
Round 3: bee thoven takes 9 damage.
Round 3: bale wins the fight!
After Battle: Princess Vina hops around, dancing a jig accompanied by wet squelching noises.
You acquire an item: handful of honey
You gain 13 Fortitude
You gain 10 Mysteriousness
You gain 19 Chutzpah
[217] Haunted Gallery
Encounter: empty suit of armor
Round 0: bale wins initiative!
attack
SmartStasis: -14 profit is too low to stasis with attack
skill 2023
DestroyAllMonsters: Toss... killrounds: 10, dierounds: 13
Round 1: bale executes a macro!
Round 1: bale casts ENTANGLING NOODLES!
Round 2: Gog pulls it into an impromptu mosh pit, stomping it for 17 damage.
Round 2: empty suit of armor takes 17 damage.
Round 2: bale casts TOSS!
Round 3: You pick up Gog and toss him at your opponent, dealing 14 damage. Go Gog!
Round 3: empty suit of armor takes 14 damage.
Round 3: Gog kicks it into next week, for a time-traveling 29 damage.
Round 3: empty suit of armor takes 29 damage.
Round 3: bale casts TOSS!
Round 4: You pick up Gog and toss him at your opponent, dealing 14 damage. Go Gog!
Round 4: empty suit of armor takes 14 damage.
Round 4: Gog kicks it into next week, for a time-traveling 28 damage.
Round 4: empty suit of armor takes 28 damage.
You lose 19 hit points
Round 4: bale casts TOSS!
Round 5: You pick up Gog and toss him at your opponent, dealing 14 damage. Go Gog!
Round 5: empty suit of armor takes 14 damage.
Round 5: Gog does a little dance on top of it, to the tune of 22 damage.
Round 5: empty suit of armor takes 22 damage.
Round 5: bale wins the fight!
After Battle: Gog does a few high kicks. When you're a pair of boots with no legs, the sky's the limit for how high you can kick.
You acquire an item: antique spear
You acquire an item: antique shield
You gain 16 Strongness
You gain 8 Magicalness
You gain a Mysticality point!
You gain 9 Chutzpah
DAM noted that my attack would hit the monster, but wouldn't kill my enemy before it killed me so it attacked with stringozzi serpent and finished it off with attack. Cool beans!