is it possible to use variable as crafting material?

http://yanfly.moe/2016/01/15/yep-58-item-synthesis/

im using 2 currencies im my game.
i was wondering if i could use my residuum currency variable as a crafting material instead of gold?
Yeah, shouldn't be a problem.

So what you wanna do is make a new item that's gonna be your crafting material for your currency.
You're gonna set it to be a Hidden Item so that the player can't see it physically in their inventory.
92e524bae1e9cff3d62f6f3d291d3a9d.png


Now make a control variable and set your currency variable to be equal to the number of this item you own.
You may have to update the way you currently distribute your secondary currency. Idk how residuum is acquired in your game but if its from like quests and monsters you'll have to update them to instead drop the new hidden item you made above.
b4b8c395d14be196a1770eb4d7e2f236.png


In the database just update the item synthesis ingredients to include the new hidden item.
And it should look like so when popping up in the synthesis menu.
5a071141e7734f2940d6d24a8a891bdd.png
other way around. using the variable as the requirement to craft. not crafting more money.

like: diamond dagger
requires 2 diamonds, 1 heavy metal ingot, and 1500 gold.
want to replace gold requirement with variable
(like v[41] requirement 35,000 to craft the dagger)

side note residuum is VERY easy to come by.
often have more then gold (partly because gold is currently being used for things i want residuum to be used for)
and WAAAY more then what an item can stack at
http://yanfly.moe/2016/01/22/yep-060-more-currencies/
No, I get what you're saying. This still serves the same function.
So like when you give your player Residuum, give it to them as the hidden item like explained above.
So even if you give them a lot, the amount you get is tied to that variable since the variable is == to the game data of the item.

So if you get 1,000 Residuum from a monster drop. The variable updates accordingly to the amount you have in your inventory. Just make it a hidden item so that the player can't see it as an item in their inventory and have it display however you're currently displaying it.

Now, you just take on the item as a requirement for crafting.
So the ingredients would include your item which is just a way to store your currency variable.
And item stacks can be easily broken with Yanfly's plugins lol.
03d0acf7aa5efb844096265b29a9dcb8.png


EDIT: lol decided to just try and explain it in video form.
the debug is working fine. the variable is only going to update when an event tells it to. so it wont actively track the amount u have unless its updating from an auto run parallel event slowing down the game. so its basicly just using a normal item that needs to break the already established item caps just so this 1 item can have an insane stack n have the variable currency meaningless

guess ill just have to make some smithing and alchemy tools with different tiers to spend that residuum on so it not eating away at my gold which need for other things

but thanks or trying anyways. (literally just came to me about buying tools that replace the gold while watching ur vid 😛)
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-use-variable-as-crafting-material.95209/