Best Between Battle Script Ever -- formerly AutoMCD

Terrabull

Member
More strange behavior. It keeps switching my familiar. It was useful during the run, but I'm not sure how to turn it off.
Also, after it tried to equip the wrong familiar item, all but my universal fam items disappeared from mafia's drop-down.

Code:
Checking for updates (running ZLib ver. : 15)...
_version_zlib => : 15
You have a current version of ZLib.
Checking for updates (running Best Between Battle Script Ever ver. 1.8)...
_version_automcd => 1.8
You have a current version of Best Between Battle Script Ever.
Putting I'm Feeling Lucky the Leprechaun back into terrarium...
Taking Infinate Data Elseif Loop the Temporal Riftlet out of terrarium...
moveable feast is better than (none). Switching items...
Putting on moveable feast...
Equipment changed.
Using 1 carbonated soy milk...
You gain 79 Muscularity Points
Finished using 1 carbonated soy milk.

Request 1 of 292 (Beanstalk: Giant's Castle) in progress...

[2500] Giant's Castle
Encounter: Goth Giant
Strategy: C:\Documents and Settings\Doug\Desktop\kolmafia\ccs\default.ccs [goth]
Round 0: terrabull wins initiative!
Round 1: terrabull attacks!
Round 2: terrabull attacks!
You gain 464 Meat
You gain 24 Strengthliness
You gain 8 Enchantedness
You gain 10 Chutzpah

Request 2 of 292 (Beanstalk: Giant's Castle) in progress...
KoLmafia declares world peace.

[2501] Giant's Castle
Encounter: Goth Giant
Strategy: C:\Documents and Settings\Doug\Desktop\kolmafia\ccs\default.ccs [goth]
Round 0: terrabull wins initiative!

Putting on Meat detector...
Equipment changed.
Round 1: terrabull attacks!
You gain 442 Meat
You acquire an item: Warm Subject gift certificate
You gain 27 Strengthliness
You gain 11 Wizardliness
You gain 7 Sarcasm

> set is_100_run = "none"

is_100_run => none

> fam lep

Unable to invoke fam

> familiar lep

Putting Infinate Data Elseif Loop the Temporal Riftlet back into terrarium...
Taking I'm Feeling Lucky the Leprechaun out of terrarium...
Requests complete.

Validating adventure sequence...
Requests complete.

Putting I'm Feeling Lucky the Leprechaun back into terrarium...
Taking Infinate Data Elseif Loop the Temporal Riftlet out of terrarium...

Request 1 of 290 (Beanstalk: Giant's Castle) in progress...

[2502] Giant's Castle
Encounter: Possibility Giant
Strategy: C:\Documents and Settings\Doug\Desktop\kolmafia\ccs\default.ccs [default]
Round 0: terrabull wins initiative!
Round 1: terrabull attacks!
Round 2: terrabull attacks!
You gain 403 Meat
You acquire an item: plot hole
You gain 27 Fortitude
You gain 11 Mysteriousness
You gain 4 Cheek

Request 2 of 290 (Beanstalk: Giant's Castle) in progress...

[2503] Giant's Castle
Encounter: Goth Giant
Strategy: C:\Documents and Settings\Doug\Desktop\kolmafia\ccs\default.ccs [goth]
Round 0: terrabull wins initiative!
Round 1: terrabull attacks!
You gain 355 Meat
You acquire an item: awful poetry journal
You gain 33 Strengthliness
You gain 7 Enchantedness
You gain 3 Cheek
KoLmafia declares world peace.

Stealing Meat detector from I'm Feeling Lucky the Leprechaun...
Putting on Meat detector...
Only a specific familiar type ( Leprechaun ) can equip this item.

EDIT: Figured it out, I typed "set is_100_run" instead of "zlib is_100_run" strange because it seemed like it switched something.
 
Last edited:

zarqon

Well-known member
@V: Feature request made!

@Terra: Yep, you now have a useless setting in your mafia settings called "is_100_run". You can delete that if you are OCD like most of us scripters seem to be, or you can leave it since it's not really harming anything.
 

ki77bot

Member
Two things:

1.) You should mention the screwed up filename (due to the forum-update)?

2.) You should also mention that you are using other files which need to be downloaded. For instance, my firewall settings block any communication from java, which have not previously been aloud. So, every time I need to find out why I get error messages...

Other than that...GREAT WORK!

Cheers
ki77bot
 

zarqon

Well-known member
Everyone, a couple things.

First, there is a screwed-up filename for the BBB 1.9 update due to the forum update. The correct name is "BestBetweenBattle.ash" -- please either save it as such, or set your betweenBattleScript property to the screwed-up name.

Also, be aware that BBB uses ZLib's load_current_map() to get its data files, which accesses another server (not KoL's). You may need to adjust your firewall accordingly.

:)
 

inspectuhdeck

New member
Every time i try to auto-adventure, this comes up in the CLI.

Bad item value: "Trickster Trikitixa" (BestBetweenBattle.ash, line 181)

It doesn't allow me to use most of mafia's functions. Is this happening to anyone else? Is there something i can do to fix it? It never happened before i got the update to version 1.9.
 
Mafia should be understanding "Trickster Trikitixa" as "Trickster's Trikitixa" just fine; it's very good at guessing, and my version doesn't say that's a bad item value. (I don't have one, but commands like "inv Trickster Trikitixa" don't complain about a bad item, just as they don't for other items I don't have.) What version of Mafia are you running?
 

heeheehee

Developer
Staff member
My version of Mafia (r8230) doesn't recognize "Trickster Trikitixa" as an item, as per > ash $item[trickster triktixa].to_string() -- that returns Bad item value: "trickster triktixa" ().
 

zarqon

Well-known member
I left the apostrophe off so as not to mess up my syntax highlighting. Mafia still matches items/locations/etc just fine without them.

The issue here is that your version of mafia must be recent enough to know about the Trikitixa, otherwise you'll get that error with or without the apostrophe. Recommend you download the latest daily build (link at the top of the forum).
 

adeyke

Member
I just noticed that the cyrpt choice adventures are asymmetrical. It always goes for moxie in the nook, but it goes for the other stats only if they're the prime stat. Is this intentional?
 

zarqon

Well-known member
Yes, it's for script synergy, due to the safe-moxie based approach of many of my and dj_d's scripts. If you'd rather skip non-primestat moxie in the nook, it's an easy fix. I'll add it here when I have time, unless someone else beats me to it.
 

adeyke

Member
Fair enough. If it's supposed to do that, I quite understand the justification and have no problem with it being that way. I'm just in my first non-moxie run in almost a year, and I have no idea what I'm doing, so that's why I noticed it.
 

Bale

Minion
And that's why I use my own variant of this script. :)

Speaking of, I recently added this code to my betweenBattleMood:

Code:
boolean need_bangs() {
	for i from 819 to 827
		if(item_amount(to_item(i)) < to_int(get_property("lastBangPotion"+i) == "") + 1)
			return true;
	return false;
}

.... and a little bit later ....

	case $location[Dungeons of Doom]:  // Open large and small boxes?
		if(need_bangs()) {
			if(item_amount($item[large box]) > 0)
				use(item_amount($item[large box]), $item[large box]);
			if(item_amount($item[small box]) > 0)
				use(item_amount($item[small box]), $item[small box]);
		}
 

zarqon

Well-known member
Nifty. You should include a check for whether or not identified potions are necessary tower potions -- not all of them are.
 

Bale

Minion
Good point. I'll have to consider that when I have some time to kill. I'm getting the Turtle Tamer Nemesis trophy this ascension so it will be quite a while before I need that again. Darn slow tamed turtles. :(
 
Top