Absolutely. The code that would build a fort would be:Could I make a province action that spwans forts in provinces i own?
HardcodedCan additional extra holdings be added, or are they also hardcorded?
Hardcoded
I think so, but I don't know how.Can at least the picture be changed for a specific culture?
It is.
I am not sure about the specifics of modifying it, but the file you are looking for is \dlc\dlc070.zip\interface\portraits\society_clothes.gfx
Hmm, well that would indicate that you might have forgotten something in your religion/culture definitions.
Does it also crash when you invite a priest/steward? Have you checked the corresponding wiki sections?
I'm afraid I don't have much experience in that field, but if no one else can be of help, maybe upload your mod here so I can take a look at the files and see if I spot anything.
Depends on what you are trying to do. You can scope directly to a province by its ID, and they should also come up via province scopes like any_demesne_province or random_realm_provinceIs there any way to scope to province without any holdings?
That error basically tells us nothing. Stack overflow is a generic computer error, and we have no access to what part of the code that address might be in.I'm trying to make a personal mod and it's crashing my game. The log says:
######## EXCEPTION: 0xC00000FD at address: 0x01E48EB9: STACK OVERFLOW
Version: Unknown Version
11/25/17 19:54:26
What does this mean and how do I fix it?
I'm making personal mod for automatic pillage for nomads, and when randomizing province to pillage via random_real_province, i don't want to scope to province without anything to pillage.Depends on what you are trying to do. You can scope directly to a province by its ID, and they should also come up via province scopes like any_demesne_province or random_realm_province
You can do it by:I'm making personal mod for automatic pillage for nomads, and when randomizing province to pillage via random_real_province, i don't want to scope to province without anything to pillage.
Main problem is to exclude provinces without holdings, so event to pillage pillage nothing, which could bu problematic in larger realms.
random_realm_province = { # or any other province scope you need
limit = { num_of_settlements = 1 }
# Code to pillages the settlement
}
on_death = {
events = {
aloha.3000 # Harem auflösen? Alter Herrscher.
}
}
on_new_holder_inheritance = {
events = {
aloha.3001 # Harem auflösen? Neuer Herrscher.
}
}
character_event = {
id = aloha.3000
desc = aloha_event_3000
picture = "GFX_evt_death"
border = GFX_event_normal_frame_religion
is_triggered_only = yes
trigger = {
trait = harem_chef
}
immediate = {
clr_character_flag = kein_harem
clr_character_flag = harem_anfrage
clr_character_flag = harem_nutzung
any_courtier = {
limit = {
OR = {
trait = harem_mann
trait = harem_frau
trait = harem_eunuch
}
}
clr_character_flag = kein_harem
clr_character_flag = harem_anfrage
clr_character_flag = harem_nutzung
set_character_flag = weiter_im_harem
}
}
option = {
name = OK
}
}
character_event = {
id = aloha.3001 #Der neue Herrscher
desc = aloha_event_3001
hide_window = yes
is_triggered_only = yes
trigger = {
FROMFROM = { trait = harem_chef }
}
immediate = {
character_event = { id = aloha.3002 days = 2 }
}
}
character_event = {
id = aloha.3002
desc = aloha_event_3002
picture = "GFX_evt_death"
border = GFX_event_normal_frame_religion
is_triggered_only = yes
immediate = {
remove_trait = harem_mann
remove_trait = harem_frau
remove_trait = harem_eunuch
}
option = {
name = aloha_event_3002A #Der Harem wird übernommen.
trigger = {
OR = {
is_old_enough_trigger = yes
is_adult = yes
}
NOT = { trait = harem_chef }
NOR = {
trait = reincarnation
trait = incapable
prisoner = yes
is_inaccessible_trigger = yes
}
}
character_event = { id = aloha.1000 }
any_courtier = {
limit = {
has_character_flag = weiter_im_harem
}
letter_event = {
id = aloha.3003
days = 2
random = 5
tooltip = aloha_bleiben_tooltip
}
}
}
option = {
name = aloha_event_3002B #Der Harem wird übernommen.
trigger = {
trait = harem_chef
}
any_courtier = {
limit = {
has_character_flag = weiter_im_harem
}
letter_event = {
id = aloha.3003
days = 2
random = 5
tooltip = aloha_bleiben_tooltip
}
}
}
option = {
name = aloha_event_3002C #Alle in den Knast!
any_courtier = {
limit = {
has_character_flag = weiter_im_harem
}
clr_character_flag = weiter_im_harem
imprison = yes
}
}
option = {
name = aloha_event_3002D #Freiheit!
any_courtier = {
limit = {
has_character_flag = weiter_im_harem
trait = harem_mann
}
clr_character_flag = weiter_im_harem
remove_trait = harem_mann
}
any_courtier = {
limit = {
has_character_flag = weiter_im_harem
trait = harem_frau
}
clr_character_flag = weiter_im_harem
remove_trait = harem_frau
}
any_courtier = {
limit = {
has_character_flag = weiter_im_harem
trait = harem_eunuch
}
clr_character_flag = weiter_im_harem
remove_trait = harem_eunuch
}
}
}
letter_event = {
id = aloha.3003 #Entscheidung des Harems
desc = aloha_event_3003
# hide_window = yes
is_triggered_only = yes
option = {
name = aloha_event_3003A
trigger = {
OR = {
trait = harem_mann
trait = harem_frau
}
}
add_lover = liege
clr_character_flag = weiter_im_harem
}
option = {
name = aloha_event_3003B
trigger = {
trait = harem_eunuch
}
add_friend = liege
clr_character_flag = weiter_im_harem
}
option = {
name = aloha_event_3003C
liege = {
letter_event = {
id = aloha.3004
days = 2
random = 5
}
}
}
}
letter_event = {
id = aloha.3004 #Einsperren, später vielleicht noch andere Optionen.
desc = aloha_event_3004
# hide_window = yes
is_triggered_only = yes
option = {
name = aloha_event_3004A
FROM = {
imprison = yes
clr_character_flag = weiter_im_harem
}
}
}
Its a define setting PRESTIGE_OPINION_MAXIs there a way to change the cap on the opinion modifier for having prestige?
Thanks!Its a define setting PRESTIGE_OPINION_MAX
It worked, thank you!You can do it by:
Code:random_realm_province = { # or any other province scope you need limit = { num_of_settlements = 1 } # Code to pillages the settlement }
third_party_potential = {
is_child_of = FROM
NOT = { is_child_of = ROOT }
prisoner = no
}