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

tribute_mission_set_up_tribute_travel_effect

tribute_mission_set_up_tribute_travel_effect = yes

game/common/scripted_effects/tgp_tribute_mission_scripted_effects.txt, line 481 (58 lines). No parameters.

tribute_mission_set_up_tribute_travel_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 481 of its file. It takes no parameters: tribute_mission_set_up_tribute_travel_effect = yes. The game's script calls it in 7 places, among them Select Artifact Tribute (interaction), Select Bunga Mas Tribute (interaction) and Select Concubine Tribute (interaction). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/tgp_tribute_mission_scripted_effects.txt.

What it does

  • Otherwise:
    • error_log = Tribute mission target scope variable not set on character intending to travel!
  • trigger_event = { on_action = tribute_mission_start }
  • If

    • location = scope:tribute_mission_target.capital_province

    Then

  • Else, if has “offered concubine” (a variable the game's script sets): Sets out on a journey (a travel plan)
  • Else, if has “offered eunuch” (a variable the game's script sets): Sets out on a journey (a travel plan)
  • Otherwise:
    • Start traveling to … Capital in …
    • 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 (58 lines of game script)
tribute_mission_set_up_tribute_travel_effect = {
	#Recover the tribute_mission_target scope from saved var if it doesn't already exist
	if = {
		limit = { exists = var:tribute_mission_target_scope }
		var:tribute_mission_target_scope = {
			save_scope_as = tribute_mission_target
		}
	}
	else = {
		error_log = "Tribute mission target scope variable not set on character intending to travel!"
	}
	#Travel posted first should look neater in tooltip
	hidden_effect = { # ensure we subtract everything we've offered
		if = {
			limit = { has_variable = offered_gold_value }
			remove_short_term_gold = var:offered_gold_value
		}
		if = {
			limit = { has_variable = offered_herd_value }
			domicile ?= {
				change_herd = { subtract = prev.var:offered_herd_value }
			}
		}	
	}
	trigger_event = { on_action = tribute_mission_start }
	if = {
		limit = { location = scope:tribute_mission_target.capital_province }
		trigger_event = tribute_mission.0002
	}
	#Add the concubine
	else_if = {
		limit = { has_variable = offered_concubine }
		start_travel_plan = {
			destination = scope:tribute_mission_target.capital_province
			companion = var:offered_concubine
			on_travel_planner_cancel_on_action = tribute_mission_travel_planner_exit 
			on_arrival_event = tribute_mission.0002
		}
	}
	#Add the eunuch
	else_if = {
		limit = { has_variable = offered_eunuch }
		start_travel_plan = {
			destination = scope:tribute_mission_target.capital_province
			companion = var:offered_eunuch
			on_travel_planner_cancel_on_action = tribute_mission_travel_planner_exit 
			on_arrival_event = tribute_mission.0002
		}
	}
	else = {
		custom_tooltip = tribute_mission.travel_to.tt
		start_travel_plan = {
			destination = scope:tribute_mission_target.capital_province
			on_travel_planner_cancel_on_action = tribute_mission_travel_planner_exit 
			on_arrival_event = tribute_mission.0002
		}
	}
}

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

Where it is used

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

Source: game/common/scripted_effects/tgp_tribute_mission_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?