Scripted effect
hre_margraves_effect
hre_margraves_effect = yesgame/common/scripted_effects/00_flavorization_effects.txt, line 188 (63 lines). No parameters.
hre_margraves_effect is a scripted effect in Crusader Kings III, written at line 188 of its file. It takes no parameters: hre_margraves_effect = yes. The game's script calls it in 1 place, among them on_game_start (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_flavorization_effects.txt.
What it does
If
game_start_date = 1066.9.15
Then
- title:e_hre.holder › Every vassal:
- Where › Their primary title:
One of these
this = title:d_steyermarkor
this = title:d_osterreichor
this = title:d_lausitzor
this = title:d_meissenor
this = title:d_nordgau
vassal_contract_set_obligation_level = { type = special_contract level = 2 }additional_flavor_check_effect = yes
- Where › Their primary title:
Else if
game_start_date = 1178.10.1
Then
- title:e_hre.holder › Every vassal:
- Where › Their primary title:
One of these
this = title:d_steyermarkor
this = title:d_lausitzor
this = title:d_ostmarkor
this = title:d_meissen
vassal_contract_set_obligation_level = { type = special_contract level = 2 }additional_flavor_check_effect = yes
- Where › Their primary title:
• 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 (63 lines of game script)
hre_margraves_effect = {
if = {
limit = {
game_start_date = 1066.9.15
}
title:e_hre.holder = {
every_vassal = {
limit = {
primary_title = {
OR = {
this = title:d_steyermark
this = title:d_osterreich
this = title:d_lausitz
this = title:d_meissen
this = title:d_nordgau
}
}
}
primary_title = {
set_variable = {
name = historical_margrave
days = 1
}
}
vassal_contract_set_obligation_level = {
type = special_contract
level = 2
}
additional_flavor_check_effect = yes
}
}
}
else_if = {
limit = {
game_start_date = 1178.10.1
}
title:e_hre.holder = {
every_vassal = {
limit = {
primary_title = {
OR = {
this = title:d_steyermark
this = title:d_lausitz
this = title:d_ostmark
this = title:d_meissen
}
}
}
primary_title = {
set_variable = {
name = historical_margrave
days = 1
}
}
vassal_contract_set_obligation_level = {
type = special_contract
level = 2
}
additional_flavor_check_effect = yes
}
}
}
}As written in game/common/scripted_effects/00_flavorization_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls hre_margraves_effect.
On actions (the game's own hooks) (1)
- on_game_start
Source: game/common/scripted_effects/00_flavorization_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.