Skip to content

Commit

Permalink
Rework to Quilboar Events
Browse files Browse the repository at this point in the history
Finished quilboar events, added total of three decisions and a new magical currency (blood shards) which anyone with the faith of Agamaggan can use.
  • Loading branch information
usfshihy committed Oct 2, 2023
1 parent fc1d12d commit 26e73f0
Show file tree
Hide file tree
Showing 14 changed files with 852 additions and 78 deletions.
2 changes: 1 addition & 1 deletion common/buildings/wc_special_buildings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -667,4 +667,4 @@ zuldazar_01 = {

type = special
flag = travel_point_of_interest_martial
}
}
54 changes: 54 additions & 0 deletions common/buildings/wc_vine_quilboar_buildings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#Quilboar vined thorns
quilboar_thorns_01 = {
type_icon = "icon_structure_corpse_of_agamaggan.dds"

character_modifier = {
same_faith_opinion = 2

}
province_modifier = {
stationed_caster_damage_mult = 0.05
stationed_caster_siege_value_add = 1
stationed_skirmishers_toughness_mult = 0.05
travel_danger = -5
}

next_building = quilboar_thorns_02
}

quilboar_thorns_02 = {
type_icon = "icon_structure_corpse_of_agamaggan.dds"

character_modifier = {
same_faith_opinion = 2
monthly_piety_gain_mult = 0.05

}
province_modifier = {
stationed_caster_damage_mult = 0.1
stationed_caster_siege_value_add = 1
stationed_skirmishers_toughness_mult = 0.1
travel_danger = -10
}

next_building = quilboar_thorns_03
cost_gold = 200
}

quilboar_thorns_03 = {
type_icon = "icon_structure_corpse_of_agamaggan.dds"

character_modifier = {
same_faith_opinion = 4
levy_reinforcement_rate_same_faith = 1.25
monthly_piety_gain_mult = 0.1

}
province_modifier = {
stationed_caster_damage_mult = 0.15
stationed_caster_siege_value_add = 2
stationed_skirmishers_toughness_mult = 0.15
travel_danger = -15
}
cost_gold = 250
}
102 changes: 101 additions & 1 deletion common/decisions/wc_cen_kal_decisions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,35 @@
}
}

blood_shards_gather_operation = {
ai_check_interval = 12
picture = "gfx/interface/illustrations/decisions/quilboar_gatherers.dds"
desc = blood_shards_gather_operation_desc
title = blood_shards_gather_operation_name
selection_tooltip = blood_shards_gather_operation_tt
confirm_text = blood_shards_gather_operation_confirm
major = yes

cooldown = { years = 2 }

is_shown = {
is_landed = yes
faith = faith:agamaggan_worship
NOT = { root.primary_title = { is_mercenary_company = yes } }
}

is_valid = {
custom_tooltip = {
text = blood_shards_gather_operation_req_tt
NOT = { has_character_flag = has_working_bloodstone_foragers }
}
}

cost = { gold = 75 piety = 50 }

effect = { trigger_event = cen_kal.1050 }
}

change_agamaggan_blessing = {
ai_check_interval = 12
picture = "gfx/interface/illustrations/decisions/quilboar_band.dds"
Expand All @@ -37,11 +66,82 @@ change_agamaggan_blessing = {

is_shown = {
is_landed = yes
has_character_flag = has_working_bloodstone_foragers
faith = faith:agamaggan_worship
NOT = { root.primary_title = { is_mercenary_company = yes } }
}

is_valid = {
custom_tooltip = {
text = change_agamaggan_blessing_req_tt
var:blood_shard_count >= 4
}
}

cost = { piety = 25 }

effect = { trigger_event = cen_kal.1052 }
}

create_thorns_quilboar = {
ai_check_interval = 12
picture = "gfx/interface/illustrations/decisions/quilboar_vines.dds"
desc = create_thorns_quilboar_desc
title = create_thorns_quilboar_name
selection_tooltip = create_thorns_quilboar_tt
confirm_text = create_thorns_quilboar_confirm
major = yes

cooldown = { years = 2 }

is_shown = {
is_landed = yes
exists = capital_province
faith = faith:agamaggan_worship
NOR = {
root.primary_title = { is_mercenary_company = yes }
government_has_flag = government_is_theocracy
}
}

is_valid = {
highest_held_title_tier >= tier_duchy
custom_tooltip = {
text = create_thorns_quilboar_req_tt
var:blood_shard_count >= 12
}
}

effect = {
custom_tooltip = create_thorns_quilboar_tt
random_sub_realm_county = {
limit = {
OR = {
holder = root
holder = { is_vassal_or_below_of = root }
}
title_province = {
NOR = {
has_building = quilboar_thorns_01
has_building = quilboar_thorns_02
has_building = quilboar_thorns_03
}
}
}
title_province = { save_scope_as = thorn_location }
}
#Found one
if = { limit = { exists = scope:thorn_location }
set_variable = {
name = thorn_location
value = scope:thorn_location
}
trigger_event = cen_kal.1055
}
#No Avalible provinces
if = { limit = { NOT = { exists = scope:thorn_location } } trigger_event = cen_kal.1056 }
}

cost = { piety = 50 }

ai_will_do = { base = 100 }
}
5 changes: 5 additions & 0 deletions common/modifiers/wc_event_modifiers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,8 @@ wc_exploded_depot = {
levy_size = 0.5
levy_reinforcement_rate = 0.5
}

#Quilboar Blood shards
wc_quilboar_bloodshards = {
icon = rock_positive
}
73 changes: 61 additions & 12 deletions common/on_action/wc_central_kal_events_on_actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,22 @@ wc_earth_faith_on_character_faith_change = {
}
}

on_game_start_after_lobby = { on_actions = { quilboar_add_blood_shards_trait_all_chars } }

on_birth_child = { on_actions = { quilboar_add_blood_shards_trait } }

#Central Kalimdor Random Event Triggers
yearly_playable_pulse = {
on_actions = {
wc_tauren_yearly_playable_pulse
wc_cen_kal_yearly_playable_pulse
goblin_depot_operation_events
}
}

on_death = {
on_actions = {
quilboar_pass_flag_blood_shards
quilboar_pass_modifier_blood_shards
}
}

Expand All @@ -32,15 +37,16 @@ quarterly_playable_pulse = {
}
}

wc_tauren_yearly_playable_pulse = {
wc_cen_kal_yearly_playable_pulse = {
on_actions = {
delay = { days = { 1 90 } }
central_kal_events.1 #Central Kalimdor Events
central_kal_events.1 #Central Kalimdor Random Events
delay = { months = { 4 8 } }
earth_mother_events.1 #Earth Mother Specific Events
}
events = {
cen_kal.1051 #Yearly cost of quilboar blood stones event
cen_kal.1051 #Yearly cost of quilboar blood stones search
cen_kal.1059 #Yearly cost of quilboar blood stones ritual
}
}

Expand All @@ -52,7 +58,7 @@ central_kal_events.1 = {
5 = cen_kal.1001
5 = cen_kal.1010
5 = cen_kal.1025
15 = cen_kal.1050
5 = cen_kal.1053
}
}
earth_mother_events.1 = {
Expand Down Expand Up @@ -96,16 +102,59 @@ quilboar_pass_flag_blood_shards = {
}
}

quilboar_pass_modifier_blood_shards = {
effect = {
if = {
limit = { has_character_modifier = wc_quilboar_bloodshards }
player_heir ?= {
set_variable = {
name = blood_shard_count
value = root.var:blood_shard_count
}
add_character_modifier = wc_quilboar_bloodshards
}
}
}
}

quilboar_faith_change_blood_shards = {
effect = {
if = { limit = { has_character_modifier = wc_quilboar_aga_str } remove_character_modifier = wc_quilboar_aga_str }
if = { limit = { has_character_modifier = wc_quilboar_aga_agl } remove_character_modifier = wc_quilboar_aga_agl }
if = { limit = { has_character_modifier = wc_quilboar_aga_wis } remove_character_modifier = wc_quilboar_aga_wis }
if = { limit = { has_character_modifier = wc_quilboar_aga_spr } remove_character_modifier = wc_quilboar_aga_spr }
if = { limit = { has_character_modifier = wc_quilboar_aga_rzh } remove_character_modifier = wc_quilboar_aga_rzh }
remove_character_flag = has_working_bloodstone_foragers
remove_character_flag = has_active_quilboar_ritual
remove_character_modifier = wc_quilboar_bloodshards
if = {
limit = { has_character_flag = has_working_bloodstone_foragers }
if = { limit = { has_character_modifier = wc_quilboar_aga_str } remove_character_modifier = wc_quilboar_aga_str }
if = { limit = { has_character_modifier = wc_quilboar_aga_agl } remove_character_modifier = wc_quilboar_aga_agl }
if = { limit = { has_character_modifier = wc_quilboar_aga_wis } remove_character_modifier = wc_quilboar_aga_wis }
if = { limit = { has_character_modifier = wc_quilboar_aga_spr } remove_character_modifier = wc_quilboar_aga_spr }
if = { limit = { has_character_modifier = wc_quilboar_aga_rzh } remove_character_modifier = wc_quilboar_aga_rzh }
remove_character_flag = has_working_bloodstone_foragers
limit = { faith = faith:agamaggan_worship }
if = { limit = { NOT = { exists = var:blood_shard_count } } set_variable = { name = blood_shard_count value = 0 } }
if = { limit = { is_ai = no } add_character_modifier = wc_quilboar_bloodshards }
}
}
}

quilboar_add_blood_shards_trait = {
effect = {
if = {
limit = { faith = faith:agamaggan_worship }
if = { limit = { NOT = { exists = var:blood_shard_count } } set_variable = { name = blood_shard_count value = 0 } }
if = { limit = { is_ai = no } add_character_modifier = wc_quilboar_bloodshards }
}
}
}

quilboar_add_blood_shards_trait_all_chars = {
effect = {
faith:agamaggan_worship = {
every_faith_ruler = {
set_variable = {
name = blood_shard_count
value = 0
}
if = { limit = { is_ai = no } add_character_modifier = wc_quilboar_bloodshards }
}
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions common/traits/wc_general_traits.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,4 @@ wc_tauren_EM_NEG_hawk = {
level = 5
shown_in_ruler_designer = no
icon = "witch.dds"
}

}
Loading

0 comments on commit 26e73f0

Please sign in to comment.