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

Scripted effect

tooltip_disburse_wedding_guest_activity_rewards

tooltip_disburse_wedding_guest_activity_rewards = yes

game/common/scripted_effects/00_activity_effects.txt, line 2520 (178 lines). No parameters.

tooltip_disburse_wedding_guest_activity_rewards is a scripted effect in Crusader Kings III, written at line 2520 of its file. It takes no parameters: tooltip_disburse_wedding_guest_activity_rewards = yes. The game's script calls it in 1 place, among them The Conclusion (event ep2_wedding.0970). Its body carries 9 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

  • scope:activity:
    • If

      • has_activity_option = { category = wedding_option_entertainment option = wedding_entertainment_good }

      Then

      Else if

      • has_activity_option = { category = wedding_option_entertainment option = wedding_entertainment_normal }

      Then

      Else if

      • has_activity_option = { category = wedding_option_entertainment option = wedding_entertainment_bad }

      Then

    • If

      • has_activity_option = { category = wedding_option_food option = wedding_food_good }

      Then

      • If

        • scope:host: Is played by the AI

        Then

        • … gained +15 Opinion with every attending character
      • If

        • scope:spouse_1: Is played by the AI

        Then

        • … gained +15 Opinion with every attending character
      • If

        • scope:spouse_2: Is played by the AI

        Then

        • … gained +15 Opinion with every attending character

      Else if

      • has_activity_option = { category = wedding_option_food option = wedding_food_normal }

      Then

      • If

        • scope:host: Is played by the AI

        Then

        • … gained +10 Opinion with every attending character
      • If

        • scope:spouse_1: Is played by the AI

        Then

        • … gained +10 Opinion with every attending character
      • If

        • scope:spouse_2: Is played by the AI

        Then

        • … gained +10 Opinion with every attending character

      Else if

      • has_activity_option = { category = wedding_option_food option = wedding_food_bad }

      Then

      • If

        • scope:host: Is played by the AI

        Then

        • … gained +5 Opinion with every attending character
      • If

        • scope:spouse_1: Is played by the AI

        Then

        • … gained +5 Opinion with every attending character
      • If

        • scope:spouse_2: Is played by the AI

        Then

        • … gained +5 Opinion with every attending character
    • If

      • has_activity_option = { category = wedding_option_decoration option = wedding_decoration_good }

      Then

      Else if

      • has_activity_option = { category = wedding_option_decoration option = wedding_decoration_normal }

      Then

      Else if

      • has_activity_option = { category = wedding_option_decoration option = wedding_decoration_bad }

      Then

  • disburse_activity_stress_loss = yes
  • grand_activity_participation_legitimacy_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)
tooltip_disburse_wedding_guest_activity_rewards = {
	scope:activity = {
		if = {
			limit = {
				has_activity_option = {
					category = wedding_option_entertainment
					option = wedding_entertainment_good
				}
			}
			root = { add_prestige = major_prestige_gain }
		}
		else_if = {
			limit = {
				has_activity_option = {
					category = wedding_option_entertainment
					option = wedding_entertainment_normal
				}
			}
			root = { add_prestige = medium_prestige_gain }
		}
		else_if = {
			limit = {
				has_activity_option = {
					category = wedding_option_entertainment
					option = wedding_entertainment_bad
				}
			}
			root = { add_prestige = minor_prestige_gain }
		}
		if = {
			limit = {
				has_activity_option = {
					category = wedding_option_food
					option = wedding_food_good
				}
			}
			if = {
				limit = {
					scope:host = { is_ai = yes }
				}
				custom_tooltip = came_to_my_wedding_opinion_host_high
			}
			if = {
				limit = {
					scope:spouse_1 = { is_ai = yes }
				}
				custom_tooltip = came_to_my_wedding_opinion_spouse_1_high
			}
			if = {
				limit = {
					scope:spouse_2 = { is_ai = yes }
				}
				custom_tooltip = came_to_my_wedding_opinion_spouse_2_high
			}
		}
		else_if = {
			limit = {
				has_activity_option = {
					category = wedding_option_food
					option = wedding_food_normal
				}
			}
			if = {
				limit = {
					scope:host = { is_ai = yes }
				}
				custom_tooltip = came_to_my_wedding_opinion_host_medium
			}
			if = {
				limit = {
					scope:spouse_1 = { is_ai = yes }
				}
				custom_tooltip = came_to_my_wedding_opinion_spouse_1_medium
			}
			if = {
				limit = {
					scope:spouse_2 = { is_ai = yes }
				}
				custom_tooltip = came_to_my_wedding_opinion_spouse_2_medium
			}
		}
		else_if = {
			limit = {
				has_activity_option = {
					category = wedding_option_food
					option = wedding_food_bad
				}
			}
			if = {
				limit = {
					scope:host = { is_ai = yes }
				}
				custom_tooltip = came_to_my_wedding_opinion_host_low
			}
			if = {
				limit = {
					scope:spouse_1 = { is_ai = yes }
				}
				custom_tooltip = came_to_my_wedding_opinion_spouse_1_low
			}
			if = {
				limit = {
					scope:spouse_2 = { is_ai = yes }
				}
				custom_tooltip = came_to_my_wedding_opinion_spouse_2_low
			}
		}
		if = {
			limit = {
				has_activity_option = {
					category = wedding_option_decoration
					option = wedding_decoration_good
				}
			}
			root = {
				add_character_modifier = {
					modifier = wedding_of_the_century_modifier
					years = 20
				}
				if = {

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

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

Where it is used

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

Events (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?