Skip to content

Commit

Permalink
fixes to forsaken events and enhance propaganda
Browse files Browse the repository at this point in the history
  • Loading branch information
edmund-h committed Dec 22, 2023
1 parent 79402db commit e680f1b
Show file tree
Hide file tree
Showing 7 changed files with 181 additions and 53 deletions.
5 changes: 2 additions & 3 deletions common/council_tasks/00_court_chaplain_tasks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,9 @@ task_conversion = {
if = {
limit = {
scope:councillor_liege = {
exists = var:propaganda_campaign
OR = {
var:propaganda_campaign =? flag:religious
var:propaganda_campaign =? flag:cultural_and_religious
var:propaganda_campaign ?= flag:religious
var:propaganda_campaign ?= flag:cultural_and_religious
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions common/council_tasks/00_steward_tasks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -798,10 +798,9 @@ task_promote_culture = {
if = {
limit = {
scope:councillor_liege = {
exists = var:propaganda_campaign
OR = {
var:propaganda_campaign =? flag:cultural
var:propaganda_campaign =? flag:cultural_and_religious
var:propaganda_campaign ?= flag:cultural
var:propaganda_campaign ?= flag:cultural_and_religious
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions common/on_action/wc_lordaeron_on_actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ random_yearly_playable_pulse = {

random_events = {
chance_of_no_event = {
value = 0
value = 50
if = {
limit = { is_of_forsaken_like_culture = no }
add = 100
add = 50
}
}

10 = forsaken.9001
10 = forsaken.9002
10 = forsaken.9003
#10 = forsaken.9004
10 = forsaken.9004
}

}
6 changes: 3 additions & 3 deletions common/scripted_effects/wc_other_effects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ start_religious_propaganda_campaign = {
years = 2
}
set_variable = {
name = var:propaganda_campaign
name = propaganda_campaign
value = flag:religious
years = 2
}
Expand All @@ -46,7 +46,7 @@ start_cultural_propaganda_campaign = {
years = 2
}
set_variable = {
name = var:propaganda_campaign
name = propaganda_campaign
value = flag:cultural
years = 2
}
Expand All @@ -58,7 +58,7 @@ start_cultural_and_religious_propaganda_campaign = {
years = 2
}
set_variable = {
name = var:propaganda_campaign
name = propaganda_campaign
value = flag:cultural_and_religious
years = 2
}
Expand Down
181 changes: 150 additions & 31 deletions events/wc_events/wc_lordaeron_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,10 @@ forsaken.9003 = {
title = forsaken.9003.title
theme = battle

override_background = {
reference = burning_building
}

right_portrait = {
character = root
animation = worry
Expand All @@ -1240,6 +1244,10 @@ forsaken.9003 = {
}

trigger = {
NOR = {
var:propaganda_campaign ?= flag:religious
var:propaganda_campaign ?= flag:cultural_and_religious
}
any_held_title = {
tier = tier_county
development_level > 2
Expand Down Expand Up @@ -1292,11 +1300,15 @@ forsaken.9003 = {
}

# cast blame on religious minorities
option = {
show_as_unavailable = {
scope:councillor_liege = {
exists = var:propaganda_campaign
option = {
trigger = {
any_held_title = {
NOT = { faith = root.faith }
}
NOR = {
var:propaganda_campaign ?= flag:religious
var:propaganda_campaign ?= flag:cultural_and_religious
}
}
name = forsaken.9003.opt.c
custom_tooltip = {
Expand All @@ -1313,57 +1325,164 @@ forsaken.9004 = {
desc = forsaken.9004.desc
theme = battle

trigger = {
any_character_to_title_neighboring_county = {
NOT = {
holder = { is_allied_to = root } # allies won't do this
AND = {
# faiths who don't hate undead won't do this...
OR = {
county.faith = { has_doctrine = doctrine_death_magic_accepted }
county.faith = { has_doctrine = doctrine_death_magic_approved }
}
# ...but demonic and eldritch governments will do this anyway
holder = { NOR = { has_government = demonic_government has_government = eldritch_government } }
}
}
}
right_portrait = {
character = root
animation = rage
}

immediate = {
random_character_to_title_neighboring_county = {
limit = {
trigger = {
any_held_title = {
tier = tier_county
culture = culture:forsaken
any_neighboring_county = {
NOT = {
holder = { is_allied_to = root }
holder = { is_allied_to = root } # allies won't do this
culture = culture:forsaken # forsaken won't do this
AND = {
# faiths who don't hate undead won't do this...
OR = {
county.faith = { has_doctrine = doctrine_death_magic_accepted }
county.faith = { has_doctrine = doctrine_death_magic_approved }
}
# ...but demonic and eldritch governments will do this anyway
holder = { NOR = { has_government = demonic_government has_government = eldritch_government } }
}
}
}
}
}

immediate = {
random_held_title = {
limit = {
tier = tier_county
culture = culture:forsaken
}
county = {
change_county_control = medium_county_control_loss
}
save_scope_as = raider_target

random_neighboring_county = {
limit = {
NOT = {
holder = { is_allied_to = root }
AND = {
OR = {
county.faith = { has_doctrine = doctrine_death_magic_accepted }
county.faith = { has_doctrine = doctrine_death_magic_approved }
}
holder = { NOR = { has_government = demonic_government has_government = eldritch_government } }
}
}
}
save_scope_as = raider_source
}
save_scope_as = raider_source
}
save_scope_as = raider_target
}

#
# divert local levies to defense
option = {
name = forsaken.9004.opt.a
remove_short_term_gold = medium_gold_value

scope:raider_target = {
add_county_modifier = {
modifier = stewardship_domain_roadside_guard_patrols_modifier
years = 2
}
}
}

#
# pay money for better walls
option = {
name = forsaken.9004.opt.b
add_gold = minor_gold_value

remove_short_term_gold = medium_gold_value

scope:raider_target = {
add_county_modifier = {
modifier = hold_court_8010_fortifications_modifier
years = 2
}
}
}

#
option = {
name = forsaken.9004.opt.d

trigger = {
any_held_title = {
tier = tier_county
NOT = { culture = root.culture }
}
NOR = {
var:propaganda_campaign ?= flag:cultural
var:propaganda_campaign ?= flag:cultural_and_religious
}
}
if = {
limit = { var:propaganda_campaign ?= flag:religious }
custom_tooltip = {
text = propaganda_campaign_cultural_and_religious_tooltip
start_cultural_and_religious_propaganda_campaign = yes
}
} else = {
custom_tooltip = {
text = propaganda_campaign_cultural_tooltip
start_cultural_propaganda_campaign = yes
}
}
}

# raid them back!
option = {
name = forsaken.9004.opt.c

trigger = {
OR = {
has_trait = vengeful has_trait = wrathful has_trait = brave has_trait = impatient has_trait = irritable
martial > 13
}
scope:raider_source = { development_level > 2 }
}

scope:raider_target = {
county = {
change_county_control = medium_county_control_loss
change_development_progress_with_overflow = 50
}
}

send_interface_message = {
type = event_martial_bad
title = forsaken.9004.t
left_icon = scope:root
show_as_tooltip = {
scope:raider_source = {
county = {
change_development_progress_with_overflow = -75
change_county_control = medium_county_control_loss
culture = {
change_cultural_acceptance = {
target = root.culture
value = {
value = 20
multiply = scope:raider_source.county.development_level
divide = 100
}
desc = wc_brushfire_conflict
}
}
}
# todo: maybe add in an event for this because i'm too lazy to do it now and i'm getting sick of this lol
# holder = {
# trigger_event = { id = forsaken.9005 }
# }
}
}
desc = forsaken.9004.tt
}

add_gold = minor_gold_value
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ forsaken.9002.desc.alchemist:0 "My councilors have alterted me to an offer from
forsaken.9002.opt.a:0 "We'll accept the risks. Commence the experiments!"
forsaken.9002.education_successful:0 "Arcane Education"
forsaken.9002.education_successful_tt:0 "Casters were educated in experimental spellcraft"
forsaken.9002.alteration_successful:0 "Alchemical Alteration"
forsaken.9002.alteration_successful_tt:0 "Knights and Giants were enhanced successfully"
forsaken.9002.alterations_successful:0 "Alchemical Alteration"
forsaken.9002.alterations_successful_tt:0 "Knights and Giants were enhanced successfully"
forsaken.9002.education_failed:0 "Arcane Explosion"
forsaken.9002.education_failed_tt:0 "Arcane education ended in tragedy"
forsaken.9002.alteration_failed:0 "Alchemical Accident"
forsaken.9002.alteration_failed_tt:0 "Alchemical alteration ended tragically"
forsaken.9002.alterations_failed:0 "Alchemical Accident"
forsaken.9002.alterations_failed_tt:0 "Alchemical alteration ended tragically"
forsaken.9002.opt.b:0 "Let us go with a more conventional option."
forsaken.9002.opt.c:0 "Get this heretic out of my sight!"

Expand All @@ -103,8 +103,11 @@ forsaken.9003.opt.a:0 "Disperse funds for reconstruction immediately."
forsaken.9003.opt.b:0 "Brief our salvage teams for cleanup."
forsaken.9003.opt.c:0 "I want a propaganda campaign drawn up by sundown!"

forsaken.9004.title:0 "An Offer We Could Refuse"
forsaken.9004.desc.echoseeker:0 "My councilors have alterted me to an offer from an Arcanist of some repute. This $echo_of_life_adherent$ claims to have the ability to teach our casters powerful experimental spells, in exchange for a small fee and temporary access to some of our restricted arcane texts. We could accept this offer, but it is well known that Arcane magic carries inherent risks and the $echo_of_life_adherent_plural$ are known for carelessness in their pursuits. Another solution would be to have this mage make more traditional enchantments and magical enhancements to our troops' armor. The choice is mine as to how to proceed."troops' armor. The choice is mine as to how to proceed."
forsaken.9004.opt.a:0 "We'll accept the risks. Commece the experiments!"
forsaken.9004.opt.b:0 "Let us go with a more conventional option."
forsaken.9004.opt.c:0 "Get this heretic out of my sight!"
forsaken.9004.title:0 "Brushfire Conflict"
forsaken.9004.desc:0 "I slow my horse to a stop as I survey the ruined town that has just come into view over the horizon. On the side of the road, a crow picks at the eye socket of a fallen Forsaken farmer. Where last night pillars of smoke poured into the air, now there is only silence, ashes, and ruins.\n\nYet again my people suffer the depredations of the living. They refuse to acknowledge us as sentient, as deserving of peace and property. They carry our belongings, our wealth, the fruit of our harvest home and their leaders do nothing. The corpse of the farmer below bears the marks of crude implements and not precise weapons; this was done by mere peasants with no sanction from their lord."
forsaken.9004.opt.a:0 "Rearrange our levies, we must keep these people safe."
forsaken.9004.opt.b:0 "Allocate additional funds to defense."
forsaken.9004.opt.d:0 "This gives us an opportunity to build solidarity."
forsaken.9004.opt.c:0 "We will have our revenge. Tonight we ride!"
forsaken.9004.t:0 "Brushfire Conflict"
forsaken.9004.tt:0 "This occurred because of your county faith's hatred of the Forsaken."
10 changes: 9 additions & 1 deletion localization/english/modifiers/wc_modifiers_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,15 @@
goblin_business_desc:0 "This person knows how to make money"

propaganda_campaign_bonus_add:0 "A propaganda campaign is in force, increasing conversion speed."
propaganda_campaign_tooltip:0 "A propaganda campaign will begin, granting your councilor an increased conversion speed as well as giving you small amount of [prestige|E] and/or [piety|E]."
propaganda_campaign_religious_tooltip:0 "A propaganda campaign will begin, granting your [court_chaplain|E] an increased conversion speed as well as giving you small amount of [piety|E]."
propaganda_campaign_cultural_tooltip:0 "A propaganda campaign will begin, granting your [steward|E] an increased conversion speed as well as giving you small amount of [prestige|E]."
propaganda_campaign_cultural_and_religious_tooltip:0 "A propaganda campaign will begin, granting your [court_chaplain|E] and [steward|E] an increased conversion speed as well as giving you small amount of [prestige|E] and [piety|E]."

wc_propaganda_campaign_cultural:0 "Cultural Propaganda Campaign"
wc_propaganda_campaign_religious:0 "Religious Propaganda Campaign"
wc_propaganda_campaign_cultural_and_religious:0 "Total Propaganda Campaign"

wc_brushfire_conflict:0 "Brushfire Conflict"

#placeholder
wc_medium_development_growth_factor:0 "Medium Development Growth Bonus"
Expand Down

0 comments on commit e680f1b

Please sign in to comment.