There's already excellent handling for numberology in the CLI, which I am trying to work it into my daily scripts as follows:
This may be a bit crude, but the intention is call numberology yy repeatedly for the number of calculate uses I have if yy is available, and otherwise to continue adventuring until yy becomes available. Currently, if yy is not available, mafia aborts the script so it cannot progress to the adventuring part. Is there either: 1) a way to handle the error in mafia so it can continue the loop or 2) access the CLI "numberology ?" output so that I can have the script check whether yy is available before it tries to execute it?
This is currently tripping me up as I don't have a lot of RL time to intervene if the script fails, nor do I want to waste the numberology resource because I can't figure out how to automate it. Can anyone help?
Code:
while (to_int(get_property("_universeCalculated")) < x) {
cli_execute("numberology yy");
if (to_int(get_property("_universeCalculated")) < x)
adv1($location[whereever], -1, ""); }
This may be a bit crude, but the intention is call numberology yy repeatedly for the number of calculate uses I have if yy is available, and otherwise to continue adventuring until yy becomes available. Currently, if yy is not available, mafia aborts the script so it cannot progress to the adventuring part. Is there either: 1) a way to handle the error in mafia so it can continue the loop or 2) access the CLI "numberology ?" output so that I can have the script check whether yy is available before it tries to execute it?
This is currently tripping me up as I don't have a lot of RL time to intervene if the script fails, nor do I want to waste the numberology resource because I can't figure out how to automate it. Can anyone help?
Last edited: