namespace = cidle_select_animation

cidle_select_animation.0001 = {
    type = character_event
    hidden = yes
    
    immediate = {
        scope:recipient = {
            remove_character_flag = cidle_idle
            remove_character_flag = cidle_honorable
            remove_character_flag = cidle_dishonorable
            remove_character_flag = cidle_bold
            remove_character_flag = cidle_coward
            remove_character_flag = cidle_greedy
            remove_character_flag = cidle_content
            remove_character_flag = cidle_vengeful
            remove_character_flag = cidle_forgiving
            remove_character_flag = cidle_rational
            remove_character_flag = cidle_irrational
            remove_character_flag = cidle_compassionate
            remove_character_flag = cidle_callous
            remove_character_flag = cidle_zealous
            remove_character_flag = cidle_cynical
        }
    }
}

cidle_select_animation.0002 = {
    type = character_event
    title = cidle_select_animation.0001.t
    desc = cidle_select_animation.0001.desc
    theme = realm
    
    right_portrait = {
        character = scope:actor
    }
    
    left_portrait = {
        character = scope:recipient
        trigger = { NOT = { scope:actor = scope:recipient } }
    }
    
    option = {
        name = cidle_select_animation.idle
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_idle
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0002
        }
    }
    
    option = {
        name = cidle_select_animation.honorable
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_honorable
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0002
        }
    }

    option = {
        name = cidle_select_animation.dishonorable
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_dishonorable
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0002
        }
    }

    option = {
        name = cidle_select_animation.bold
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_bold
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0002
        }
    }

    option = {
        name = cidle_select_animation.coward
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_coward
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0002
        }
    }

    option = {
        name = cidle_select_animation.clear
        scope:recipient = {
            remove_character_flag = cidle_set
            trigger_event = cidle_select_animation.0001
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0002
        }
    }
    
    option = {
        name = cidle_select_animation.more
        scope:recipient = { trigger_event = cidle_select_animation.0003 }
    }
    
    option = {
        name = cidle_select_animation.exit
    }
}

cidle_select_animation.0003 = {
    type = character_event
    title = cidle_select_animation.0001.t
    desc = cidle_select_animation.0001.desc
    theme = realm
    
    right_portrait = {
        character = scope:actor
    }
    
    left_portrait = {
        character = scope:recipient
        trigger = { NOT = { scope:actor = scope:recipient } }
    }
        
    option = {
        #name = cidle_select_animation.greedy
        name = trait_greedy
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_greedy
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0003
        }
    }

    option = {
        #name = cidle_select_animation.content
        name = CONTENT
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_content
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0003
        }
    }

    option = {
        #name = cidle_select_animation.vengeful
        name = trait_vengeful
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_vengeful
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0003
        }
    }

    option = {
        #name = cidle_select_animation.forgiving
        name = trait_forgiving
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_forgiving
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0003
        }
    }

    option = {
        name = cidle_select_animation.rational
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_rational
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0003
        }
    }
    
    option = {
        name = cidle_select_animation.more
        scope:recipient = { trigger_event = cidle_select_animation.0004 }
    }
    
    option = {
        name = cidle_select_animation.exit
    }
}

cidle_select_animation.0004 = {
    type = character_event
    title = cidle_select_animation.0001.t
    desc = cidle_select_animation.0001.desc
    theme = realm
    
    right_portrait = {
        character = scope:actor
    }
    
    left_portrait = {
        character = scope:recipient
        trigger = { NOT = { scope:actor = scope:recipient } }
    }
    
    option = {
        name = cidle_select_animation.irrational
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_irrational
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0004
        }
    }

    option = {
        #name = cidle_select_animation.compassionate
        name = trait_compassionate
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_compassionate
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0004
        }
    }

    option = {
        #name = cidle_select_animation.callous
        name = trait_callous
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_callous
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0004
        }
    }

    option = {
        #name = cidle_select_animation.zealous
        name = trait_zealous
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_zealous
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0004
        }
    }

    option = {
        #name = cidle_select_animation.cynical
        name = trait_cynical
        scope:recipient = {
            trigger_event = cidle_select_animation.0001
            add_character_flag = cidle_set
            add_character_flag = cidle_cynical
        }
        scope:actor = {
            trigger_event = cidle_select_animation.0004
        }
    }
    
    option = {
        name = cidle_select_animation.more
        scope:recipient = { trigger_event = cidle_select_animation.0002 }
    }
    
    option = {
        name = cidle_select_animation.exit
    }
}
