Last active
January 29, 2016 21:46
-
-
Save escalonn/29d32c019e47ae3d18a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## normal scopes(including posttitle scopes) ## | |
# ROOT = receiver | |
# FROM = giver | |
# <no scope change> = attacker or receiver | |
## title scopes ## | |
# ROOT = receiver | |
# FROM = giver | |
# <no scope change> = thirdparty landed title | |
# | |
# the following effects/triggers exists (example execution order: on_success->on_success_title->on_success_posttitle): | |
# is_valid, is_valid_title, on_add, on_add_title, on_add_posttitle, on_success, on_success_title, on_success_posttitle, on_fail, on_fail_title, on_fail_posttitle, on_reverse_demand, on_reverse_demand_title, on_reverse_demand_posttitle | |
# | |
# Added on_attacker_leader_death, on_defender_leader_death and on_thirdparty_death, which all trigger when corresponding character dies | |
# These three all have war scopes, which currently has the following scope changes: | |
# attacker, defender, thirdparty(only valid if thirdparty character is involved), thirdparty_title(only valid if thirdparty title is involved) | |
# | |
# ai_will_do: modifies value AI places on the CB compared to other CBs (default: 1) | |
# can_use_gui: If otherwise valid, the CB is listed in the Diplo View, but you can't declare war unless 'can_use_gui' is also valid (also shows a trigger tooltip.) | |
dejure_barony_claim = { | |
name = CB_NAME_DEJUREBARONYCLAIM | |
war_name = WAR_NAME_DEJUREBARONYCLAIM | |
sprite = 16 | |
truce_days = 730 | |
hostile_against_others = yes | |
is_permanent = yes | |
check_de_jure_tier = COUNT | |
can_ask_to_join_war = no | |
can_use_gui = { | |
ROOT = { NOT = { has_character_modifier = emf_peace_pledge } } | |
FROM = { | |
OR = { | |
NOT = { has_dlc = "Sons of Abraham" } | |
holy_order = no | |
NOT = { religion = ROOT } | |
} | |
} | |
} | |
can_use = { | |
ROOT = { emf_cb_tribute_block_trigger = yes } | |
} | |
can_use_title = { | |
has_holder = yes | |
holder_scope = { | |
OR = { | |
character = ROOT | |
is_liege_or_above = ROOT | |
} | |
} | |
any_direct_de_jure_vassal_title = { | |
holder_scope = { | |
OR = { | |
character = FROM | |
is_liege_or_above = FROM | |
} | |
NOR = { | |
character = ROOT | |
is_liege_or_above = ROOT | |
any_liege = { holy_order = yes } | |
} | |
} | |
} | |
} | |
on_add = { | |
log = "CB(dejure_barony_claim): START: title=[FromFrom.GetBaseName]: [Root.GetTitledFirstName] of [Root.PrimaryTitle.GetBaseName] (ID: [Root.GetID]) vs. [From.GetTitledFirstName] of [From.PrimaryTitle.GetBaseName] (ID: [From.GetID])" | |
} | |
on_success = { | |
log = "CB(dejure_barony_claim): VICTORY: title=[FromFrom.GetBaseName]: [Root.GetTitledFirstName] of [Root.PrimaryTitle.GetBaseName] (ID: [Root.GetID]) vs. [From.GetTitledFirstName] of [From.PrimaryTitle.GetBaseName] (ID: [From.GetID])" | |
emf_cb_victory_effect = yes | |
} | |
on_success_title = { | |
holder_scope = { | |
save_event_target_as = target_taker | |
} | |
any_direct_de_jure_vassal_title = { | |
limit = { | |
holder_scope = { | |
OR = { | |
character = FROM | |
is_liege_or_above = FROM | |
} | |
NOR = { | |
character = event_target:target_taker | |
is_liege_or_above = event_target:target_taker | |
is_liege_or_above = ROOT | |
} | |
} | |
} | |
usurp_title_plus_barony_if_unlanded = { target = event_target:target_taker type = claim } | |
} | |
any_attacker = { | |
limit = { character = ROOT } | |
participation_scaled_prestige = 50 | |
} | |
any_attacker = { | |
limit = { NOT = { character = ROOT } } | |
hidden_tooltip = { participation_scaled_prestige = 50 } | |
} | |
} | |
on_fail = { | |
log = "CB(dejure_barony_claim): WHITEPEACE: title=[FromFrom.GetBaseName]: [Root.GetTitledFirstName] of [Root.PrimaryTitle.GetBaseName] (ID: [Root.GetID]) vs. [From.GetTitledFirstName] of [From.PrimaryTitle.GetBaseName] (ID: [From.GetID])" | |
ROOT = { | |
prestige = -50 | |
} | |
any_defender = { | |
limit = { character = FROM } | |
participation_scaled_prestige = 25 | |
} | |
any_defender = { | |
limit = { NOT = { character = FROM } } | |
hidden_tooltip = { participation_scaled_prestige = 25 } | |
} | |
} | |
on_reverse_demand = { | |
log = "CB(dejure_barony_claim): DEFEAT: title=[FromFrom.GetBaseName]: [Root.GetTitledFirstName] of [Root.PrimaryTitle.GetBaseName] (ID: [Root.GetID]) vs. [From.GetTitledFirstName] of [From.PrimaryTitle.GetBaseName] (ID: [From.GetID])" | |
emf_cb_defeat_effect = yes | |
ROOT = { | |
prestige = -100 | |
transfer_scaled_wealth = { | |
to = FROM | |
value = 4.0 | |
} | |
} | |
any_defender = { | |
limit = { character = FROM } | |
participation_scaled_prestige = 50 | |
} | |
any_defender = { | |
limit = { NOT = { character = FROM } } | |
hidden_tooltip = { participation_scaled_prestige = 50 } | |
} | |
} | |
on_invalidation = { | |
log = "CB(dejure_barony_claim): INVALIDATED: title=[ThirdPartyTitle.GetBaseName]: [Root.GetTitledFirstName] of [Root.PrimaryTitle.GetBaseName] (ID: [Root.GetID]) vs. [From.GetTitledFirstName] of [From.PrimaryTitle.GetBaseName] (ID: [From.GetID])" | |
} | |
attacker_ai_victory_worth = { | |
factor = -1 # always accept | |
} | |
attacker_ai_defeat_worth = { | |
factor = 75 | |
} | |
defender_ai_victory_worth = { | |
factor = -1 # always accept | |
} | |
defender_ai_defeat_worth = { | |
factor = 75 | |
} | |
# ai importance placed on this CB: scope is the targeted title, ROOT is the attacking character, FROM is the defending character | |
ai_will_do = { | |
factor = 1 | |
modifier = { | |
factor = 10 | |
FROM = { ai = no } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment