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

Scripted effect

disburse_tour_activity_rewards

disburse_tour_activity_rewards = yes

game/common/scripted_effects/00_activity_effects.txt, line 389 (305 lines). No parameters.

disburse_tour_activity_rewards is a scripted effect in Crusader Kings III, written at line 389 of its file. It takes no parameters: disburse_tour_activity_rewards = yes. The game's script calls it in 1 place, among them Grand Tour (activity). Its body carries 6 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_activity_effects.txt.

What it does

  • If tour success var at least 100:
    • Tier 5 Tour Rewards
    • scope:activity › Activity log entry:
      • You:
        • Gains the modifier “Magnificent Liege” for 20 years
        • Gain 500–1,000 Prestige
        • If

          • One of these

            • this.dynasty.dynast ?= this
            • or

              Is played by a person

          Then

          • Your dynasty: The dynasty gains … Renown
        • Every participating Parochial Vassal (…):
          • Where:
            • is_participant_in_activity = scope:activity
          • vassal_stance = parochial
          • Opinion: Liege Hosted Tour (+50)
      • Every visited Vassal: Opinion: Toured My Holdings (+30)
    • create_character_memory = { type = legendary_tour }
  • Else, if tour success var at least 80:
    • Tier 4 Tour Rewards
    • scope:activity › Activity log entry:
      • You:
        • Gains the modifier “Itinerant Liege” for 20 years
        • Gain 350–700 Prestige
        • If

          • One of these

            • this.dynasty.dynast ?= this
            • or

              Is played by a person

          Then

          • Your dynasty: The dynasty gains … Renown
        • Every participating Parochial Vassal (…):
          • Where:
            • is_participant_in_activity = scope:activity
          • vassal_stance = parochial
          • Opinion: Liege Hosted Tour (+40)
      • Every visited Vassal: Opinion: Toured My Holdings (+25)
    • create_character_memory = { type = good_tour }
  • Else, if tour success var at least 60:
    • Tier 3 Tour Rewards
    • scope:activity › Activity log entry:
      • You:
        • Gain 250–500 Prestige
        • If

          • One of these

            • this.dynasty.dynast ?= this
            • or

              Is played by a person

          Then

          • Your dynasty: The dynasty gains … Renown
        • Every participating Parochial Vassal (…):
          • Where:
            • is_participant_in_activity = scope:activity
          • vassal_stance = parochial
          • Opinion: Liege Hosted Tour (+35)
      • scope:activity › Every visited Vassal: Opinion: Toured My Holdings (+20)
    • create_character_memory = { type = good_tour }
  • Else, if tour success var at least 40:
    • Tier 2 Tour Rewards
    • scope:activity › Activity log entry › You:
      • Gain 150–300 Prestige
      • If

        • One of these

          • this.dynasty.dynast ?= this
          • or

            Is played by a person

        Then

        • Your dynasty: The dynasty gains … Renown
      • Every participating Parochial Vassal (…):
        • Where:
          • is_participant_in_activity = scope:activity
        • vassal_stance = parochial
        • Opinion: Liege Hosted Tour (+30)
    • create_character_memory = { type = good_tour }
  • Else, if tour success var at least 20:
    • Tier 1 Tour Rewards
    • scope:activity › Activity log entry › You: Gain 50–100 Prestige
    • create_character_memory = { type = underwhelming_tour }
  • Otherwise:
    • Consolation Prize
    • scope:activity › Activity log entry › You: Gain +200 Prestige
    • create_character_memory = { type = underwhelming_tour }
  • disburse_activity_stress_loss = yes
  • Gains the modifier “Dutiful Realm Knights” for 10 years
  • grand_activity_participation_legitimacy_effect = yes
  • pam_vows_of_poverty_host_completion_piety_effect = yes

• 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)
disburse_tour_activity_rewards = {
	# for the loc
	save_scope_as = root_scope

	# Rewards based on Magnficence level
	# Rewards based on Tour Type are handed out at the end of each stop

	# Success rewards (includes Magnificence points)
	# Max 50 points: 25 Magnificence levels + 25 from events
	#Level 5
	if = {
		limit = {
			var:tour_success_var >= 100
		}
		custom_tooltip = level_5_reward_tt
		scope:activity = {
			add_activity_log_entry = {
				key = level_5_reward_tt
				tags = { good major completed }
				show_in_conclusion = yes
				character = scope:root_scope

				# Effects
				root = {
					add_character_modifier = { #10 years
						modifier = mega_itinerant_liege_modifier
						years = 20
					}
					add_prestige = tour_level_5_prestige_reward
					if = {
						limit = {
							OR = {
								this.dynasty.dynast ?= this
								is_ai = no
							}
						}
						dynasty ?= { add_dynasty_prestige = major_dynasty_prestige_gain }
					}
					# Parochial Vassal Opinion
					every_vassal_or_below = {
						vassal_stance = parochial
						limit = {
							is_participant_in_activity = scope:activity
						}
						custom = every_participating_parochial_vassal
						add_opinion = {
							modifier = hosted_tour_opinion
							target = root
							opinion = 50
						}
					}
				}
				# Increase Vassal Opinion
				every_in_list = {
					variable = tour_visited_vassals
					custom = every_visited_vassal
					limit = {
						is_alive = yes
					}
					add_opinion = {
						modifier = tour_visited_vassal_opinion
						target = root
						opinion = 30
					}
				}
			}
		}
		create_character_memory = {
			type = legendary_tour
		}
	}
	#Level 4
	else_if = {
		limit = {
			var:tour_success_var >= 80
		}
		custom_tooltip = level_4_reward_tt
		scope:activity = {
			add_activity_log_entry = {
				key = level_4_reward_tt
				tags = { good major completed }
				show_in_conclusion = yes
				character = scope:root_scope

				# Effects
				root = {
					add_character_modifier = { #10 years
						modifier = itinerant_liege_modifier
						years = 20
					}
					add_prestige = tour_level_4_prestige_reward
					if = {
						limit = {
							OR = {
								this.dynasty.dynast ?= this
								is_ai = no
							}
						}
						dynasty ?= { add_dynasty_prestige = major_dynasty_prestige_gain }
					}
					# Parochial Vassal Opinion
					every_vassal_or_below = {
						vassal_stance = parochial
						limit = {
							is_participant_in_activity = scope:activity
						}
						custom = every_participating_parochial_vassal
						add_opinion = {
							modifier = hosted_tour_opinion
							target = root
							opinion = 40
						}
					}
				}

				# Increase Vassal Opinion
				every_in_list = {
					variable = tour_visited_vassals
					custom = every_visited_vassal
					limit = {

As written in game/common/scripted_effects/00_activity_effects.txt.

The first 120 of its 305 lines; the rest is in game/common/scripted_effects/00_activity_effects.txt from line 389.

Where it is used

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

Activities (1)

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