decisions = {

    ggsm_search_sacred_texts = {
        only_playable = yes

        potential = {
            society_member_of = ggsm_order_sacred_magdalene
            is_adult = yes
            is_female = yes
        }

        allow = {
            is_inaccessible_trigger = no
            prisoner = no
            in_command = no
            NOT = { has_character_flag = ggsm_book_search_in_progress }
            NOT = { has_character_flag = ggsm_book_search_cooldown }
        }

        effect = {
            custom_tooltip = {
                text = ggsm_book_search_twenty_year_cooldown_tt
            }

            export_to_variable = {
                which = ggsm_book_search_grace_cost
                value = society_currency
            }

            multiply_variable = {
                which = ggsm_book_search_grace_cost
                value = -0.15
            }

            change_society_currency = {
                society = ggsm_order_sacred_magdalene
                value = ggsm_book_search_grace_cost
                scaled_by_influence = no
            }

            long_character_event = { id = ggsm.500 }
        }

        ai_will_do = {
            factor = .05
        }
    }
}
