case "use ": if(not_ok[i].id == aid.group(2) && (item_amount(to_item(to_int(aid.group(2)))) - times_happened(not_ok[i].type + " " + not_ok[i].id) <= not_ok[i].amount || not_ok[i].amount == -1))
[ default ]
attack with weapon
[ dis_combat ]
attack with weapon
[ clumsiness grove ]
section dis_combat
[ glacier of jerks ]
section dis_combat
[ maelstrom of lovers ]
section dis_combat
[ mammon the elephant ]
item dangerous jerkcicle
[ the bat in the spats ]
item clumsiness bark
[ the large-bellied snitch ]
item dangerous jerkcicle
item dangerous jerkcicle
item dangerous jerkcicle
item dangerous jerkcicle
item dangerous jerkcicle
item dangerous jerkcicle
item dangerous jerkcicle
item dangerous jerkcicle
item dangerous jerkcicle
item dangerous jerkcicle
attack with weapon
[ the terrible pinch ]
sub spam
"attack"
"use jar full of wind"
endsub
call spam; repeat
[ the thorax ]
attack with weapon
item clumsiness bark
[ thug 1 and thug 2 ]
item jar full of wind
I've never actually been into the suburbs of Dis. What is the special situation with those bosses?
[ default ]
special action
item Miniborg Destroy-O-Bot, Miniborg Destroy-O-Bot
[ global prefix ]
scrollwhendone
"abort hppercentbelow 10 #if HP ever falls below 10%, abort before you die"
"abort pastround 25"
[ mammon the elephant ]
item dangerous jerkcicle, dangerous jerkcicle
[ the bat in the spats ]
item clumsiness bark, clumsiness bark
[ the clumsiness grove ]
special action
try to steal an item
try to steal an item
skill torment plant
item Miniborg Destroy-O-Bot, Miniborg Destroy-O-Bot
[ the glacier of jerks ]
special action
try to steal an item
try to steal an item
skill tattle
item Miniborg Destroy-O-Bot, Miniborg Destroy-O-Bot
[ the large-bellied snitch ]
item dangerous jerkcicle, dangerous jerkcicle
item dangerous jerkcicle, dangerous jerkcicle
item dangerous jerkcicle, dangerous jerkcicle
item dangerous jerkcicle, dangerous jerkcicle
item dangerous jerkcicle, dangerous jerkcicle
attack with weapon
[ the maelstrom of lovers ]
special action
try to steal an item
try to steal an item
skill pinch ghost
item Miniborg Destroy-O-Bot, Miniborg Destroy-O-Bot
[ the terrible pinch ]
abort
[ the thorax ]
if gotjump
item spectre scepter
endif
item clumsiness bark
[ thug 1 and thug 2 ]
item jar full of wind, jar full of wind
[2520] Giant's Castle
Encounter: Procrastination Giant
Strategy: C:\Users\Ed Szetela\Dropbox\KoLmafia\ccs\WHAM.ccs [default]
Round 0: edfox wins initiative!
[COLOR=gray]Running ZLib version: r37 (current)[/COLOR]
[COLOR=#880000]1 HP costs 0.115μ. ( 248 / 282 )[/COLOR]
[COLOR=#000088]1 MP costs 2.4μ. ( 56 / 261 )[/COLOR]
[COLOR=gray]Running BatBrain version: 1.25 (current)[/COLOR]
[COLOR=gray]Running SmartStasis version: 3.15 (current)[/COLOR]
[COLOR=gray]Running WHAM version: 3.7 (current)[/COLOR]
[COLOR=purple]WHAM: Checking to see if WHAM sould adjust the unknown_ml for Procrastination Giant.[/COLOR]
[COLOR=purple]WHAM: No need to do anything with Procrastination Giant.[/COLOR]
[COLOR=purple]WHAM: Setting up variables via BatBrain[/COLOR]
[COLOR=black]procrastination potion (30.0 @ +85.0): 138μ * 55.5% = 76.59[/COLOR]
[COLOR=black]procrastination potion (30.0 @ +85.0): 138μ * 55.5% = 76.59[/COLOR]
ATT: [B]139[/B] (6% × 10.28, death in 403)
DEF: [B]127[/B] (95.45% × 95.97, win in 2)
HP: [B]172[/B], Value: [COLOR=green][B]1,077.56 μ[/B][/COLOR]
[COLOR=black]Parsed round number: 1[/COLOR]
[COLOR=purple]WHAM: You have no profitable MP restoratives.[/COLOR]
[COLOR=purple]WHAM: You have no profitable HP restoratives.[/COLOR]
[COLOR=purple]WHAM: Monster HP is 172.0.[/COLOR]
[COLOR=purple]WHAM: Running SmartStasis[/COLOR]
Profit per round: [TABLE="width: 100%"]
[TR]
[TH] Action[/TH]
[TH] Profit[/TH]
[TH] Damage[/TH]
[TH] Other[/TH]
[/TR]
[TR]
[TD="align: left"] base (0μ)[/TD]
[TD="align: right"] [B]0μ[/B][/TD]
[TD="align: center"] --[/TD]
[TD="align: center"][/TD]
[/TR]
[/TABLE]
[COLOR=black]Queued: pickpocket[/COLOR]
[COLOR=black]Stasis action chosen: use 2678 (round 2, profit: 0.08)[/COLOR]
[COLOR=black]procrastination potion (30.0 @ +85.0): 138μ * 55.5% = 76.59[/COLOR]
[COLOR=black]Attack action chosen: attack (round 2, profit: -0.11)[/COLOR]
[COLOR=black]Constructed macro: scrollwhendone; sub batround; if pastround 29; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; endsub; pickpocket; call batround; [/COLOR]
Round 1: edfox executes a macro!
Round 1: edfox tries to steal an item!
[COLOR=black]Happened: pickpocket[/COLOR]
[COLOR=black]Parsed round number: 2[/COLOR]
[COLOR=purple]WHAM: SmartStasis complete.[/COLOR]
[COLOR=purple]WHAM: Starting evaluation and performing of attack[/COLOR]
[COLOR=black]procrastination potion (30.0 @ +85.0): 138μ * 55.5% = 76.59[/COLOR]
[COLOR=purple]WHAM: Attack option chosen: attack (round 2, profit: -0.11)[/COLOR]
[COLOR=purple]WHAM: No profitable stun option[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=black]procrastination potion (30.0 @ +85.0): 138μ * 55.5% = 76.59[/COLOR]
[COLOR=purple]WHAM: Attack option chosen: attack (round 3, profit: -0.04)[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=black]Happened: pickpocket[/COLOR]
[COLOR=black]Parsed round number: 2[/COLOR]
[COLOR=red]WHAM: We can't Saucesplash.[/COLOR]
[COLOR=purple]WHAM: Enqueueing attack with your weapon (macroid attack).[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=purple]WHAM: Successfully enqueued attack with your weapon.[/COLOR]
[COLOR=red]WHAM: We can't Saucesplash.[/COLOR]
[COLOR=purple]WHAM: Enqueueing attack with your weapon (macroid attack).[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=purple]WHAM: Successfully enqueued attack with your weapon.[/COLOR]
[COLOR=purple]WHAM: We are going to 2-shot with attack with your weapon and attack with your weapon.[/COLOR]
[COLOR=black]Constructed macro: scrollwhendone; sub batround; if pastround 29; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; endsub; attack; call batround; attack; call batround; [/COLOR]
Round 2: edfox executes a macro!
Round 2: edfox attacks!
You lose 13 hit points
Round 3: edfox attacks!
Round 4: procrastination giant takes 95 damage.
[COLOR=black]Happened: attack[/COLOR]
[COLOR=black]Happened: attack[/COLOR]
[COLOR=black]Parsed round number: 4[/COLOR]
[COLOR=purple]WHAM: Current monster HP is calculated to 77.0[/COLOR]
[COLOR=purple]WHAM: Starting evaluation and performing of attack[/COLOR]
[COLOR=black]procrastination potion (30.0 @ +85.0): 138μ * 55.5% = 76.59[/COLOR]
[COLOR=purple]WHAM: Attack option chosen: attack (round 4, profit: -0.04)[/COLOR]
[COLOR=purple]WHAM: No need to stun this monster[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=black]Happened: attack[/COLOR]
[COLOR=black]Happened: attack[/COLOR]
[COLOR=black]Parsed round number: 4[/COLOR]
[COLOR=red]WHAM: We can't Saucesplash.[/COLOR]
[COLOR=purple]WHAM: Enqueueing attack with your weapon (macroid attack).[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=purple]WHAM: Successfully enqueued attack with your weapon.[/COLOR]
[COLOR=purple]WHAM: We are going to 1-shot with attack with your weapon.[/COLOR]
[COLOR=black]Constructed macro: scrollwhendone; sub batround; if pastround 29; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; endsub; attack; call batround; [/COLOR]
Round 4: edfox executes a macro!
Round 4: edfox attacks!
Round 5: procrastination giant takes 95 damage.
Round 5: edfox wins the fight!
You gain 3 hit points
You gain 4 Mojo Points
You gain 495 Meat
After Battle: Moon Unit studies the lines on your solar plexus. "I see that you are a karmic hero, destined to live again and again to set right the wrongs of this land. That's so cool!" She smiles kindly at you, eyes twinkling.
You gain 10 Muscleboundness
You gain 10 Mysteriousness
You gain 24 Smarm
[COLOR=black]Happened: attack[/COLOR]
[COLOR=black]Parsed round number: 0[/COLOR]
Could you do one at verbosity 9? That is when what get's added to the batround is printed out which would help in this case
Visit to Beanstalk: Giant's Castle in progress...
[2755] Giant's Castle
Encounter: Furry Giant
Strategy: C:\Users\Ed \Dropbox\KoLmafia\ccs\WHAM.ccs [default]
Round 0: edfox wins initiative!
[COLOR=gray]Running ZLib version: r37 (current)[/COLOR]
[COLOR=#880000]1 HP costs 0.195μ. ( 252 / 252 )[/COLOR]
[COLOR=#000088]1 MP costs 2.533μ. ( 118 / 235 )[/COLOR]
Factoring in Scarysauce: [B][COLOR=gray](6)[/COLOR][/B] damage, retal
[COLOR=gray]Running BatBrain version: 1.25 (current)[/COLOR]
[COLOR=gray]Running SmartStasis version: 3.15 (current)[/COLOR]
[COLOR=gray]Running WHAM version: 3.7 (current)[/COLOR]
[COLOR=purple]WHAM: We currently think that the round number is: 0 and that the turn number is 2754.[/COLOR]
[COLOR=purple]WHAM: Checking to see if WHAM sould adjust the unknown_ml for Furry Giant.[/COLOR]
[COLOR=purple]WHAM: No need to do anything with Furry Giant.[/COLOR]
[COLOR=purple]WHAM: Setting up variables via BatBrain[/COLOR]
[COLOR=black]furry fur (35.0 @ +70.0): 129μ * 59.5% = 76.76[/COLOR]
[COLOR=black]disturbing fanfic (30.0 @ +70.0): 132μ * 51% = 67.32[/COLOR]
[COLOR=black]wolf mask (10.0 @ +70.0): 165μ * 17% = 28.05[/COLOR]
Value of stat gain: 368.95μ
[COLOR=black]furry fur (35.0 @ +70.0): 129μ * 59.5% = 76.76[/COLOR]
[COLOR=black]disturbing fanfic (30.0 @ +70.0): 132μ * 51% = 67.32[/COLOR]
[COLOR=black]wolf mask (10.0 @ +70.0): 165μ * 17% = 28.05[/COLOR]
Value of stat gain: 368.95μ
ATT: [B]145[/B] (6% × 11.23, death in 374)
DEF: [B]132[/B] (95.45% × 95.42, win in 2)
HP: [B]166[/B], Value: [B][COLOR=green]833.58 μ[/COLOR][/B]
[COLOR=black]Parsed round number: 1[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options built! (79 actions)[/COLOR]
[COLOR=purple]WHAM: We currently think that the round number is: 1 and that the turn number is 2754.[/COLOR]
[COLOR=purple]WHAM: Current MP = 118 out of 235.[/COLOR]
[COLOR=purple]WHAM: You have no profitable MP restoratives.[/COLOR]
[COLOR=purple]WHAM: Current HP = 252 out of 252.[/COLOR]
[COLOR=purple]WHAM: You have no profitable HP restoratives.[/COLOR]
[COLOR=purple]WHAM: You are fighting a Furry Giant. Mafia considers that this monster has an attack of 145 or 145 when given a monster name.[/COLOR]
[COLOR=purple]WHAM: Mafia further considers that this monster has a defense value of 132 or 131 when given a monster name.[/COLOR]
[COLOR=purple]WHAM: Mafia further further considers that this monster has a HP value of 161 or 160 when given a monster name.[/COLOR]
[COLOR=purple]WHAM: Your current ML-adjustment is: 10.[/COLOR]
[COLOR=purple]WHAM: Monster HP is 166.0.[/COLOR]
[COLOR=black]WHAM: WHAM added the following to BatRound: if pastround 29; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; [/COLOR]
[COLOR=purple]WHAM: Running SmartStasis[/COLOR]
Profit per round: [TABLE="width: 100%"]
[TR]
[TH] Action[/TH]
[TH] Profit[/TH]
[TH] Damage[/TH]
[TH] Other[/TH]
[/TR]
[TR]
[TD="align: left"] base (0μ)[/TD]
[TD="align: right"] [B]0μ[/B][/TD]
[TD="align: center"] --[/TD]
[TD="align: center"][/TD]
[/TR]
[/TABLE]
[COLOR=black]Building custom actions...[/COLOR]
[COLOR=black]Queued: pickpocket[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options built! (79 actions)[/COLOR]
[COLOR=black]Custom actions built! (0 actions)[/COLOR]
[COLOR=black]Stasis action chosen: use 3388 (round 2, profit: 0.05)[/COLOR]
[COLOR=black]furry fur (35.0 @ +70.0): 129μ * 59.5% = 76.76[/COLOR]
[COLOR=black]disturbing fanfic (30.0 @ +70.0): 132μ * 51% = 67.32[/COLOR]
[COLOR=black]wolf mask (10.0 @ +70.0): 165μ * 17% = 28.05[/COLOR]
Value of stat gain: 368.95μ
[COLOR=black]Attack action chosen: use 3388 (round 2, profit: 0.05)[/COLOR]
[COLOR=black]This monster is not your huckleberry.[/COLOR]
[COLOR=black]Stasis loop complete (queue still contains 1 actions).[/COLOR]
[COLOR=black]Constructed macro: scrollwhendone; sub batround; if pastround 29; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; endsub; pickpocket; call batround; [/COLOR]
Round 1: edfox executes a macro!
Round 1: edfox tries to steal an item!
You acquire an item: wolf mask
[COLOR=black]Happened: pickpocket[/COLOR]
[COLOR=black]Parsed round number: 2[/COLOR]
[COLOR=green]You snatched a wolf mask (165μ)![/COLOR]
[COLOR=black]furry fur (35.0 @ +70.0): 129μ * 59.5% = 76.76[/COLOR]
[COLOR=black]disturbing fanfic (30.0 @ +70.0): 132μ * 51% = 67.32[/COLOR]
Value of stat gain: 368.95μ
[COLOR=green]Revised monster value: 805.53[/COLOR]
[COLOR=black]Happened: stolen[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options built! (79 actions)[/COLOR]
[COLOR=purple]WHAM: SmartStasis complete.[/COLOR]
[COLOR=purple]WHAM: Running SmartStasis took 1.69 seconds.[/COLOR]
[COLOR=purple]WHAM: We currently think that the round number is: 2 and that the turn number is 2754.[/COLOR]
[COLOR=purple]WHAM: SS did not finish the fight, continuing with script execution. [/COLOR]
[COLOR=purple]WHAM: Starting evaluation and performing of attack[/COLOR]
[COLOR=purple]WHAM: We currently think that the round number is: 2 and that the turn number is 2754.[/COLOR]
[COLOR=red]WHAM: This monster does not drop a goal item[/COLOR]
[COLOR=black]furry fur (35.0 @ +70.0): 129μ * 59.5% = 76.76[/COLOR]
[COLOR=black]disturbing fanfic (30.0 @ +70.0): 132μ * 51% = 67.32[/COLOR]
Value of stat gain: 368.95μ
[COLOR=purple]WHAM: Attack option chosen: attack (round 2, profit: 0)[/COLOR]
[COLOR=purple]WHAM: No profitable stun option[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options built! (79 actions)[/COLOR]
[COLOR=black]furry fur (35.0 @ +70.0): 129μ * 59.5% = 76.76[/COLOR]
[COLOR=black]disturbing fanfic (30.0 @ +70.0): 132μ * 51% = 67.32[/COLOR]
Value of stat gain: 368.95μ
[COLOR=purple]WHAM: Attack option chosen: attack (round 3, profit: 0)[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options built! (79 actions)[/COLOR]
[COLOR=black]Happened: pickpocket[/COLOR]
[COLOR=black]Parsed round number: 2[/COLOR]
[COLOR=green]You snatched a wolf mask (165μ)![/COLOR]
[COLOR=black]furry fur (35.0 @ +70.0): 129μ * 59.5% = 76.76[/COLOR]
[COLOR=black]disturbing fanfic (30.0 @ +70.0): 132μ * 51% = 67.32[/COLOR]
Value of stat gain: 368.95μ
[COLOR=green]Revised monster value: 805.53[/COLOR]
[COLOR=black]Happened: stolen[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options built! (79 actions)[/COLOR]
[COLOR=purple]WHAM: Evaluating the attack but not performing it took 0.66 seconds.[/COLOR]
[COLOR=red]WHAM: We can't Saucesplash.[/COLOR]
[COLOR=red]true, true, true, false, false[/COLOR]
[COLOR=purple]WHAM: Enqueueing attack with your weapon (macroid attack).[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options built! (79 actions)[/COLOR]
[COLOR=purple]WHAM: Successfully enqueued attack with your weapon.[/COLOR]
[COLOR=red]WHAM: We can't Saucesplash.[/COLOR]
[COLOR=red]true, true, true, false, false[/COLOR]
[COLOR=purple]WHAM: Enqueueing attack with your weapon (macroid attack).[/COLOR]
[COLOR=black]Queued: attack[/COLOR]
[COLOR=black]Building options...[/COLOR]
[COLOR=black]Options built! (79 actions)[/COLOR]
[COLOR=purple]WHAM: Successfully enqueued attack with your weapon.[/COLOR]
[COLOR=purple]WHAM: We are going to 2-shot with attack with your weapon and attack with your weapon.[/COLOR]
[COLOR=black]Constructed macro: scrollwhendone; sub batround; if pastround 29; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; endsub; attack; call batround; attack; call batround; [/COLOR]
Round 2: edfox executes a macro!
Round 2: edfox attacks!
Round 3: furry giant takes 85 damage.
Round 3: edfox attacks!
Round 4: furry giant takes 89 damage.
Round 4: edfox wins the fight!
You gain 5 hit points
You gain 3 Mojo Points
You gain 319 Meat
You acquire an item: furry fur
After Battle: Moon Unit reads your palm and smiles delightedly. "In a past life, you were my beloved pet shark, Bruno!" she says.
You gain 13 Beefiness
You gain 8 Mysteriousness
You gain 25 Cheek
[COLOR=black]Happened: attack[/COLOR]
[COLOR=black]Happened: attack[/COLOR]
[COLOR=black]Parsed round number: 0[/COLOR]
[COLOR=green]Look! You found 1 furry fur (129μ)![/COLOR]
[COLOR=purple]WHAM: Evaluating the attack and performing it took 3.34 seconds.[/COLOR]
[COLOR=purple]WHAM: We currently think that the round number is: 31 and that the turn number is 2755.[/COLOR]
[COLOR=purple]WHAM: We currently think that the round number is: 31 and that the turn number is 2755.[/COLOR]
Requests complete.
print($strings["red", "blue", "orange"] contains "red");
int[string] colours;
colours["red"] = 0;
colours["blue"] = 0;
colours["orange"] = 0;
print(colours contains "red");
print($strings[red, blue, orange] contains "red");
Your recent post in the BatBrain threads lists the changes I noticed when I did a diff. I decided to try out the new BatBrain anyway, since I'm not bleeding edge at the moment (full plate of zombie skills by level 6) and I like to test. (Note, I disabled bear hug and patched in my idea of optimal stasis)The version of BatBrain in the first post has been updated to be consistent with the newly released official version of BatBrain. It contains the few bits of support for Bear Arm skills that Zarqon left out so in case you rely on those (mainly Kodiak Moment) I'd recommend you use the version in this thread. Otherwise you may just as well use the official version instead.
Updated the BatBrain in the first post to be compatible with the new names of the basement monsters.