int g_knownAscensions = get_property("knownAscensions").to_int();
void set_library_choices()
{
    // Take a Look, it's in a Book! (Rise): Unlock the second floor, then skip the adventure.
    if (get_property("lastSecondFloorUnlock").to_int() == g_knownAscensions)
        set_property("choiceAdventure80", "4");
    else
        set_property("choiceAdventure80", "99");
    // Take a Look, it's in a Book! (Fall): Unlock the Haunted Gallery first, then unlock the second floor, then skip the adventure.
    if (get_property("lastGalleryUnlock").to_int() == g_knownAscensions)
    {
        if (get_property("lastSecondFloorUnlock").to_int() == g_knownAscensions)
            set_property("choiceAdventure81", "4");
        else
            set_property("choiceAdventure81", "99");
    }
    else
    {
        set_property("choiceAdventure81", "1");
        set_property("choiceAdventure87", "2");
    }
}
void set_bedroom_choices()
{
    // One Nightstand (White): Fight an animated nightstand.
    set_property("choiceAdventure82", "3");
    // One Nightstand (Mahogany): Fight an animated nighstand.
    // Additionally you could check if you have Lord Spookyraven's spectacles equipped, and get your quest item if you don't already have it or the skill.
    set_property("choiceAdventure83", "2");
    // One Nightstand (Ornate): Get Lord Spookyraven's spectacles, else get myst substats.
    if (available_amount($item[Lord Spookyraven's spectacles]) == 0)
        set_property("choiceAdventure84", "3");
    else
        set_property("choiceAdventure84", "2");
    // One Nightstand (Wooden): Fight the remains of a jilted mistress if we already have the ballroom key.
    // Mafia will figure out the ballroom key adventures for us, but not the mirror.
    if (available_amount($item[Spookyraven ballroom key]) == 1)
        set_property("choiceAdventure85", "3");
}
void set_bathroom_choices()
{
    // Having a Medicine Ball: Defeat the guy made of bees, then skip the adventure.
    // I check for whether or not I want to kill him in a differnet script.
    if (get_property("guyMadeOfBeesDefeated").to_boolean() == false)
        set_property("choiceAdventure105", "3");
    else
    {
        set_property("choiceAdventure105", "2");
        set_property("choiceAdventure107", "4");
    }
}
void set_pirate_choices()
{
    // Fucking drunkeness bullshit choice adventure.
    // That Explains All The Eyepatches: Don't get drunk, always get a shot of rotgut instead.
    if (my_primestat() == $stat[mysticality])
        set_property("choiceAdventure184", "2");
    else if (my_primestat() == $stat[muscle])
        set_property("choiceAdventure184", "2");
    else if (my_primestat() == $stat[moxie])
        set_property("choiceAdventure184", "3");
}
void set_wheel_stat_choices()
{
    // Wheel in the Clouds in the Sky, Keep On Turning: Turn to my_primestat().
    if (my_primestat() == $stat[moxie])
    {
        set_property("choiceAdventure9", "2"); 
        set_property("choiceAdventure10", "2");
        set_property("choiceAdventure11", "1"); 
        set_property("choiceAdventure12", "3");    
    }
    else if (my_primestat() == $stat[muscle])
    {
        set_property("choiceAdventure9", "3"); 
        set_property("choiceAdventure10", "2");
        set_property("choiceAdventure11", "1"); 
        set_property("choiceAdventure12", "1");    
    }
    else if (my_primestat() == $stat[mysticality])
    {
        set_property("choiceAdventure9", "1"); 
        set_property("choiceAdventure10", "3");
        set_property("choiceAdventure11", "2"); 
        set_property("choiceAdventure12", "1");    
    }
}
void set_wheel_quest_choices()
{
    // Wheel in the Clouds in the Sky, Keep On Turning: Set to quest position (also to reduce noncombat rate).
    set_property("choiceAdventure9", "2"); 
    set_property("choiceAdventure10", "1");
    set_property("choiceAdventure11", "3"); 
    set_property("choiceAdventure12", "2");
}