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

Scripted effect

diplomacy_foreign_special_1010_court_visit_outcome_preview_effect

diplomacy_foreign_special_1010_court_visit_outcome_preview_effect = { CHARACTER = … }

game/common/scripted_effects/00_diplomacy_lifestyle_effects.txt, line 107 (49 lines). Parameters: $CHARACTER$.

diplomacy_foreign_special_1010_court_visit_outcome_preview_effect is a scripted effect in Crusader Kings III, written at line 107 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 1 place, among them Hospitality (event diplomacy_foreign_special.1017). Its body carries 3 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_diplomacy_lifestyle_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (49 lines of game script)
diplomacy_foreign_special_1010_court_visit_outcome_preview_effect = {
	show_as_tooltip = {
		$CHARACTER$ = {
			random_list = {
				1 = {
					show_chance = no
					desc = diplomacy_foreign_special.1017.great
					
					root = {
						reverse_add_opinion = {
							target = $CHARACTER$
							modifier = friendliness_opinion
							opinion = 30
						}
						if = {
							limit = { $CHARACTER$ = scope:target_list_member_a }
							custom_tooltip = diplomacy_foreign_special.1017.friends_a
						}
						else_if = {
							limit = { $CHARACTER$ = scope:target_list_member_b }
							custom_tooltip = diplomacy_foreign_special.1017.friends_b			
						}
						else = {
							custom_tooltip = diplomacy_foreign_special.1017.friends_c
						}
						add_diplomacy_lifestyle_perk_points = 1
					}
				}
				1 = {
					show_chance = no
					desc = diplomacy_foreign_special.1017.good

					root = {
						diplomacy_foreign_special_1010_court_visit_outcome_good_effect = { CHARACTER = $CHARACTER$ }
					}
				}
				1 = {
					show_chance = no
					desc = diplomacy_foreign_special.1017.bad

					root = {
						diplomacy_foreign_special_1010_court_visit_outcome_bad_effect = { CHARACTER = $CHARACTER$ }
					}
				}
			}
		}
	}

}

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

Where it is used

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

Events (1)

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