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

Scripted effect

disburse_carnival_rewards

disburse_carnival_rewards = yes

game/common/scripted_effects/00_activity_effects.txt, line 4277 (143 lines). No parameters.

disburse_carnival_rewards is a scripted effect in Crusader Kings III, written at line 4277 of its file. It takes no parameters: disburse_carnival_rewards = yes. The game's script calls it in 2 places, among them Carnival (activity) and Return to the Mundane (event carnival.1002). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/00_activity_effects.txt.

What it does

  • If

    a check the game hides

    Then

    • scope:activity › Activity log entry:
      • If

        • scope:activity:
          • has_activity_option = { category = carnival_option_decoration option = carnival_decoration_extravagant }

        Then

        Else if

        • scope:activity:
          • has_activity_option = { category = carnival_option_decoration option = carnival_decoration_basic }

        Then

        Otherwise

  • If

    a check the game hides

    Then

    • scope:activity › Activity log entry:
      • If

        • scope:activity:
          • has_activity_option = { category = carnival_option_entertainment option = carnival_entertainment_extravagant }

        Then

        • activity_location.county = { … }

        Else if

        • scope:activity:
          • has_activity_option = { category = carnival_option_entertainment option = carnival_entertainment_basic }

        Then

        • activity_location.county = { … }

        Otherwise

        • activity_location.county = { … }
  • If

    Then

    • You will not lose Stress since you are Shy or Reclusive

    Otherwise

    • Stress and fulfillment impact: -30, and by trait: Gluttonous -15, Gregarious -15, Eager Reveler -30, Drunkard -15, Comfort Eater -15, Generous -15, Greedy +15

• 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_carnival_rewards = {
	## Decoration tier rewards
	if = {
		limit = { this = scope:host }
		scope:activity = {
			add_activity_log_entry = {
				key = carnival_conc_reward
				score = 100 
				show_in_conclusion = yes
				character = root 
				if = {
					limit = {
						scope:activity = {
							has_activity_option = {
								category = carnival_option_decoration
								option = carnival_decoration_extravagant
							}
						}
					}
					root = {
						add_prestige = major_prestige_gain
					}
				}
				else_if = {
					limit = {
						scope:activity = {
							has_activity_option = {
								category = carnival_option_decoration
								option = carnival_decoration_basic
							}
						}
					}
					root = {
						add_prestige = minor_prestige_gain
					}							
				}
				else = {
					root = {
						add_prestige = medium_prestige_gain
					}
				}
			}
		}
	}
	## Entertainment tier rewards
	if = {
		limit = { this = scope:host }
		scope:activity = {
			add_activity_log_entry = {
				key = carnival_conc_reward
				score = 100 
				show_in_conclusion = yes
				character = root 
				if = {
					limit = {
						scope:activity = {
							has_activity_option = {
								category = carnival_option_entertainment
								option = carnival_entertainment_extravagant
							}
						}
					}
					activity_location.county = {
						add_county_modifier = {
							modifier = gdp_carnival_extravagant_celebration_modifier
							years = 5
						}
						change_county_control = {
							value = {
								integer_range = {
									min = 5
									max = 25
								}
							}
						}
					}
				}
				else_if = {
					limit = {
						scope:activity = {
							has_activity_option = {
								category = carnival_option_entertainment
								option = carnival_entertainment_basic
							}
						}
					}
					activity_location.county = {
						add_county_modifier = {
							modifier = gdp_carnival_basic_celebration_modifier
							years = 5
						}
						change_county_control = {
							value = {
								integer_range = {
									min = 5
									max = 10
								}
							}
						}	
					}	
				}
				else = {
					activity_location.county = {
						add_county_modifier = {
							modifier = gdp_carnival_extensive_celebration_modifier
							years = 5
						}
						change_county_control = {
							value = {
								integer_range = {
									min = 5
									max = 15
								}
							}
						}	
					}
				}
			}
		}
	}

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

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

Where it is used

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

Activities (1)

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

Spotted a mistake on this page, or have an idea for the site?