Skip to content

Commit

Permalink
Adapt weak/strong triggers #1
Browse files Browse the repository at this point in the history
  • Loading branch information
rquinio committed Jul 10, 2016
1 parent d1a28b2 commit cf2076b
Show file tree
Hide file tree
Showing 22 changed files with 167 additions and 146 deletions.
30 changes: 30 additions & 0 deletions MOD/Witcher/common/cb_types/W_cb_types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ pogrom = { # Usable against nearby non-human counties, convert province, if have
is_permanent = yes
check_all_titles = yes

allowed_to_target_tributaries = no
allowed_to_target_suzerains = no

can_use_gui = {
ROOT = {
OR = {
Expand Down Expand Up @@ -714,6 +717,9 @@ nilfgaard_invasion = { # Usable by Nilfgaard against Northern kingdoms
check_de_jure_tier = KING # this scans all de jure kingdoms for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes
can_ask_to_join_war = no

allowed_to_target_tributaries = no
allowed_to_target_suzerains = no

can_use = {
FROM = { NOT = { culture = wilderness } }
ROOT = { NOT = { culture = wilderness } }
Expand Down Expand Up @@ -934,6 +940,9 @@ nilfgaard_reconquest = { # Usable by Nilfgaard against Southern kingdoms
check_de_jure_tier = KING # this scans all de jure kingdoms for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes
can_ask_to_join_war = no

allowed_to_target_tributaries = no
allowed_to_target_suzerains = no

can_use = {
FROM = { NOT = { culture = wilderness } }
ROOT = { NOT = { culture = wilderness } }
Expand Down Expand Up @@ -1626,6 +1635,9 @@ conquest = { # Usable once against nearby duchies when you take ambition
check_de_jure_tier = DUKE
hostile_against_others = yes

allowed_to_target_tributaries = no
allowed_to_target_suzerains = no

can_use = {
FROM = { NOT = { culture = wilderness } }
ROOT = { NOT = { culture = wilderness } }
Expand Down Expand Up @@ -1803,6 +1815,9 @@ elven_liberation = { # Usable against elven culture province with human top lieg
check_all_titles = yes # if permanent, setting this to true will check against all of someones titles, including vassal held titles
can_ask_to_join_war = no

allowed_to_target_tributaries = no
allowed_to_target_suzerains = no

can_use = {
ROOT = {
NOT = { is_liege_or_above = FROM }
Expand Down Expand Up @@ -1961,6 +1976,9 @@ dwarven_liberation = { # Usable against dwarven culture province with human top
check_all_titles = yes # if permanent, setting this to true will check against all of someones titles, including vassal held titles
can_ask_to_join_war = no

allowed_to_target_tributaries = no
allowed_to_target_suzerains = no

can_use = {
ROOT = {
NOT = { is_liege_or_above = FROM }
Expand Down Expand Up @@ -2119,6 +2137,9 @@ gnomish_liberation = { # Usable against gnomish culture province with human top
check_all_titles = yes # if permanent, setting this to true will check against all of someones titles, including vassal held titles
can_ask_to_join_war = no

allowed_to_target_tributaries = no
allowed_to_target_suzerains = no

can_use = {
ROOT = {
NOT = { is_liege_or_above = FROM }
Expand Down Expand Up @@ -2277,6 +2298,9 @@ halfling_liberation = { # Usable against halfling culture province with human to
check_all_titles = yes # if permanent, setting this to true will check against all of someones titles, including vassal held titles
can_ask_to_join_war = no

allowed_to_target_tributaries = no
allowed_to_target_suzerains = no

can_use = {
ROOT = {
NOT = { is_liege_or_above = FROM }
Expand Down Expand Up @@ -2434,6 +2458,9 @@ reclamation = { # Usable by elven and dwarven empires
is_permanent = yes
check_de_jure_tier = DUKE # this scans all de jure kingdoms for the counties which are held by or vassals(or below) of selected character. Only valid if is_permanent = yes

allowed_to_target_tributaries = no
allowed_to_target_suzerains = no

can_use = {
FROM = { NOT = { culture = wilderness } }
ROOT = { NOT = { culture = wilderness } }
Expand Down Expand Up @@ -2618,6 +2645,9 @@ claim_lormark = { # Special version of normal claim for Assassin of Kings bookma

press_claim = yes

allowed_to_target_tributaries = no
allowed_to_target_suzerains = no

is_valid_title = {
OR = {
FROM = {
Expand Down
32 changes: 16 additions & 16 deletions MOD/Witcher/common/nicknames/W_nicknames.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ nick_the_falcon = {
nick_the_bear = {
allow = {
age = 20
trait = strong
is_strong_trigger = yes
trait = tall
}
chance = {
Expand Down Expand Up @@ -187,7 +187,7 @@ nick_the_spider = {
nick_the_ox = {
allow = {
age = 20
trait = strong
is_strong_trigger = yes
trait = slow
}
chance = {
Expand All @@ -209,7 +209,7 @@ nick_the_boar = {
nick_the_bull = {
allow = {
age = 20
trait = strong
is_strong_trigger = yes
trait = slow
}
chance = {
Expand Down Expand Up @@ -248,7 +248,7 @@ nick_the_rat = {
allow = {
age = 20
trait = craven
trait = weak
is_weak_trigger = yes
}
chance = {
factor = 1
Expand All @@ -260,12 +260,12 @@ nick_the_lamb = {
age = 15
trait = humble
NOT = {
trait = strong
is_strong_trigger = yes
trait = gregarious
trait = proud
}
OR = {
trait = weak
is_weak_trigger = yes
trait = shy
trait = craven
}
Expand Down Expand Up @@ -338,7 +338,7 @@ nick_the_tall = {
nick_the_mountain = {
allow = {
age = 20
trait = strong
is_strong_trigger = yes
trait = tall
trait = gluttonous
}
Expand Down Expand Up @@ -499,12 +499,12 @@ nick_the_meek = {
age = 15
trait = humble
NOT = {
trait = strong
is_strong_trigger = yes
trait = gregarious
trait = proud
}
OR = {
trait = weak
is_weak_trigger = yes
trait = shy
trait = craven
}
Expand Down Expand Up @@ -723,7 +723,7 @@ nick_the_decadent = {
nick_the_stout = {
allow = {
age = 20
trait = strong
is_strong_trigger = yes
trait = gluttonous
}
chance = {
Expand Down Expand Up @@ -876,7 +876,7 @@ nick_the_treacherous = {
nick_the_weak = {
allow = {
age = 20
trait = weak
is_weak_trigger = yes
OR = {
trait = craven
trait = content
Expand Down Expand Up @@ -1170,7 +1170,7 @@ nick_the_wanton = {
nick_the_sickly = {
allow = {
age = 15
trait = weak
is_weak_trigger = yes
OR = {
trait = ill
trait = pneumonic
Expand Down Expand Up @@ -1258,9 +1258,9 @@ nick_the_oak = {
NOT = {
trait = inbred
trait = infirm
trait = weak
is_weak_trigger = yes
}
trait = strong
is_strong_trigger = yes
OR = {
trait = ugly
trait = gardener
Expand Down Expand Up @@ -1450,8 +1450,8 @@ nick_the_dragon = {
allow = {
age = 30
ruled_years = 15
trait = strong
NOT = { trait = weak }
is_strong_trigger = yes
is_weak_trigger = no
OR = {
trait = grey_eminence
trait = intricate_webweaver
Expand Down
16 changes: 8 additions & 8 deletions MOD/Witcher/common/objectives/W_ambitions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ obj_cta_0 = {
}
modifier = {
factor = 2
trait = strong
is_strong_trigger = yes
}
modifier = {
factor = 6
Expand All @@ -269,7 +269,7 @@ obj_cta_0 = {
}
modifier = {
factor = 0.333
trait = weak
is_weak_trigger = yes
}
modifier = {
factor = 0.333
Expand Down Expand Up @@ -477,7 +477,7 @@ obj_cta_1 = {
}
modifier = {
factor = 2
trait = strong
is_strong_trigger = yes
}
modifier = {
factor = 6
Expand All @@ -493,7 +493,7 @@ obj_cta_1 = {
}
modifier = {
factor = 0.333
trait = weak
is_weak_trigger = yes
}
modifier = {
factor = 0.333
Expand Down Expand Up @@ -715,7 +715,7 @@ obj_cta_2 = {
}
modifier = {
factor = 2
trait = strong
is_strong_trigger = yes
}
modifier = {
factor = 6
Expand All @@ -731,7 +731,7 @@ obj_cta_2 = {
}
modifier = {
factor = 0.333
trait = weak
is_weak_trigger = yes
}
modifier = {
factor = 0.333
Expand Down Expand Up @@ -954,7 +954,7 @@ obj_cta_3 = {
}
modifier = {
factor = 2
trait = strong
is_strong_trigger = yes
}
modifier = {
factor = 6
Expand All @@ -970,7 +970,7 @@ obj_cta_3 = {
}
modifier = {
factor = 0.333
trait = weak
is_weak_trigger = yes
}
modifier = {
factor = 0.333
Expand Down
12 changes: 6 additions & 6 deletions MOD/Witcher/events/W_academy_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,8 @@ character_event = {

mean_time_to_happen = {
months = 160
modifier = { factor = 0.75 trait = weak }
modifier = { factor = 1.25 trait = strong }
modifier = { factor = 0.75 is_weak_trigger = yes }
modifier = { factor = 1.25 is_strong_trigger = yes }
}

immediate = {
Expand Down Expand Up @@ -744,8 +744,8 @@ character_event = {
modifier = { factor = 2 trait = craven }
modifier = { factor = 0.75 trait = diligent }
modifier = { factor = 1.5 trait = slothful }
modifier = { factor = 0.75 trait = strong }
modifier = { factor = 1.5 trait = weak }
modifier = { factor = 0.75 is_strong_trigger = yes }
modifier = { factor = 1.5 is_weak_trigger = yes }
modifier = { factor = 1.5 is_primary_heir = yes }
}

Expand Down Expand Up @@ -1023,8 +1023,8 @@ character_event = {

mean_time_to_happen = {
months = 160
modifier = { factor = 0.75 trait = weak }
modifier = { factor = 1.25 trait = strong }
modifier = { factor = 0.75 is_weak_trigger = yes }
modifier = { factor = 1.25 is_strong_trigger = yes }
}

immediate = {
Expand Down
4 changes: 2 additions & 2 deletions MOD/Witcher/events/W_artifact events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2320,7 +2320,7 @@ character_event = {

option = { # Try to pull it out
name = EVTOPTAartifact.1051
trigger = { trait = strong }
trigger = { is_strong_trigger = yes }
tooltip_info = strong
custom_tooltip = {
text = attempt_to_pull_balmur_out_of_stone
Expand All @@ -2346,7 +2346,7 @@ character_event = {
}
option = { # Try to pull it out
name = EVTOPTAartifact.1051
trigger = { NOT = { trait = strong } }
trigger = { NOT = { is_strong_trigger = yes } }
custom_tooltip = {
text = attempt_to_pull_balmur_out_of_stone
hidden_tooltip = {
Expand Down
12 changes: 6 additions & 6 deletions MOD/Witcher/events/W_battle_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ character_event = {
}
modifier = {
factor = 2
trait = strong
is_strong_trigger = yes
}
modifier = {
factor = 0.8
trait = weak
is_weak_trigger = yes
}
modifier = {
factor = 0.5
Expand Down Expand Up @@ -457,11 +457,11 @@ character_event = {
factor = 3.0
}
modifier = {
trait = strong
is_strong_trigger = yes
factor = 0.7
}
modifier = {
trait = weak
is_weak_trigger = yes
factor = 2.5
}
modifier = {
Expand Down Expand Up @@ -608,11 +608,11 @@ character_event = {
factor = 3.0
}
modifier = {
trait = strong
is_strong_trigger = yes
factor = 0.7
}
modifier = {
trait = weak
is_weak_trigger = yes
factor = 2.5
}
modifier = {
Expand Down
Loading

0 comments on commit cf2076b

Please sign in to comment.