Banana Lord
Member
I've been having a look at the softcore stocking feature, and I was wondering if there was any facility for handling transformable items like jub-jub birds where I only want one from the complete set, not one of each type?
True. But OCD demands that I be pedanticThough honestly, do you need to stock that? I'd think it would be something that you'd simply want to keep in inventory all the time. It's not consumable, after all.
Putty, cheese, ice and the LLK come to mind. They're the foldables people are most likely to pull in SC anyway.Are there any other disjunctive choices like that?
Doesn't matter all that much to be honest since they can easily be transformed in run. I think it'd be a good idea if you put up a dialogue box asking the user to select the primestat of their next run. That would allow you to expand into stocking stat-tuned items like corpse drinks and hi meins (which would be out-of-this-world epic).And how should I handle items that you'd make different choices about depending on your next run being muscle, moxie or mysticality?
import <zlib.ash>;
int [string] default_ocd_data;
load_current_map("NCF_Default_OCD_Data", default_ocd_data);
ocd_control(False, default_ocd_data);
heavy D AUTO 0
Now that I've finally got around to having a look at that optional second parameter you added to ocd_control() I'm wondering how to use it. Something along these lines?
Code:import <zlib.ash>; int [string] default_ocd_data; load_current_map("NCF_Default_OCD_Data", default_ocd_data); ocd_control(False, default_ocd_data);
ocd_control(False, "NCF_Default");
import <zlib.ash>;
int [string] default_ocd_data;
load_current_map("OCDdata_NCF_Default", default_ocd_data);
map_to_file(default_ocd_data, "OCDdata_NCF_Default.txt");
ocd_control(False, "NCF_Default");
record {
string action;
int q;
string info;
string message;
} [item] default_ocd_data;
Dropping items into stash (request 4 of 4)...
Stocking up on requred items!
Verifying ingredients for scroll of ancient forbidden unspeakable evil (1)...
Pulling items from stash...
You acquire an item: disintegrating quill pen
Pulling items from stash...
You acquire an item: tattered scrap of paper
Creating scroll of ancient forbidden unspeakable evil (1)...
You acquire an item: scroll of ancient forbidden unspeakable evil
Successfully created scroll of ancient forbidden unspeakable evil (1)
Pulling items from stash...
You acquire thin black candle (1,916)
itrace: thin black candle = 1921
Searching for "thin black candle"...
Search complete.
Purchasing thin black candle (3 @ 288)...
You acquire thin black candle (3)
itrace: thin black candle = 1924
Purchases complete.
Anticipated monetary gain from inventory cleansing: 306 meat.
> call scripts\OCD Inventory Control.ash
stash put 1916 thin black candle
Dropping items into stash...
itrace: thin black candle = 8
Stocking up on requred items!
Pulling items from stash...
You acquire inkwell (63)
Searching for "inkwell"...
Search complete.
Purchasing inkwell (1 @ 341)...
You acquire an item: inkwell
Purchases complete.
Nothing to do. I forsee no additional meat in your future.
> call scripts\OCD Inventory Control.ash
stash put 63 inkwell
Dropping items into stash...
Stocking up on requred items!
Nothing to do. I forsee no additional meat in your future.
Requests complete.
> call scripts\OCD Inventory Control.ash
Stocking up on requred items!
Nothing to do. I forsee no additional meat in your future.
Stocking up on requred items!
Pulling items from stash...
You acquire Mae West (47)
Verifying ingredients for Mae West (4)...
Verifying ingredients for rabbit punch (4)...
Pulling items from stash...
You acquire bottle of Domesticated Turkey (4)
Pulling items from stash...
You acquire raspberry (4)
Creating rabbit punch (4)...
You acquire rabbit punch (4)
Successfully created rabbit punch (4)
Creating Mae West (4)...
You acquire Mae West (4)
Successfully created Mae West (4)
Anticipated monetary gain from inventory cleansing: 84 meat.
> call scripts\OCD Inventory Control.ash
stash put 47 Mae West
Dropping items into stash...
Stocking up on requred items!
Nothing to do. I forsee no additional meat in your future.
Requests complete.
> call scripts\OCD Inventory Control.ash
Stocking up on requred items!
Nothing to do. I forsee no additional meat in your future.
I am having a strange issue with the stocking function. OCD takes all of the items it is looking for from the clan stash, then proceeds to purchase the item as well. If I keep re-running the script it eventually works everything out.
Also, the "required" in "Stocking up on requred items!" is missing an "i". (ocd)
EDIT:
It appears that it also pulls from stash and then creates (as well as buying).
Roughly every second auction OCD sends to kBay (I'm only sending Klaw items, and I'm using the default data to do so) gets sent back because no one bid on it. Perhaps the default data should be changed slightly (prices brought down a little, or duration extended again)? Obviously I (and other users) can change our own data, but I just thought I'd mention it in case it was something you wanted to change yourself.
It's only pulling from the stash because you told KoLmafia that it can acquire items from the stash at will. It obeys that preference.
As for the rest... I'd have to know what you data file looked like to figure it out.
Oh. I've found the reason for the bug. It's really annoying. Unfortunately I don't have the time and concentration to fix it right now. I'm going to have to make it more complicated than I originally thought.
Hopefully I'll fix it later, but no promises since my computer is broken right now and I'm on a friend's computer.
Hopefully I'll fix it later, but no promises since my computer is broken right now and I'm on a friend's computer.
> ocd inventory control.ash
Saving outfit: Backup
Outfit saved
Taking off everything...
Everything removed.
send to mallmulti Monkey Lord: 3 "DRINK ME" potion, 1 7-ball, 1 accidental cider, 1 bilge wine, 4 black & tan, 2 blue pixel potion, 1 boilermaker, 4 bottle of popskull, 1 bottle of vodka, 3 bowl of lucky charms, 192 BRICKO brick
Sale price for this line: 0
send to mallmulti Monkey Lord: 12 BRICKO eye brick, 7 coconut shell, 12 dry noodles, 2 especially salty dog, 2 extra-spicy bloody mary, 2 Knob Goblin lunchbox, 3 little paper umbrella, 2 Mick's IcyVapoHotness Inhaler, 15 prismatic wad, 5 scratch 'n' sniff apple sticker, 6 scratch 'n' sniff rock band sticker
Sale price for this line: 0
send to mallmulti Monkey Lord: 1 scratch 'n' sniff unicorn sticker, 2 scratch 'n' sniff UPC sticker, 4 scratch 'n' sniff wrestler sticker, 1 seal-clubbing club, 8 sugar shard, 6 tasty tart, 14 ten-leaf clover, 3 white lightning
Sale price for this line: 0
Transferring items to store (request 1 of 3)...
Items offered up for sale.
Transferring items to store (request 2 of 3)...
Items offered up for sale.
Transferring items to store (request 3 of 3)...
Items offered up for sale.
kBay "VIP Klaw Stuffies" 3 stuffed Baron von Ratsworth @ 1000, 2 stuffed key @ 2000, 2 stuffed Meat @ 1000, 3 stuffed mink @ 1000, 1 stuffed monocle @ 1000, 1 stuffed teddy butler @ 1000, 2 stuffed tin of caviar @ 1000, 7 stuffed treasure chest @ 2000
Minimum bid for this lot: 30,000
Minimum biding for all auctions = 30,000
Minimum biding for all auctions = 30,000
Putting on outfit: Backup
Equipment changed.
Anticipated monetary gain from inventory cleansing: 60,000 meat.
Mall multi name entered, but checkbox unticked (I don't want to use my mall multi, it just makes my OCD happy to have the name stored there).
I do not have mall pricing set to max, it's on automatic.