Always Consume Currency #67
Unanswered
NerdyViking
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Can anyone help me with my recipe macro? Currently I'm using the script given in the wiki that ALWAYS consumes the first ingredient upon crafting, regardless of success.
const ingredient1 = Object.values(recipeData.ingredients)[0]; result.updateComponent("consumed",ingredient1, (componentResult, quantity) => { componentResult.userInteraction = "always" });
I'm hoping to find a way to include with this macro to always consume any associated gold costs. So, when a person attempts to craft an item, whether they succeed or fail, they will lose BOTH the gold cost AND the first ingredient?
Beta Was this translation helpful? Give feedback.
All reactions