Scripted effect · All Under Heaven files
refuse_movement_petition_effect
refuse_movement_petition_effect = yesgame/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 1019 (49 lines). No parameters.
refuse_movement_petition_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1019 of its file. It takes no parameters: refuse_movement_petition_effect = yes. The game's script calls it in 3 places, among them Movement's Petition: … (event tgp_decision_events.0101), Movement's Petition: … (event tgp_decision_events.0103) and display_movement_petition_recipient_acceptance_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
What it does
- Opinion: Refused My Movement Petition for 5 years
scope:hegemon:add_legitimacy_effect = { LEGITIMACY = miniscule_legitimacy_loss }If
scope:petitioner.var:movement_petition ?= flag:hold_examinations
Then
- Dynastic Cycle:
If
- The current phase counts “Yearly Short No Examinations Dynastic Cycle Catalyst”
title:h_china.var:years_since_imperial_examination >= catalyst_imperial_examinations_gap_short_yearly_value
Then
- Counts toward the situation's next phase: “Yearly Short No Examinations Dynastic Cycle Catalyst”
If
- The current phase counts “Yearly Long No Examinations Dynastic Cycle Catalyst”
title:h_china.var:years_since_imperial_examination >= catalyst_imperial_examinations_gap_long_yearly_value
Then
- Counts toward the situation's next phase: “Yearly Long No Examinations Dynastic Cycle Catalyst”
scope:actors_movement:petition_change_movement_power_effect = { VALUE = -100 }
• 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 (49 lines of game script)
refuse_movement_petition_effect = {
send_interface_message = {
type = event_diplomacy_bad
title = tgp_decision_events.0103.b_title
left_icon = scope:petition_recipient
add_opinion = {
modifier = hegemon_refused_faction_demands_modifier
target = scope:petition_recipient
years = 5
}
scope:hegemon = {
add_legitimacy_effect = { LEGITIMACY = miniscule_legitimacy_loss }
if = {
limit = {
scope:petitioner.var:movement_petition ?= flag:hold_examinations
}
situation:dynastic_cycle = {
if = {
limit = {
situation_top_has_catalyst = catalyst_imperial_examinations_gap_short_yearly
exists = title:h_china.var:years_since_imperial_examination
title:h_china.var:years_since_imperial_examination >= catalyst_imperial_examinations_gap_short_yearly_value
}
trigger_situation_catalyst = {
catalyst = catalyst_imperial_examinations_gap_short_yearly
character = scope:petitioner
}
}
if = {
limit = {
situation_top_has_catalyst = catalyst_imperial_examinations_gap_long_yearly
exists = title:h_china.var:years_since_imperial_examination
title:h_china.var:years_since_imperial_examination >= catalyst_imperial_examinations_gap_long_yearly_value
}
trigger_situation_catalyst = {
catalyst = catalyst_imperial_examinations_gap_long_yearly
character = scope:petitioner
}
}
}
}
}
scope:actors_movement = {
petition_change_movement_power_effect = {
VALUE = -100
}
}
}
}As written in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls refuse_movement_petition_effect.
Events (2)
- Movement's Petition: …
tgp_decision_events.0101 - Movement's Petition: …
tgp_decision_events.0103
Scripted effects (1)
Source: game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.