|
Post by oblivion26 on Mar 9, 2019 7:01:00 GMT
Hello again! I was wondering if anyone could tell me how to add or change king titles like "Storm King" to kingdoms? I've been trying to add the title "Dragon King" to e_riverlands for a while now (I'm playing as a valyrian and Aegon doesnt have it), but nothing I do seems to work. I tried using title= in the landed_titles.txt, creating a new localization file with just a custom title that would also be called Dragon King, edited the maintenance event that adds the "Dragon King" title, and i've even made a new localization doc with just the "Dragon King" title (using a different tag instead of dragonking_male) but regardless of what I do after a few days it disappears or when I try editing my savegame to add the title the next time I save it goes away the next time I save and reload the new save. Google hasn't shown me anything that works soI turn to you guys. Any help would be appreciated!
|
|
erbkaiser
Modder (CK2)
Taking a long break from modding
Posts: 693
|
Post by erbkaiser on Mar 9, 2019 8:36:41 GMT
Take a look at how the titular kingdom for Dragonstone does it.
The event maintenance.43 fires on_new_holder, meaning it fires for whoever first creates the title as well as everyone who subsequently inherits it.
|
|
|
Post by oblivion26 on Mar 9, 2019 9:11:24 GMT
I copied the title tags from dragonstone (title = dragonking_male & title_female = dragonking_female) but it makes sense if I have to wait until my character dies for the title to go into affect. I didn't realize the maintenance event were on_new_holder, I assumed it was when the maintenance events update the dynamic COAs on start. Is there a tag that makes it fire when the game loads?
|
|
erbkaiser
Modder (CK2)
Taking a long break from modding
Posts: 693
|
Post by erbkaiser on Mar 9, 2019 9:40:00 GMT
No tag, but you can make it fire when the game starts by adding a new on_action.
common\on_actions
Create or edit a file with these contents:
on_startup = { events = { maintenance.43 #Special titles for titular kingdoms } }
I don't think that will have any bad effects.
|
|
|
Post by caeserion on Mar 10, 2019 21:14:25 GMT
character_event = {
id = customstart_events.1
hide_window = yes
only_playable = yes
is_triggered_only = yes
trigger = {
FROM = {
tier = DUKE
primary_title = d_dragonstone
}
}
immediate = {
if = {
limit = { FROM = { title = d_dragonstone } }
FROMFROM = {
if = {
limit = { is_alive = yes }
remove_special_character_title = crownprince_male
remove_special_character_title = crownprince_female
}
}
if = {
limit = { is_female = no }
set_special_character_title = crownprince_male
break = yes
}
set_special_character_title = crownprince_female
break = yes
}
}
}
I tried this but it doesn't work? I'm not sure what I'm missing. It doesn't change whether or not there's a new holder or if a new year or month ticks forward. I also wanted the title to come into play only if the holder is heir to the Iron Throne but I don't know how to get the basic thing to work anyway
|
|
|
Post by rufff1 on Mar 10, 2019 21:20:29 GMT
character_event = {
id = customstart_events.1
hide_window = yes
only_playable = yes
is_triggered_only = yes
trigger = {
FROM = {
tier = DUKE
primary_title = d_dragonstone
}
}
immediate = {
if = {
limit = { FROM = { title = d_dragonstone } }
FROMFROM = {
if = {
limit = { is_alive = yes }
remove_special_character_title = crownprince_male
remove_special_character_title = crownprince_female
}
}
if = {
limit = { is_female = no }
set_special_character_title = crownprince_male
break = yes
}
set_special_character_title = crownprince_female
break = yes
}
}
}
I tried this but it doesn't work? I'm not sure what I'm missing. It doesn't change whether or not there's a new holder or if a new year or month ticks forward. Done an on_action trigger? That was why my events never fired when I first took up modding lol
|
|
|
Post by caeserion on Mar 10, 2019 21:24:30 GMT
Nvm got it now. Do you know how to set it to so it only fires if the holder is also heir to the IT?
|
|
|
Post by rufff1 on Mar 10, 2019 21:47:47 GMT
Nvm got it now. Do you know how to set it to so it only fires if the holder is also heir to the IT? Not really sure how to make it only for heir but making it so a dynasty member must hold the IT would be simple enough I think: trigger = {
FROM = {
tier = DUKE
primary_title = d_dragonstone
} any_dynasty_member = { has_landed_title = e_iron_throne }
}
|
|