Hi all, I've been trying to write an event chain that follows the following steps: 1. Player expresses dissatisfaction with foreign occupation (lowers opinion with liege) 2. Liege gets angry and writes letter to player, threatening exile and removal of titles if they continue on their rebellious path 3. Player becomes landless, creating a titular title and recruiting volunteers.
So far I've been unable to get it to work. The second event won't trigger so the rest of the chain stops in its tracks. Furthermore, I'm fairly certain the rest of the chain is flawed as I'm new to modding and it's all quite experimental for me. If any one can take a look at my code and let me know how I could fix it, I'd be more than grateful!
So far I've been unable to get it to work. The second event won't trigger so the rest of the chain stops in its tracks. Furthermore, I'm fairly certain the rest of the chain is flawed as I'm new to modding and it's all quite experimental for me. If any one can take a look at my code and let me know how I could fix it, I'd be more than grateful!
Code:
#Character grows restless under colonial control#
namespace = RB
character_event = {
id = RB.100
desc = EVTDESCRB.100
picture = "GFX_evt_council"
capable_only = yes
prisoner = no
min_age = 16
mean_time_to_happen = {
months = 1
}
trigger = {
AND = {
culture = welsh
trait = ambitious
martial >= 20
learning >= 10
}
liege = {
NOT = {
culture = welsh
}
}
}
option = {
name = EVTOPTARB.1001
set_character_flag = british_supremacy
opinion = {
modifier = de_jure_liege
who = liege
years = 20
inherit = yes
}
character_event = { id = RB.101 days = 7 }
}
option = {
name = EVTOPTBRB.1001
set_character_flag = no_uprising
}
}
#Liege gets angry#
character_event = {
id = RB.101
desc = "EVTDESCRB.101"
picture = "GFX_evt_council"
is_triggered_only = yes
trigger = {
PREV = {
any_vassal = {
limit = {
has_character_flag = british_supremacy
}
}
}
}
option = {
name = "EVTOPTARB.1011"
letter_event = { id = RB.102 days = 7 }
}
}
#Liege sends letter to player#
letter_event = {
id = RB.102
desc = "EVTDESCRB.102"
picture =
border =
capable_only = yes
prisoner = no
is_ruler = yes
ai = no
min_age = 16
is_triggered_only = yes
immediate = {
ROOT = {
any_demesne_title = {
set_title_flag = surrendered_title
}
}
}
option = {
name = EVTOPTARB.1021
create_title = {
tier = KING
landless = yes
name = british_warband
holder = ROOT
culture = ROOT
add_pressed_claim = {
k_england
}
}
liege = {
character_event = { id = RB.103 days = 1 }
}
}
option = {
name = EVTOPTBRB.1022
set_character_flag = no_british_uprising
clr_character_flag = british_supremacy
}
}
#Character becomes independent and landless and recruits volunteers#
character_event = {
id = RB.103
desc = "EVTDESCRB.103"
picture = "GFX_event_letter_frame_religion"
is_triggered_only = yes
immediate = {
FROM = {
any_demesne_title = {
limit = { has_title_flag = surrendered_title }
grant_title_no_opinion = ROOT
}
}
}
option = {
name = "EVTOPTARB.1031"
spawn_unit = {
owner = FROM
province = {
ROOT = {
location
}
}
home = {
ROOT = {
location
}
}
match_character = {
k_england = {
holder_scope
}
}
match_mult = 0.5
reinforces = yes
reinforce_rate_multiplier = 0.33
}
}
}