Feature - Implemented Adventure consult function for choice adventures

Rinn

Developer
Would it be feasible to add a second adventure consult function that handles choice adventures?

Something along these lines:
Code:
int consult_choice(int choiceAdv, string text)
{
    switch(choiceAdv)
    {
        // custom logic, returns an int for what choice to select
    }

    // return the default setting
    return get_property( "choiceAdventure" + choiceAdv.to_string() ).to_int();
}
 

Bale

Minion
Well you could always just run your adventures one at a time and check conditions to change the choices for your choice adventures before each iteration. That should work the same without needing a new feature.
 

Rinn

Developer
It doesn't because I want to be able to print a message or do some logic after the adventure is found but before the action is taken. This is basically the last thing I need so I don't ever had to use visit_url when adventuring and processing choice adventures manually. I just really don't like using visit_url when adventuring because it bypasses a ton of automation.
 
Last edited:

gausie

D̰͕̝͚̤̥̙̐̇̑͗̒e͍͔͎͈͔ͥ̉̔̅́̈l̠̪̜͓̲ͧ̍̈́͛v̻̾ͤe͗̃ͥ̐̊ͬp̔͒ͪ
Staff member
This is now covered by choiceAdventureScript
 
Top