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_clean_up_variables_effect

tribute_mission_clean_up_variables_effect = yes

game/common/scripted_effects/tgp_tribute_mission_scripted_effects.txt, line 1 (27 lines). No parameters.

tribute_mission_clean_up_variables_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1 of its file. It takes no parameters: tribute_mission_clean_up_variables_effect = yes. The game's script calls it in 8 places, among them Tribute Mission: Change of Plans (event tribute_mission.9800), Tribute Mission: Tribute No More (event tribute_mission.9750) and tribute_mission_1010_complete_effect (local effect). Patch 1.20.1.2, from game/common/scripted_effects/tgp_tribute_mission_scripted_effects.txt.

What it does

• 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 (27 lines of game script)
tribute_mission_clean_up_variables_effect = {
	remove_variable = tribute_mission_target_scope
	remove_variable = offered_gold_value
	remove_variable = tribute_mission_type
	remove_variable = offered_herd_value
	remove_variable = offered_concubine
	remove_variable = offered_eunuch
	remove_variable = offered_artifact
	remove_variable = tribute_reward_fascination_progress

	if = {
		limit = {
			has_character_flag = tribute_mission_character_flag # Under select circumstances it's possible this will be rerun, so this avoids an error
		}
		remove_character_flag = tribute_mission_character_flag
	}

	if = {
		limit = { exists = scope:receiving_character }
		scope:receiving_character = {
			if = {
				limit = { has_character_flag = created_attendant }
				silent_disappearance_effect = yes
			}
		}
	}
}

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_clean_up_variables_effect.

Events (2)

Scripted effects inside an event file (1)

  • tribute_mission_1010_complete_effect

On actions (the game's own hooks) (4)

  • on_travel_plan_abort
  • on_travel_plan_cancel
  • on_travel_plan_complete
  • tribute_mission_travel_planner_exit

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?