Looks fine to me. I assume you declared your namespace as appropriate in your event file. Also, if you did want a check for it to not happen to AI characters, you'd need to addThis is the original event, minus a check preventing it to fire for AI characters and slightly more lax requirements to fire.
Code:# Landless claimants can ask the Dynasty head to fight a war for your claim. # Fired from 'on_yearly_pulse' character_event = { id = 66099 hide_window = yes is_triggered_only = yes capable_only = yes prisoner = no min_age = 16 trigger = { has_regent = no war = no is_tributary = no is_nomadic = no top_liege = { OR = { AND = { has_dlc = "Conclave" NOT = { has_law = vassal_wars_law_2 } } AND = { NOT = { has_dlc = "Conclave"} NOR = { has_law = crown_authority_2 has_law = crown_authority_3 has_law = crown_authority_4 } } } } any_dynasty_member = { is_offmap_ruler = no is_landed = no is_incapable = no is_adult = yes is_liege_or_above = ROOT any_claim = { has_holder = yes NOR = { holder_scope = { # Not against nomads is_nomadic = yes } holder_scope = { # Top liege not nomad top_liege = { is_nomadic = yes } } holder_scope = { # Not in revolt in_revolt = yes } holder_scope = { # Top liege not in revolt top_liege = { in_revolt = yes } } holder_scope = { # Not the same realm same_realm = ROOT } holder_scope = { # Not someone ROOT has a NAP with has_non_aggression_pact_with = ROOT } holder_scope = { # ROOT can not have a NAP with the top liege either top_liege = { has_non_aggression_pact_with = ROOT } } holder_scope = { # Not an ally of ROOT is_allied_with = ROOT } holder_scope = { # ROOT is not allied with the top liege top_liege = { is_allied_with = ROOT } } holder_scope = { # The target is not a tributary of ROOT is_tributary = yes suzerain = { OR = { character = ROOT any_liege = { character = ROOT } } } } holder_scope = { # The targets top liege is not a tributary of ROOT top_liege = { is_tributary = yes suzerain = { OR = { character = ROOT any_liege = { character = ROOT } } } } } } } } } weight_multiplier = { factor = 2 } immediate = { random_dynasty_member = { limit = { is_offmap_ruler = no is_landed = no is_liege_or_above = ROOT is_incapable = no is_adult = yes any_claim = { has_holder = yes NOR = { holder_scope = { # Not against nomads is_nomadic = yes } holder_scope = { # Top liege not nomad top_liege = { is_nomadic = yes } } holder_scope = { # Not in revolt in_revolt = yes } holder_scope = { # Top liege not in revolt top_liege = { in_revolt = yes } } holder_scope = { # Not the same realm same_realm = ROOT } holder_scope = { # Not someone ROOT has a NAP with has_non_aggression_pact_with = ROOT } holder_scope = { # ROOT can not have a NAP with the top liege either top_liege = { has_non_aggression_pact_with = ROOT } } holder_scope = { # Not an ally of ROOT is_allied_with = ROOT } holder_scope = { # ROOT is not allied with the top liege top_liege = { is_allied_with = ROOT } } holder_scope = { # The target is not a tributary of ROOT is_tributary = yes suzerain = { OR = { character = ROOT any_liege = { character = ROOT } } } } holder_scope = { # The targets top liege is not a tributary of ROOT top_liege = { is_tributary = yes suzerain = { OR = { character = ROOT any_liege = { character = ROOT } } } } } } } } character_event = { id = 66100 } } } }
This is the spouse version of the event I made.
Code:# Copy of event 66099 adapted to fire for spouses # Landless spouse can ask the Dynasty head to fight a war for your claim. # Fired from 'on_yearly_pulse' character_event = { id = incitatus.0001 hide_window = yes is_triggered_only = yes capable_only = yes prisoner = no min_age = 16 trigger = { has_regent = no war = no is_tributary = no is_nomadic = no top_liege = { OR = { AND = { has_dlc = "Conclave" NOT = { has_law = vassal_wars_law_2 } } AND = { NOT = { has_dlc = "Conclave"} NOR = { has_law = crown_authority_2 has_law = crown_authority_3 has_law = crown_authority_4 } } } } any_spouse = { is_offmap_ruler = no is_landed = no is_incapable = no is_adult = yes is_liege_or_above = ROOT any_claim = { has_holder = yes NOR = { holder_scope = { # Not against nomads is_nomadic = yes } holder_scope = { # Top liege not nomad top_liege = { is_nomadic = yes } } holder_scope = { # Not in revolt in_revolt = yes } holder_scope = { # Top liege not in revolt top_liege = { in_revolt = yes } } holder_scope = { # Not the same realm same_realm = ROOT } holder_scope = { # Not someone ROOT has a NAP with has_non_aggression_pact_with = ROOT } holder_scope = { # ROOT can not have a NAP with the top liege either top_liege = { has_non_aggression_pact_with = ROOT } } holder_scope = { # Not an ally of ROOT is_allied_with = ROOT } holder_scope = { # ROOT is not allied with the top liege top_liege = { is_allied_with = ROOT } } holder_scope = { # The target is not a tributary of ROOT is_tributary = yes suzerain = { OR = { character = ROOT any_liege = { character = ROOT } } } } holder_scope = { # The targets top liege is not a tributary of ROOT top_liege = { is_tributary = yes suzerain = { OR = { character = ROOT any_liege = { character = ROOT } } } } } } } } } weight_multiplier = { factor = 10 } immediate = { random_spouse = { limit = { is_offmap_ruler = no is_landed = no is_liege_or_above = ROOT is_incapable = no is_adult = yes any_claim = { has_holder = yes NOR = { holder_scope = { # Not against nomads is_nomadic = yes } holder_scope = { # Top liege not nomad top_liege = { is_nomadic = yes } } holder_scope = { # Not in revolt in_revolt = yes } holder_scope = { # Top liege not in revolt top_liege = { in_revolt = yes } } holder_scope = { # Not the same realm same_realm = ROOT } holder_scope = { # Not someone ROOT has a NAP with has_non_aggression_pact_with = ROOT } holder_scope = { # ROOT can not have a NAP with the top liege either top_liege = { has_non_aggression_pact_with = ROOT } } holder_scope = { # Not an ally of ROOT is_allied_with = ROOT } holder_scope = { # ROOT is not allied with the top liege top_liege = { is_allied_with = ROOT } } holder_scope = { # The target is not a tributary of ROOT is_tributary = yes suzerain = { OR = { character = ROOT any_liege = { character = ROOT } } } } holder_scope = { # The targets top liege is not a tributary of ROOT top_liege = { is_tributary = yes suzerain = { OR = { character = ROOT any_liege = { character = ROOT } } } } } } } } character_event = { id = 66100 } } } }
This is the events that rulers receive:
Code:character_event = { id = 66100 desc = EVTDESC66100 picture = GFX_evt_emissary is_triggered_only = yes option = { name = EVTOPTA66100 #ask for the war! FROM = { character_event = { id = 66110 days = 9 tooltip = EVTTOOLTIP66110 } } } }
Code:character_event = { id = 66110 desc = EVTDESC66110 picture = GFX_evt_emissary is_triggered_only = yes immediate = { FROM = { save_event_target_as = claimant random_claim = { limit = { has_holder = yes NOR = { holder_scope = { # Not against nomads is_nomadic = yes } holder_scope = { # Top liege not nomad top_liege = { is_nomadic = yes } } holder_scope = { # Not in revolt in_revolt = yes } holder_scope = { # Top liege not in revolt top_liege = { in_revolt = yes } } holder_scope = { # Not the same realm same_realm = ROOT } holder_scope = { # Not someone ROOT has a NAP with has_non_aggression_pact_with = ROOT } holder_scope = { # ROOT can not have a NAP with the top liege either top_liege = { has_non_aggression_pact_with = ROOT } } holder_scope = { # Not an ally of ROOT is_allied_with = ROOT } holder_scope = { # ROOT is not allied with the top liege top_liege = { is_allied_with = ROOT } } holder_scope = { # The target is not a tributary of ROOT is_tributary = yes suzerain = { OR = { character = ROOT any_liege = { character = ROOT } } } } holder_scope = { # The targets top liege is not a tributary of ROOT top_liege = { is_tributary = yes suzerain = { OR = { character = ROOT any_liege = { character = ROOT } } } } } } } save_event_target_as = claimant_claim } } } option = { name = EVTOPTA66110 #go to war! ai_chance = { factor = 2 modifier = { factor = 3 FROM = { diplomacy = 12 } } modifier = { factor = 2 FROM = { martial = 10 } } modifier = { factor = 5 FROM = { intrigue = 14 } } modifier = { factor = 1.5 opinion = { who = FROM value = 25 } } modifier = { factor = 2 opinion = { who = FROM value = 50 } } modifier = { factor = 3 opinion = { who = FROM value = 75 } } } event_target:claimant_claim = { reverse_unsafe_war = { target = event_target:claimant casus_belli = other_claim thirdparty = ROOT } log = "66110: [Root.GetBestName] starts war for [From.GetBestName]'s claim on [This.GetName]" } } option = { name = EVTOPTB66110 #refuse outrageous demands. ai_chance = { factor = 1 modifier = { factor = 0 opinion = { who = FROM value = 80 } } modifier = { factor = 4 opinion = { who = FROM value <= -20 } } } FROM = { opinion = { modifier = dynastic_refused_war who = ROOT years = 5 } } prestige = -10 } }
Practically speaking it needs some more work to make sure the AI doesn't declare suicidal wars, or have a different penalty for spouse refusal.
ai = no
.For the focus thing, I don't know, but it certainly sounds that way.
- 1