Hiii. I was wondering how I could make it that consuming a certain Item would give its ID to a certain Variable, and so update it each time you consume a new Item. I'm not good at scripting so I'm getting nowhere...
Something like $game_variables[x] = item.id...? But where should I put it and how? No idea.
if the item has a value, you can place the code into the damage formula.
and because this formula is unique for each item, you can simply use the number for the item there.
something like
$game_variables[x]=123; regular damage formula
for the item with the ID 123.
If the item has no damage formula to execute, then it becomes more problematic and you'll have to use a script to place the line into the engine's item execution process.
I think it... Worked? My item have no damage formula so Andar's suggestion didn't fit. (Thank you, btw!)
I couldn't even get to work Dev's suggestion (Did I have to write something more than Gamevar_Item = x? I guess so, sorry I really know nothing)
Anyway I randomly tried to put a "$game_variables[70] = @item.id" under the consumable condition in Scene_Item, and it works??? Is my PC going to explode because I can't script and I just put a random thing without any knowledge? Hahah
KK20, I don't need to use those items in battle so I guess I was alright with Dev's suggestion. Altough someone may get to this post and need that too, so thanks anyway!