Scripted effect
diarch_request_imperial_expedition_accepted_effect
diarch_request_imperial_expedition_accepted_effect = yesgame/common/scripted_effects/00_diarchy_scripted_effects.txt, line 1524 (38 lines). No parameters.
diarch_request_imperial_expedition_accepted_effect is a scripted effect in Crusader Kings III, written at line 1524 of its file. It takes no parameters: diarch_request_imperial_expedition_accepted_effect = yes. The game's script calls it in 4 places, among them Ask for Imperial Expedition (interaction), diarchy.8001 (event) and diarchy.8003 (event). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_diarchy_scripted_effects.txt.
What it does
- Gains one usage of the powerful Imperial Expedition Casus Belli
- Any Governor bordering the War's target Ruler will be called as an Ally, and military governors may join from far away
- The War may target any Duchies that border the Realm or De Jure belong to the Emperor
- If … win…, … may either: Hand them over in exchange for Influence (scaling with the number of Counties taken)
If
scope:hook = yeshas_usable_hook = scope:recipient
Then
use_hook = scope:recipientreverse_add_opinion = { target = scope:recipient modifier = suspicion_opinion opinion = -20 }
Else if
- scope:recipient: Is played by the AI
Then
reverse_add_opinion = { target = scope:recipient modifier = trust_opinion opinion = 20 }
• 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 (38 lines of game script)
diarch_request_imperial_expedition_accepted_effect = {
# Explain what's up.
custom_tooltip = diarch_request_imperial_expedition_interaction.tt.access_to_cb
custom_tooltip = diarch_request_imperial_expedition_interaction.tt.governors_as_allies
custom_tooltip = diarch_request_imperial_expedition_interaction.tt.target_behaviour_explanation
custom_tooltip = diarch_request_imperial_expedition_interaction.tt.post_war
# Give us our charge so we can actually use the CB.
set_variable = {
name = imperial_expedition_charged
value = yes
}
# If you used a hook, calc some extra stuff.
if = {
limit = {
scope:hook = yes
has_usable_hook = scope:recipient
}
# Use the hook up.
use_hook = scope:recipient
# Plus scope:recipient is concerned.
reverse_add_opinion = {
target = scope:recipient
modifier = suspicion_opinion
opinion = -20
}
}
# Otherwise you didn't, so you should be happy.
else_if = {
limit = {
scope:recipient = { is_ai = yes }
}
reverse_add_opinion = {
target = scope:recipient
modifier = trust_opinion
opinion = 20
}
}
}As written in game/common/scripted_effects/00_diarchy_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls diarch_request_imperial_expedition_accepted_effect.
Character interactions (1)
Events (3)
Source: game/common/scripted_effects/00_diarchy_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.