That is exactly right. Good luck! Just loop through your recipe grid and check if it matches each item. Not too hard if you're familiar with grids and loops.So if I understand correctly, you have a ds_grid for the crafting slots. Say we have two crafting slots:The recipe grid, if I follow you, will be the total number of recipes wide, and since we have 2 crafting slots, 4 elements tall. So:Code:
global.crafting_slots = ds_grid_create(2, 2);The underlying logic of checking the correct item and quantity and outputting the right item shouldn't be too difficult.Code:
global.recipes = ds_grid_create(recipe.total, 4);
Is the basic implementation I described as intended?