CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · All Under Heaven files

mandala_story_befriend_scheme_effect

mandala_story_befriend_scheme_effect = yes

game/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 3542 (205 lines). No parameters.

mandala_story_befriend_scheme_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3542 of its file. It takes no parameters: mandala_story_befriend_scheme_effect = yes. The game's script calls it in 2 places, among them story_mandala (story cycle) and mandala_story_serenity_aspect_befriend_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/tgp_mandala_scripted_effects.txt.

What it does

  • If

    • One of these

      • Their house:
        • has_house_head_parameter = unlock_befriend_scheme
      • or

        Has the Befriend Perk
    • One of these

      • None of these

        • Any scheme:
          • One of these

            • scheme_type = befriend
            • or

              scheme_type = sway
            • or

              scheme_type = seduce
            • or

              scheme_type = courting
            • or

              scheme_type = elope
            • or

              scheme_type = learn_language
      • or

        All of these

        • One of these

          • Their dynasty: The Dynasty has the Righteousness Legacy
          • or

            All of these

            • Have a Royal Court
            • has_dlc_feature = royal_court
            • has_court_type = court_diplomatic
            • Court grandeur current level at least 10
        • Scheme (less than 2):
          • One of these

            • scheme_type = befriend
            • or

              scheme_type = sway
            • or

              scheme_type = seduce
            • or

              scheme_type = courting
            • or

              scheme_type = elope
            • or

              scheme_type = learn_language
      • or

        All of these

        • Their dynasty: The Dynasty has the Righteousness Legacy
        • Have a Royal Court
        • has_dlc_feature = royal_court
        • has_court_type = court_diplomatic
        • Court grandeur current level at least 10
        • Scheme (less than 3):
          • One of these

            • scheme_type = befriend
            • or

              scheme_type = sway
            • or

              scheme_type = seduce
            • or

              scheme_type = courting
            • or

              scheme_type = elope
            • or

              scheme_type = learn_language

    Then

    • If

      a check the game hides

      Then

      • start_scheme = { type = befriend target_character = scope:befriend_target }

• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists

“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.

The script as written (120 lines of game script)
mandala_story_befriend_scheme_effect = {
	if = {
		limit = {
			OR = {
				house = { has_house_head_parameter = unlock_befriend_scheme }
				has_perk = befriend_perk
			}
			OR = {
				NOT = {
					any_scheme = {
						OR = {
							scheme_type = befriend
							scheme_type = sway
							scheme_type = seduce
							scheme_type = courting
							scheme_type = elope
							scheme_type = learn_language
						}
					}
				}
				AND = {
					OR = {
						dynasty ?= { has_dynasty_perk = glory_legacy_5 }
						AND = {
							has_royal_court = yes
							has_dlc_feature = royal_court
							has_court_type = court_diplomatic
							court_grandeur_current_level >= 10
						}
					}
					any_scheme = {
						count < 2
						OR = {
							scheme_type = befriend
							scheme_type = sway
							scheme_type = seduce
							scheme_type = courting
							scheme_type = elope
							scheme_type = learn_language
						}
					}
				}
				AND = {
					dynasty ?= { has_dynasty_perk = glory_legacy_5 }
					has_royal_court = yes
					has_dlc_feature = royal_court
					has_court_type = court_diplomatic
					court_grandeur_current_level >= 10
					any_scheme = {
						count < 3
						OR = {
							scheme_type = befriend
							scheme_type = sway
							scheme_type = seduce
							scheme_type = courting
							scheme_type = elope
							scheme_type = learn_language
						}
					}
				}
			}
		}
		every_courtier = {
			limit = {
				has_council_position = councillor_spymaster
				opinion = {
					target = scope:root_scope
					value < 100
				}
				save_temporary_scope_as = courtier_check
				scope:root_scope = {
					can_start_scheme = {
						type = befriend
						target_character = scope:courtier_check
					}
				}
			}
			add_to_list = befriend_targets
		}
		every_tributary = {
			limit = {
				opinion = {
					target = scope:root_scope
					value < 100
				}
				save_temporary_scope_as = tributary_check
				scope:root_scope = {
					can_start_scheme = {
						type = befriend
						target_character = scope:tributary_check
					}
				}
			}
			add_to_list = befriend_targets
		}
		every_vassal = {
			limit = {
				highest_held_title_tier >= tier_county
				opinion = {
					target = scope:root_scope
					value < 100
				}
				save_temporary_scope_as = vassal_check
				scope:root_scope = {
					can_start_scheme = {
						type = befriend
						target_character = scope:vassal_check
					}
				}
			}
			add_to_list = befriend_targets
		}
		every_neighboring_and_across_water_top_liege_realm_owner = {
			limit = {
				highest_held_title_tier >= tier_county
				opinion = {
					target = scope:root_scope
					value < 100
				}
				save_temporary_scope_as = ruler_check

As written in game/common/scripted_effects/tgp_mandala_scripted_effects.txt.

The first 120 of its 205 lines; the rest is in game/common/scripted_effects/tgp_mandala_scripted_effects.txt from line 3542.

Where it is used

Every place in common/, events/ and history/ that calls mandala_story_befriend_scheme_effect.

Story cycles (1)

  • story_mandala

Source: game/common/scripted_effects/tgp_mandala_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?