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_travel_to_contract_location_effect

mandala_travel_to_contract_location_effect = { ARRIVAL_EVENT = … DESTINATION = … }

game/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 2524 (360 lines). Parameters: $ARRIVAL_EVENT$, $DESTINATION$.

mandala_travel_to_contract_location_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 2524 of its file. A call passes 2 parameters: ARRIVAL_EVENT and DESTINATION. The game's script calls it in 42 places, among them mandala_realm_contract_0001 (contract), mandala_realm_contract_0002 (contract) and mandala_realm_contract_0003 (contract). Patch 1.20.1.2, from game/common/scripted_effects/tgp_mandala_scripted_effects.txt.

What it does

  • If a check the game hides passes: the same again (1 line)
    • Sets out on a journey (a travel plan)
    Else if a check the game hides passes: the same again (1 line)
    • Sets out on a journey (a travel plan)
    Else if a check the game hides passes: the same again (1 line)
    • Sets out on a journey (a travel plan)
    Else if a check the game hides passes: the same again (1 line)
    • Sets out on a journey (a travel plan)
    Else if a check the game hides passes: the same again (1 line)
    • Sets out on a journey (a travel plan)

    Otherwise

    • Sets out on a journey (a travel plan)

• 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_travel_to_contract_location_effect = {
	save_scope_as = court_owner
	random_courtier = {
		limit = {
			is_available = yes
			NOT = { has_court_position = travel_leader_court_position }
		}
		weight = {
			base = 1
			modifier = {
				add = 100
				scope:court_owner.house = {
					has_house_aspiration_parameter = aspect_of_creation
				}
				OR = {
					is_child_of = scope:court_owner
					is_grandchild_of = scope:court_owner
					is_great_grandchild_of = scope:court_owner
					is_consort_of = scope:court_owner
				}
			}
			modifier = {
				add = 10
				scope:court_owner.house = {
					has_house_aspiration_parameter = aspect_of_creation
				}
				is_close_or_extended_family_of = scope:court_owner
			}
			modifier = {
				add = diplomacy
				scope:court_owner.house = {
					has_house_aspiration_parameter = aspect_of_serenity
				}
			}
			modifier = {
				add = prowess
				scope:court_owner.house = {
					has_house_aspiration_parameter = aspect_of_destruction
				}
			}
			modifier = {
				add = intrigue
				scope:court_owner.house = {
					has_house_aspiration_parameter = aspect_of_trickery
				}
			}
			modifier = {
				add = 1000
				has_court_position = court_physician_court_position
			}
		}
		save_scope_as = follower_1
	}
	if = {
		limit = {
			exists = scope:follower_1
		}
		random_courtier = {
			limit = {
				is_available = yes
				this != scope:follower_1
				NOT = { has_court_position = travel_leader_court_position }
			}
			weight = {
				base = 1
				modifier = {
					add = 100
					scope:court_owner.house = {
						has_house_aspiration_parameter = aspect_of_creation
					}
					OR = {
						is_child_of = scope:court_owner
						is_grandchild_of = scope:court_owner
						is_great_grandchild_of = scope:court_owner
						is_consort_of = scope:court_owner
					}
				}
				modifier = {
					add = 10
					scope:court_owner.house = {
						has_house_aspiration_parameter = aspect_of_creation
					}
					is_close_or_extended_family_of = scope:court_owner
				}
				modifier = {
					add = diplomacy
					scope:court_owner.house = {
						has_house_aspiration_parameter = aspect_of_serenity
					}
				}
				modifier = {
					add = prowess
					scope:court_owner.house = {
						has_house_aspiration_parameter = aspect_of_destruction
					}
				}
				modifier = {
					add = intrigue
					scope:court_owner.house = {
						has_house_aspiration_parameter = aspect_of_trickery
					}
				}
			}
			save_scope_as = follower_2
		}
	}
	if = {
		limit = {
			exists = scope:follower_2
		}
		random_courtier = {
			limit = {
				is_available = yes
				this != scope:follower_1
				this != scope:follower_2
				NOT = { has_court_position = travel_leader_court_position }
			}
			weight = {
				base = 1
				modifier = {

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

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

Where it is used

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

Task contracts (41)

  • mandala_realm_contract_0001
  • mandala_realm_contract_0002
  • mandala_realm_contract_0003
  • mandala_realm_contract_0004
  • mandala_realm_contract_0005
  • mandala_realm_contract_0006
35 more
  • mandala_realm_contract_0007
  • mandala_realm_contract_0008
  • mandala_realm_contract_0009
  • mandala_realm_contract_0010
  • mandala_realm_contract_0011
  • mandala_realm_contract_0012
  • mandala_realm_contract_0013
  • mandala_realm_contract_0014
  • mandala_realm_contract_0015
  • mandala_realm_contract_0016
  • mandala_realm_contract_0017
  • mandala_realm_contract_0018
  • mandala_realm_contract_0019
  • mandala_realm_contract_0020
  • mandala_realm_contract_0021
  • mandala_realm_contract_0022
  • mandala_realm_contract_0023
  • mandala_realm_contract_0024
  • mandala_realm_contract_0025
  • mandala_realm_contract_0026
  • mandala_realm_contract_0027
  • mandala_realm_contract_0028
  • mandala_realm_contract_0029
  • mandala_realm_contract_0030
  • mandala_realm_contract_0031
  • mandala_realm_contract_0032
  • mandala_realm_contract_0033
  • mandala_realm_contract_0034
  • mandala_realm_contract_0035
  • mandala_realm_contract_0036
  • mandala_realm_contract_0037
  • mandala_realm_contract_0038
  • mandala_realm_contract_0039
  • mandala_realm_contract_0040
  • mandala_realm_contract_0041

Events (1)

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?