Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undead Population and Scourge Invite Conversion #1238

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@

special_ai_interaction = recruit_courtier

desc = recruit_guest_interaction_desc
# Warcraft
# Warning for Scourge players
desc = {
desc = recruit_guest_interaction_desc
triggered_desc = {
trigger = {
scope:actor.culture = { has_cultural_pillar = heritage_undead }
scope:actor.faith = { has_doctrine = special_doctrine_end_justifies_means }
}

desc = recruit_guest_may_turn_undead
}
}

should_use_extra_icon = {
NOT = { scope:recipient = { is_close_family_of = scope:actor } }
Expand Down Expand Up @@ -113,6 +125,21 @@
opinion = 50
modifier = grateful_opinion
}

# Warcraft
# Scourge convert those who join court
if = {
limit = {
AND = {
scope:actor.culture = { has_cultural_pillar = heritage_undead }
scope:actor.faith = { has_doctrine = special_doctrine_end_justifies_means }
}
}
random = {
chance = scourge_conversion_effectiveness
add_trait = being_undead
}
}
}

scope:actor = {
Expand Down Expand Up @@ -504,8 +531,20 @@ kick_from_court_interaction = {
invite_to_court_interaction = {
category = interaction_category_vassal
icon = guest

desc = invite_to_court_interaction_desc
desc = {
desc = invite_to_court_interaction_desc

# Warcraft
# Warning for Scourge players
triggered_desc = {
trigger = {
scope:actor.culture = { has_cultural_pillar = heritage_undead }
scope:actor.faith = { has_doctrine = special_doctrine_end_justifies_means }
}

desc = invite_to_court_may_turn_undead
}
}

is_shown = {
scope:recipient = {
Expand Down Expand Up @@ -619,6 +658,25 @@ invite_to_court_interaction = {
}
}
}

# Warcraft
# Scourge convert invitees to undead by inviting to court
scope:recipient = {
if = {
limit = {
AND = {
scope:actor.culture = { has_cultural_pillar = heritage_undead }
scope:actor.faith = { has_doctrine = special_doctrine_end_justifies_means }
}
}
every_traveling_family_member = {
random = {
chance = scourge_conversion_effectiveness
add_trait = being_undead
}
}
}
}
}

ai_accept = {
Expand Down
36 changes: 34 additions & 2 deletions common/character_interactions/00_grant_titles_interaction.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,20 @@
category = interaction_category_vassal
common_interaction = yes

desc = grant_titles_interaction_desc
# Warcraft
# Warning for Scourge players
desc = {
desc = grant_titles_interaction_desc

triggered_desc = {
trigger = {
scope:actor.culture = { has_cultural_pillar = heritage_undead }
scope:actor.faith = { has_doctrine = special_doctrine_end_justifies_means }
}

desc = grant_title_may_turn_undead
}
}

special_interaction = grant_titles_interaction
interface = grant_titles
Expand All @@ -27,7 +40,7 @@
}
}
}

is_valid_showing_failures_only = {
scope:recipient = {
custom_tooltip = {
Expand Down Expand Up @@ -1078,6 +1091,25 @@
}
}

# Warcraft
# Evil Undead heritage characters may turn other characters when granting titles
scope:recipient = {
if = {
limit = {
AND = {
scope:actor.culture = { has_cultural_pillar = heritage_undead }
scope:actor.faith = { has_doctrine = special_doctrine_end_justifies_means }
}
}
every_traveling_family_member = {
random = {
chance = scourge_conversion_effectiveness
add_trait = being_undead
}
}
}
}

#hidden_effect = {
# # Struggle Catalyst
# if = {
Expand Down
10 changes: 10 additions & 0 deletions common/script_values/wc_plague_values.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,14 @@ plague_agent_sins = {
}

min = 0
}

# Scourge conversion values

scourge_undead_population_percent = {
value = 80 # this could be changed with a game rule in the future
}

scourge_conversion_effectiveness = {
value = 90 # this could be changed with a game rule in the future
}
11 changes: 11 additions & 0 deletions common/scripted_effects/wc_race_effects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ try_to_set_race_effect = {
# limit = { exists = mother }
# mother = { trigger_event = WCRAC.5 }
# }

#Add Undead trait if undead culture
if = {
limit = {
culture = { has_cultural_pillar = heritage_undead }
}
random = {
chance = scourge_undead_population_percent
add_trait = being_undead
}
}

# Add new races always at the end
if = {
Expand Down
6 changes: 5 additions & 1 deletion localization/english/wc_tooltip_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@
wc_unknown_birth:0 "The age of this character is unfathomable to most. Almost none can recall the time when they were born."

wc_members_choice_the_first_horde_tooltip:0 "Your [vassals|E] will face a choice — stay in the Horde or leave it and become [independent|E]."
wc_save_the_first_horde_tooltip:0 "The Horde will stay united"
wc_save_the_first_horde_tooltip:0 "The Horde will stay united"

grant_title_may_turn_undead:0 "\n#warning Granting this character a Title may cause them to turn Undead.\n#"
recruit_guest_may_turn_undead:0 "\n#warning Recruiting this character to Court may cause them to turn Undead.\n#"
invite_to_court_may_turn_undead:0 "\n#warning This character may turn Undead when they arrive at your Court.\n#""
Loading