I was curious if this was possible, and if so... how to go about doing it.
I have a crafting system where it costs certain items/ingredients and gold to make craftable goods. I'm using a plugin for the crafting system, but don't need plugin help. Basically, I do the plugin command to pull the crafting screen, and after you craft something, the event continues with an animation on a crafting table. This works great. The only issue I'm running into...
When you go into the crafting screen... if the player decides to not craft an item... and leaves... the crafting animation still happens. I need a conditional branch here, but I can't think of how to do this. The idea I had was to check if any amount of gold was used (since every item requires, at least, 1 gold)... and if 1 or more gold was used (crafting table animation happens). If 0 gold was used... the else branch just cancels the event and nothing happens.
However; I can't figure out if there's a way to have the game check how much gold the player has, and if any was spent, within that event. Is there a script call for this, possibly? I even attempted variables to see if I could have it check how much gold a player has... and then another to see if it can check if any was spent... but I couldn't figure that out. Figured I'd see if anyone in here knew, possibly, how this could be done?
Thanks in advance 😎
I have a crafting system where it costs certain items/ingredients and gold to make craftable goods. I'm using a plugin for the crafting system, but don't need plugin help. Basically, I do the plugin command to pull the crafting screen, and after you craft something, the event continues with an animation on a crafting table. This works great. The only issue I'm running into...
When you go into the crafting screen... if the player decides to not craft an item... and leaves... the crafting animation still happens. I need a conditional branch here, but I can't think of how to do this. The idea I had was to check if any amount of gold was used (since every item requires, at least, 1 gold)... and if 1 or more gold was used (crafting table animation happens). If 0 gold was used... the else branch just cancels the event and nothing happens.
However; I can't figure out if there's a way to have the game check how much gold the player has, and if any was spent, within that event. Is there a script call for this, possibly? I even attempted variables to see if I could have it check how much gold a player has... and then another to see if it can check if any was spent... but I couldn't figure that out. Figured I'd see if anyone in here knew, possibly, how this could be done?
Thanks in advance 😎