Scripted effect
form_siam_kingdom_decision_scripted_effect
form_siam_kingdom_decision_scripted_effect = yesgame/common/scripted_effects/00_major_decisions_scripted_effects.txt, line 3108 (43 lines). No parameters.
form_siam_kingdom_decision_scripted_effect is a scripted effect in Crusader Kings III, written at line 3108 of its file. It takes no parameters: form_siam_kingdom_decision_scripted_effect = yes. The game's script calls it in 2 places, among them Found the Siam Kingdom (decision) and Dawn of Happiness (event major_decisions.7000). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_major_decisions_scripted_effects.txt.
What it does
• 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 (43 lines of game script)
form_siam_kingdom_decision_scripted_effect = {
save_scope_as = founder
create_title_and_vassal_change = {
type = created
save_scope_as = title_change
add_claim_on_loss = no
}
title:k_siam = {
change_title_holder = {
holder = root
change = scope:title_change
}
}
resolve_title_and_vassal_change = scope:title_change
add_prestige_experience = major_fame_gain
hidden_effect = {
title:k_siam = { save_scope_as = siam_kingdom }
title:d_sukhothai = { save_scope_as = sukhotai_duchy }
title:d_lop_buri = { save_scope_as = lop_buri }
title:d_sukhothai = { set_de_jure_liege_title = title:k_siam }
title:d_lop_buri = { set_de_jure_liege_title = title:k_siam }
every_held_title = { # add other duchies if I hold any in the region
limit = {
tier = tier_duchy
any_de_jure_county = {
title_province = {
OR = {
geographical_region = world_asia_thailand
geographical_region = world_asia_malaysia
}
}
}
NOT = {
this = title:d_sukhothai
this = title:d_lop_buri
}
}
set_de_jure_liege_title = title:k_siam
}
}
custom_tooltip = form_siam_kingdom_decision_effects_de_jure_tt_a
}As written in game/common/scripted_effects/00_major_decisions_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls form_siam_kingdom_decision_scripted_effect.
Decisions (1)
Events (1)
- Dawn of Happiness
major_decisions.7000
Source: game/common/scripted_effects/00_major_decisions_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.