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

Scripted trigger

has_completed_one_tree_in_current_lifestyle_trigger

has_completed_one_tree_in_current_lifestyle_trigger = yes

game/common/scripted_triggers/00_lifestyle_triggers.txt, line 174 (64 lines). No parameters.

has_completed_one_tree_in_current_lifestyle_trigger is a scripted trigger in Crusader Kings III, written at line 174 of its file. It takes no parameters: has_completed_one_tree_in_current_lifestyle_trigger = yes (or no). The game's script calls it in 1 place, among them ai_chance_to_switch_to_travel_focus_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/00_lifestyle_triggers.txt.

What it checks

  • One of these

    • All of these

      • One of these

        • has_focus = diplomacy_foreign_affairs_focus
        • or

          has_focus = diplomacy_majesty_focus
        • or

          has_focus = diplomacy_family_focus
      • One of these

    • or

      All of these

      • One of these

        • has_focus = intrigue_skulduggery_focus
        • or

          has_focus = intrigue_temptation_focus
        • or

          has_focus = intrigue_intimidation_focus
      • One of these

    • or

      All of these

      • One of these

        • has_focus = learning_medicine_focus
        • or

          has_focus = learning_scholarship_focus
        • or

          has_focus = learning_theology_focus
      • One of these

    • or

      All of these

      • One of these

        • has_focus = martial_strategy_focus
        • or

          has_focus = martial_authority_focus
        • or

          has_focus = martial_chivalry_focus
      • One of these

    • or

      All of these

• 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 (64 lines of game script)
has_completed_one_tree_in_current_lifestyle_trigger = {
	OR = {
		AND = {
			OR = {
				has_focus = diplomacy_foreign_affairs_focus
				has_focus = diplomacy_majesty_focus
				has_focus = diplomacy_family_focus
			}
			OR = {
				has_perk = august_perk
				has_perk = family_man_perk
				has_perk = diplomat_perk
			}
		}
		AND = {
			OR = {
				has_focus = intrigue_skulduggery_focus
				has_focus = intrigue_temptation_focus
				has_focus = intrigue_intimidation_focus
			}
			OR = {
				has_perk = torturer_perk
				has_perk = schemer_perk
				has_perk = seducer_perk
			}
		}
		AND = {
			OR = {
				has_focus = learning_medicine_focus
				has_focus = learning_scholarship_focus
				has_focus = learning_theology_focus
			}
			OR = {
				has_perk = whole_of_body_perk
				has_perk = erudite_perk
				has_perk = theologian_perk
			}
		}
		AND = {
			OR = {
				has_focus = martial_strategy_focus
				has_focus = martial_authority_focus
				has_focus = martial_chivalry_focus
			}
			OR = {
				has_perk = gallant_perk
				has_perk = overseer_perk
				has_perk = strategist_perk
			}
		}
		AND = {
			OR = {
				has_focus = stewardship_wealth_focus
				has_focus = stewardship_domain_focus
				has_focus = stewardship_duty_focus
			}
			OR = {
				has_perk = architect_perk
				has_perk = administrator_perk
				has_perk = avaricious_perk
			}
		}
	}
}

As written in game/common/scripted_triggers/00_lifestyle_triggers.txt.

Where it is used

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

Source: game/common/scripted_triggers/00_lifestyle_triggers.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?