I'm discovering the Windower Craft addon and I really enjoy it. But there's something that itches me :
I've been adding info to the recipe file so that when I write //craft find "this", I know the synth type and lvl. This lets me know when I can craft the Bat Wings, Pebble and Hare Meat of this world without always opening ffxiclopedia of bg-wiki before npc'ing them. But I realised that it only looks for recipe NAMES and not ingredient.
For example : //craft find "Revival Root" gives no result even though they're ingredients of Bloody Blade or Bloody Bolt Head (to name a few).
I've been poking around the lua to make it search for ingredients too but I don't know what I'm doing, I have no knowledge of coding or anything but I'd love this "ingame notebook" to work !
I didn't break my addon yet, but I'd love if someone knew a magic luacode to make it search for ingredients too !
I had a hunch that the thing to add would go somewhere near :
Code
local function handle_find(query, details) local query = query:lower() notice("Searching for recipes containing %s":format(query)) for name, recipe in pairs(recipes) do if string.find(name:lower(), query) then notice("Found recipe - \"%s\"":format(name)) if details then notice(" %s":format(recipe['crystal'])) for _, ingredient in pairs(recipe['ingredients']) do notice(" %s":format(ingredient)) end end end end end
Thaaaanks !