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_majesty_0004_outcome_effect

diplomacy_majesty_0004_outcome_effect = yes

game/common/scripted_effects/00_diplomacy_lifestyle_effects.txt, line 35 (67 lines). No parameters.

diplomacy_majesty_0004_outcome_effect is a scripted effect in Crusader Kings III, written at line 35 of its file. It takes no parameters: diplomacy_majesty_0004_outcome_effect = yes. The game's script calls it in 1 place, among them The Power of Words (event diplomacy_majesty.0004). Patch 1.20.1.2, from game/common/scripted_effects/00_diplomacy_lifestyle_effects.txt.

What it does

  • 1 of 3 things will happen:
    • 33% – Your compliment is well-received:
      • add_diplomacy_lifestyle_xp = medium_lifestyle_xp
      • reverse_add_opinion = { target = scope:compliment_receiver modifier = kindness_opinion opinion = 25 }
    • 33% – Your compliment falls flat:
      • add_diplomacy_lifestyle_xp = minor_lifestyle_xp
    • 33% – Your compliment comes across as an insult:
      • reverse_add_opinion = { target = scope:compliment_receiver modifier = cruelty_opinion opinion = -25 }

• 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 (67 lines of game script)
diplomacy_majesty_0004_outcome_effect = {
	random_list = {
		1 = {
			desc = diplomacy_majesty.0004.success.tt
			show_chance = no

			show_as_tooltip = {
				add_diplomacy_lifestyle_xp = medium_lifestyle_xp
				reverse_add_opinion = {
					target = scope:compliment_receiver
					modifier = kindness_opinion
					opinion = 25
				}
			}
		}
		1 = {
			desc = diplomacy_majesty.0004.neutral.tt
			show_chance = no
			show_as_tooltip = {
				add_diplomacy_lifestyle_xp = minor_lifestyle_xp
			}
		}
		1 = {
			desc = diplomacy_majesty.0004.failure.tt
			show_chance = no

			show_as_tooltip = {
				reverse_add_opinion = {
					target = scope:compliment_receiver
					modifier = cruelty_opinion
					opinion = -25
				}
			}
		}
	}

	hidden_effect = {
		if = {
			limit = {
				exists = scope:compliment_outcome
				scope:compliment_outcome = flag:good
			}
			trigger_event = { id = diplomacy_majesty.0005 days = 7 }
		}

		else_if = {
			limit = {
				exists = scope:compliment_outcome
				scope:compliment_outcome = flag:neutral
			}
			send_interface_toast = {
				left_icon = scope:compliment_receiver
				title = diplomacy_majesty.0004.neutral_outcome.desc

				add_diplomacy_lifestyle_xp = minor_lifestyle_xp
			}
		}

		else_if = {
			limit = {
				exists = scope:compliment_outcome
				scope:compliment_outcome = flag:bad
			}
			trigger_event = { id = diplomacy_majesty.0006 days = 7 }
		}
	}
}

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_majesty_0004_outcome_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?