accessing the concoctions database

tebee

Member
Is it possible to access the concoctions database from a script? What I want to do is to be able to produce a shopping list of things I would need to buy to make "x" of an item i.e. the bits I don't have in inventory at the moment.

I'm guessing the way forward might be to use a map to read the file, unfortunately on my map, the map command is marked "here there be dragons" or in other words I haven't the faintest idea where to start with this.........


Tom
 

holatuwol

Developer
int [item] get_ingredients( item )
Each 'item' key is a known ingredient, each 'int' value is how many of that item is required.
 

Paragon

Member
Is there a way to get the amount of drunkeness,adventures and substats a booze or food gives or should that be grabbed from a data file?
 
Top