You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since you can run a workflow within another, a common pattern I have is something like this:
Script: Mine Essence
Run-script: Gather Moles, until next step trigger
When qty Mole >= 100: Run-script: Gather Ravens, until next step trigger
When qty Raven >= 100: Equip summons, mine essence
When qty mole <= 0 || qty Raven <= 0: Goto Step 1
Script: Gather Moles
Mine Augite
When qty Augite >= 10: Buy shards, Craft Mole
When Augite <= 0 || shards <= 0: Goto 1
A nice convenience would be an exit handler for gather moles that sells off any remaining Augite and Shards when the script exits, regardless of if it exits naturally or due to being cut off by another script. I'd prefer it in the Script itself rather than the caller, so it's more easily reusable.
Bonus points for having if statements in the exit manager(if qty augite <= 10: sell augite to make sure I don't sell something I'm building a stockpile of currently.).
Code of Conduct
I agree to follow the code of conduct
My request fits the contribution guidelines
I have searched for similar issues and nothing similar exists
The text was updated successfully, but these errors were encountered:
Category
A new trigger
What are you missing?
Since you can run a workflow within another, a common pattern I have is something like this:
A nice convenience would be an exit handler for
gather moles
that sells off any remaining Augite and Shards when the script exits, regardless of if it exits naturally or due to being cut off by another script. I'd prefer it in the Script itself rather than the caller, so it's more easily reusable.Bonus points for having if statements in the exit manager(
if qty augite <= 10: sell augite
to make sure I don't sell something I'm building a stockpile of currently.).Code of Conduct
The text was updated successfully, but these errors were encountered: