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

Scripted effect · Tours and Tournaments files

decrease_tour_success_effect

decrease_tour_success_effect = { POINTS = … }

game/common/scripted_effects/04_dlc_ep2_tour_effects.txt, line 453 (41 lines). Parameters: $POINTS$.

decrease_tour_success_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 453 of its file. A call passes 1 parameter: POINTS. The game's script calls it in 8 places, among them …: the Villain of … (event host_dinner_events.1081), A Cake to Remember (event host_dinner_events.1022) and A Local Delicacy (event host_dinner_events.3003). Its body carries 3 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tour_effects.txt.

What it does

  • If

    • scope:activity:
      • has_activity_option = { category = special_type option = tour_type_majesty }

    Then

    Else if

    • scope:activity:
      • has_activity_option = { category = special_type option = tour_type_taxation }

    Then

    Else if

    • scope:activity:
      • has_activity_option = { category = special_type option = tour_type_intimidation }

    Then

• 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 (41 lines of game script)
decrease_tour_success_effect = {
	if = {
		limit = {
			scope:activity = {
				has_activity_option = {
					category = special_type
					option = tour_type_majesty
				}
			}
		}
		custom_tooltip = tour_becomes_less_majestic_tt
	}
	else_if = {
		limit = {
			scope:activity = {
				has_activity_option = {
					category = special_type
					option = tour_type_taxation
				}
			}
		}
		custom_tooltip = tour_becomes_less_avaricious_tt
	}
	else_if = {
		limit = {
			scope:activity = {
				has_activity_option = {
					category = special_type
					option = tour_type_intimidation
				}
			}
		}
		custom_tooltip = tour_becomes_less_intimidating_tt
	}
	scope:activity = {
		change_variable = {
			name = tour_success_var
			subtract = $POINTS$
		}
	}
}

As written in game/common/scripted_effects/04_dlc_ep2_tour_effects.txt.

Where it is used

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

Events (8)

2 more

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