Post by Naathi Adventurer on Jun 6, 2020 0:48:39 GMT
Hi,
Description
Notes
Description
I'm playing a game where I started as a feudal count of Westerosi Valyrian culture. It was a shattered realms game with historical titles (count level) and 95% ruins.
After colonizing much of Westeros, I eventually created the "Seven Kingdoms of the Iron Throne" empire title (e_iron_throne).
Since then, I'm unable to recruit a court physician.
This happens because
- Only grandmaesters can be physicians ("can_be_physician_trigger", I have the e_iron_throne empire title)
- But the grandmaester maintenance event does not fire ("maester.2599")
- Because I'm not considered to be of a culture which traditionally uses maesters ("maester_culture_trigger", I'm Westerosi Valyrian, my capital is in Westeros, but the iron_throne_created global flag is not set)
Here is the relevant code. I've added some custom comments preceded by #NA:
can_be_physician_trigger = {
#liege = { NOT = { religion = jogos_pagan } } #combined with moonsinger
OR = {
AND = {
is_adult = yes
is_ruler = no
}
liege = { trait = wildling }
has_character_flag = special_chancellor
}
prisoner = no
is_incapable = no
NOT = { has_pilgrimage_trait_trigger = yes }
NOT = { trait = salt_wife }
NOT = { trait = dragon }
NOT = { trait = working_at_bank }
NOT = { has_landed_title = c_the_citadel }
NOT = { has_landed_title = d_nightswatch }
#NA: I suppose I fall in the case below as my primary title is the Iron Throne and my save game does not have the aegons_conquest global flag because it's a shattered realms game.
trigger_if = { #Iron Throne employs Grand Maester
limit = {
liege = {
has_landed_title = e_iron_throne
NOT = { has_global_flag = aegons_conquest }
}
}
trait = archmaester
has_character_flag = grandmaester
}
trigger_else_if = { #Maesters/physicians can always be physician
limit = {
OR = {
trait = maester
trait = archmaester
trait = physician
trait = herbologist
}
}
always = yes
}
trigger_else = { #Other court physicians
liege = { NOT = { maester_culture_trigger = yes } } #westerosi can only have maesters/physicians
OR = {
learning = 15
AND = {
learning = 10
OR = {
trait = physician
trait = herbologist
trait = mystic
NOT = { has_dlc = "Reapers" }
}
}
custom_tooltip = {
text = educated_court_physician
hidden_tooltip = {
has_character_flag = is_court_physician
}
}
}
}
liege = { NOT = { culture_group = unoccupied_group } }
NOT = { has_character_modifier = fired_from_council_by_regent }
NOT = { # Not yet had event to reappoint councillors
liege = {
tier = EMPEROR
has_character_flag = mega_war_reappointing_council
}
}
NOT = { liege = { has_opinion_modifier = { who = ROOT modifier = opinion_resigned_from_council } } }
}
file: common\scripted_triggers\00_scripted_triggers.txt#New Grand Maester needed
character_event = {
id = maester.2599
only_independent = yes
hide_window = yes
trigger = {
has_landed_title = e_iron_throne
maester_culture_trigger = yes #NA: This is what blocks this event from triggering
NOT = { has_global_flag = aegons_conquest }
NOT = {
archmaester = {
is_alive = yes
has_character_flag = grandmaester
is_incapable = no
is_ruler = no
}
}
NOT = { has_character_flag = grand_maester_selected }
}
#NA: Rest of event removed for brevity's sake.
}
file: events\maester_events.txtmaester_culture_trigger = { #these cultures use maesters NOTE: localisation for job_physician needs to be updated for any changes
custom_tooltip = {
text = TOOLTIPmaester_culture_trigger
OR = {
AND = {
culture_group = andal
NOT = { culture = old_andal }
}
culture_group = iron_isles_culture
AND = {
culture_group = dornish
NOT = { culture = rhoynar }
}
AND = {
culture_group = first_men
NOT = { culture = moon_clansman }
}
#NA: I almost fit these conditions... but the e_iron_throne_created flag is not set
AND = {
capital_scope = { region = world_westeros }
has_global_flag = e_iron_throne_created
OR = {
culture = high_valyrian
culture = western_valyrian
}
}
}
OR = {
NOR = {
religion = pirate
religion = corsair
}
capital_scope = { region = world_westeros }
}
}
}
file: common\scripted_triggers\00_scripted_triggers.txtSo I don't really know what to expect given this has no lore background, but I guess a smallish edit would be to set the e_iron_throne_created global flag when the Iron Throne title is actually created if it's possible (i.e. there can be code triggered upon the creation of a title). If this is not possible, perhaps the trigger could be that the character either holds the Iron Throne or is a vassal (direct or indirect) of the Iron Throne.
Workaround
- Write down the date when the Iron Throne was created
- Save game (uncompressed)
- Open save game
- Add a global flag (section "flags=", after "start_date=") with "e_iron_throne_created=date" (ex: e_iron_throne_created=9769.11.23)
Notes
- I suppose this bug probably occurred before 2.1 but I've not checked this assumption.
- I suppose this bug still occurs in 2.2 but I've not checked this assumption.
- I use 3 mods but I don't believe they have an impact on this bug, namely: "AGOT Holdings+", "AGOT Westeros Only", "AGOTmusic".
Thanks for your time and consideration