EatDrink.ash: Optimize your daily diet (and see how your old diet stacks up).

Minor feature request: Could you have this script equip a plexiglass pendant (if available) before drinking? I usually have 3 accordion thief songs already banked up to a thousand turns or more, and usually end up manually equipping the pendant before running this script to let ode fit in.
 
Minor feature request: Could you have this script equip a plexiglass pendant (if available) before drinking? I usually have 3 accordion thief songs already banked up to a thousand turns or more, and usually end up manually equipping the pendant before running this script to let ode fit in.

Or brimstone beret (same effect, different slot).
 
I haven't ran into any price looping within the last half-dozen or so executions! Sweet!! I'm not in Ronin however.

You should get a TPS. They rock. :)

Oh sure, rub it in! I mean, I know meat grows on trees, but I'll need a entire forest to get that much! I do plan on getting one eventually though... someday.
 
@xKiv, @fuzzyevil: I hear you but I think you're better off switching to an "eating outfit" before you run eatdrink, since that is somewhat outside the mandate of "eating and drinking" and can have other side effects.

@FNN: Ha! What's networth.ash peg you at anyway?
 
@xKiv, @fuzzyevil: I hear you but I think you're better off switching to an "eating outfit" before you run eatdrink, since that is somewhat outside the mandate of "eating and drinking" and can have other side effects.


Yeah, that makes sense. I ended up just making a CLI script that equips the pendant, then runs eatdrink.ash.
 
Perfect.

Anyone else have experiences, successful or not, with the latest version of the script (particularly if you're in ronin)?
 
Using the version posted here: http://kolmafia.us/showpost.php?p=20298&postcount=318

Badmoon, I fetched some crappy drinks from the barrels:
Code:
> inv refresh

Refreshing closet...
Updating consumable items...
Updating miscellaneous items...
Refreshing stickers...
Requests complete.

> eatd

Refreshing stash contents...
Stash list retrieved.
Internal checkpoint created.
Loading favorite consumables from user settings...
adding favorite: rockin' wagon
adding favorite: pr0n chow mein
adding favorite: twinkly wad
You're in ronin, and not simulating, so no shopping for you.
Starting EatDrink.ash (version 3.0).
Consuming up to 15 food, 19 booze, and 15 spleen
Considering food from inventory Hagnk's . Per-item budget cap is 25000.0.
Price will be a factor if you own it already. Hagnk's pulls (if enabled) will cost 4000 meat each.
An adventure has the value of 1600 meat. Moxie subpoint is 5.0. Nonprime stat subpoint is 1.0. Hagnk pulls are limited and their 'cost' is incorporated.
Already updated from http://zachbardon.com/mafiatools/updateprices.php?action=getmap in this session.
Already updated from http://nixietube.info/mallprices.txt in this session.
Pass 1: food.
Skipping food.
Pass 2: drink.
drink: At 4, consuming to 19.
Loading drink map from Mafia's datafiles
dusty bottle of Merlot:
dusty bottle of Port:
dusty bottle of Pinot Noir:
dusty bottle of Zinfandel:
dusty bottle of Marsala:
dusty bottle of Muscat:
dusty bottle of Merlot:
dusty bottle of Port:
dusty bottle of Pinot Noir:
dusty bottle of Zinfandel:
dusty bottle of Marsala:
dusty bottle of Muscat:
dusty bottle of Merlot:
dusty bottle of Port:
dusty bottle of Pinot Noir:
dusty bottle of Zinfandel:
dusty bottle of Marsala:
dusty bottle of Muscat:
dusty bottle of Merlot:
dusty bottle of Port:
dusty bottle of Pinot Noir:
dusty bottle of Zinfandel:
dusty bottle of Marsala:
dusty bottle of Muscat:
dusty bottle of Merlot:
dusty bottle of Port:
dusty bottle of Pinot Noir:
dusty bottle of Zinfandel:
dusty bottle of Marsala:
dusty bottle of Muscat:
dusty bottle of Merlot:
dusty bottle of Port:
dusty bottle of Pinot Noir:
dusty bottle of Zinfandel:
dusty bottle of Marsala:
dusty bottle of Muscat:
Filtering by type
Filtering by level
Finding prices
Favorite rockin' wagon appears unavailable given budget, SHOP variable settings, ronin status, and/or mall price.
Setting values
Choosing drink to consume.
Waiting to consume...
fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.
You have at least one fine wine in inventory.
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.
Drinking 1 fine wine...
You gain 3 Adventures
You gain 5 Roguishness
You gain 1 Drunkenness
Finished drinking 1 fine wine.
1: fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Choosing drink to consume.
Waiting to consume...
fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.
You have at least one fine wine in inventory.
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.
Drinking 1 fine wine...
You gain 1 Adventure
You gain 3 Roguishness
You gain 1 Drunkenness
Finished drinking 1 fine wine.
2: fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Choosing drink to consume.
Waiting to consume...
fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.
EatDrink encountered an error: You don't have a fine wine and you're not able to shop.
102 price updated from 325 to 325.
FAIL: fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Choosing drink to consume.
Waiting to consume...
fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.
EatDrink encountered an error: You don't have a fine wine and you're not able to shop.
102 price updated from 325 to 325.
FAIL: fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Choosing drink to consume.
Waiting to consume...
fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.
EatDrink encountered an error: You don't have a fine wine and you're not able to shop.
102 price updated from 325 to 325.
FAIL: fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Choosing drink to consume.
Waiting to consume...
fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.
EatDrink encountered an error: You don't have a fine wine and you're not able to shop.
102 price updated from 325 to 325.
FAIL: fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Choosing drink to consume.
Waiting to consume...
fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.
EatDrink encountered an error: You don't have a fine wine and you're not able to shop.
102 price updated from 325 to 325.
FAIL: fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Choosing drink to consume.
Waiting to consume...
fine wine lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:4.0 meat:325 own:2 value:2915
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
KoLmafia declares world peace.
 
EatDrink thinks an adventure is worth 500 meat:

Now, to recap...
******************************************
Starting EatDrink.ash (version 3.0).

An adventure has the value of 500 meat. Moxie subpoint is 0.0. Nonprime stat subpoint is 0.0.

I tell it 943 in vars_TOON.txt. The 0 / 0 is correct for the prime and non-prime...

Did I misread how I was supposed to configure it?

eatdrink_valueOfAdventure 943
eatdrink_valueOfNonPrimeStat 0
eatdrink_valueOfPrimeStat 0
 
The script doesn't use the eatdrink_ variables any more, instead it uses mafia's valueOfAdventure setting, the default value being 500.
 
Type set valueOfAdventure=X into the cli, where X is the value you want to set it to.

In ash use set_property:
set_property("valueOfAdventure","X");
 
Last edited:
Type set valueOfAdventure=X into the cli, where X is the value you want to set it to.

In ash use set_property:
set_property("valueOfAdventure","X");

Now how do I call eatdrink with the valueOfAdventure in the ash command?

This here doesnt work because it says that it is an undefined variable

Code:
eatdrink(fullness_limit(),inebriety_limit(), spleen_limit(), false,valueOfAdventure,0,0,0,false);
 
nm
I solved it

this works
Code:
import eatdrink1.ash;
int val = to_int(get_property("valueOfAdventure"));
 eatdrink(fullness_limit(),inebriety_limit(), spleen_limit(), false,val,0,0,0,false);
 
Why not
Code:
eatdrink(fullness_limit(),inebriety_limit(), spleen_limit(), false,to_int(get_property("valueOfAdventure")),0,0,0,false);
 
Why not
Code:
eatdrink(fullness_limit(),inebriety_limit(), spleen_limit(), false,to_int(get_property("valueOfAdventure")),0,0,0,false);

that should work too, i just set it at the beginning so I could use it also for rollover consumption and for reseting my valueOfAdventure later
 
dj_d, FWIW, I just had eatdrink fail to buy something and recalculate and buy something different twice in one execution! No price loops!! Thank you for working on this fix!
 
@kain - that shouldn't happen! Try the attached. (everyone else too). I think it'll be the last of this class of but.

@FN - yay! glad we have that case stomped.
 

Attachments

It should really only prioritize key lime pies if you haven't killed the NS. I'm in aftercore, finished with only 2 keys as usual because I prefer zapping for the third. The script thinks I should eat a key lime pie (and in sim mode, ONLY key lime pies - because it doesn't realize eating the first one will get a key.)
 
Back
Top