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

holy light uther stuff #1291

Closed
wants to merge 13 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
9 changes: 9 additions & 0 deletions common/script_values/wc_arthas_expedition_values.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ find_uther_value = {
limit = { has_trait = temperate }
add = 10
}

if = {
limit = { exists = character:60036 this = character:60036 }
add = 100
}
if = {
limit = { is_landed = yes }
add = 20
}
}
find_jaina_value = {
value = 0.001
Expand Down
10 changes: 6 additions & 4 deletions common/scripted_effects/wc_arthas_expedition_effects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,23 @@
set_global_variable = { name = arthas_character value = this }
}
}

find_uther_effect = {
every_courtier = { add_to_temporary_list = valid_uthers }
every_vassal = { add_to_temporary_list = valid_uthers }
top_liege = {
every_courtier = { add_to_temporary_list = valid_uthers }
every_vassal = { add_to_temporary_list = valid_uthers }
every_vassal = { every_vassal = { add_to_temporary_list = valid_uthers } }
every_vassal = { every_vassal = { every_vassal = { add_to_temporary_list = valid_uthers } } }
}
faith = {
every_faith_holy_order = { leader = { add_to_temporary_list = valid_uthers } }
}
every_player = { add_to_temporary_list = valid_uthers }
ordered_in_list = {
limit = {
is_ai = yes

can_be_invited_in_arthas_expedition_trigger = { INVITER = scope:host }
limit = { # Uther wont be invited with the normal trigger
is_available_for_activity_trigger = yes
}
list = valid_uthers
order_by = find_uther_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ wc_arthas_story.10 = {
immediate = {
if = {
limit = { root = scope:host }

find_uther_effect = yes
find_jaina_effect = yes

scope:uther = {
if = {
limit = { is_commanding_army = yes }
Expand Down Expand Up @@ -124,6 +124,7 @@ wc_arthas_story.10 = {
name = wc_arthas_story_10_OPT_arthas
}
}

# Everything around looks dead, you find an abandoned farm, is attacked by undead inside, briefly see Kel'Thuzad
wc_arthas_story.15 = {
type = activity_event
Expand Down Expand Up @@ -298,6 +299,7 @@ wc_arthas_story.30 = {
NOT = { root = scope:host }
}
}

on_trigger_fail = {
# Stops the event chain
if = {
Expand Down Expand Up @@ -398,11 +400,11 @@ wc_arthas_story.30 = {
if = {
limit = { root = scope:host }
share_event_with_group_delay_effect = { ID = wc_arthas_story.35 DAYS = 1 }
trigger_event = { id = wc_arthas_story.40 days = @stratholme_delay }
}
}
}
# Arthas tells you about his decision (it depends on Arthas' decision above)

# Arthas tells you about his decision (it depends on Arthas' decision above & Uther's interference)
wc_arthas_story.35 = {
type = activity_event
title = {
Expand Down Expand Up @@ -480,6 +482,7 @@ wc_arthas_story.35 = {

purge_event_modifier = yes
}

}
# Stay (evacuate)
option = {
Expand Down Expand Up @@ -521,10 +524,18 @@ wc_arthas_story.35 = {
}
}
trigger = {
NAND = {
scope:activity = { has_variable = jaina }
scope:activity.var:jaina = { is_alive = yes }
root = scope:activity.var:jaina
NOR = {
AND = {
scope:stratholme_action = flag:purge
scope:activity = { has_variable = uther }
root = scope:activity.var:uther
scope:activity.var:uther = { is_alive = yes }
}
AND = {
scope:activity = { has_variable = jaina }
scope:activity.var:jaina = { is_alive = yes }
root = scope:activity.var:jaina
}
}
}

Expand All @@ -540,6 +551,37 @@ wc_arthas_story.35 = {
}
}
}
# Uther's Reaction, might leave
option = {
name = wc_arthas_story_35_OPT_B_purge_uther

trigger = {
scope:stratholme_action = flag:purge
scope:activity = { has_variable = uther }
scope:activity.var:uther = { is_alive = yes }
root = scope:activity.var:uther
scope:activity.var:uther = { is_ai = no } # no ai
scope:activity.var:uther = { is_uther_trigger = yes } #real uther
}

scope:activity.var:uther = {
add_character_flag = uther_decision
trigger_event = {
id = uther_events.002
}
}

custom_tooltip = uther_tooltip

ai_chance = {
base = 15

modifier = {
scope:activity.var:uther ?= root
add = 5
}
}
}
# Leave - Jaina
option = {
name = {
Expand Down Expand Up @@ -580,6 +622,27 @@ wc_arthas_story.35 = {
}
}
}
after = {
if = {
limit = { scope:activity.var:uther = {
has_character_flag = uther_decision
} }
#wait for uther decision
trigger_event = {
id = wc_arthas_story.40
days = 6
}
# This gives enough time for a decision to be made, and for arthas to do it, and then to decide to sail
current_travel_plan = {
delay_travel_plan = { days = 6 }
}
}
else = {
# continue like normal
trigger_event = { id = wc_arthas_story.40 days = 3 }
}
}

}
# Arthas does what he wanted with the city (it depends on Arthas' decision above)
wc_arthas_story.40 = {
Expand Down Expand Up @@ -644,9 +707,25 @@ wc_arthas_story.40 = {
}

immediate = {
if = { #changes arthas decision based on uther event
limit = { scope:host = { has_character_flag = uther_q } }
save_scope_value_as = { name = stratholme_action value = flag:quarantine }
scope:host = { add_character_flag = { flag = original_purge days = 30 } }
current_travel_plan = {
delay_travel_plan = { days = 10 }
}
}
if = {
limit = { scope:host = { has_character_flag = uther_e } }
save_scope_value_as = { name = stratholme_action value = flag:evacuate }
scope:host = { add_character_flag = { flag = original_purge days = 30 } }
current_travel_plan = {
delay_travel_plan = { days = 10 }
}
}
helloruhe marked this conversation as resolved.
Show resolved Hide resolved
if = {
limit = { root = scope:host }

arthas_find_terenas_effect = yes

scope:activity = {
Expand Down Expand Up @@ -676,7 +755,7 @@ wc_arthas_story.40 = {
}
}
}

if = {
limit = { scope:stratholme_action = flag:purge }
purge_event_effect = yes
Expand All @@ -688,19 +767,22 @@ wc_arthas_story.40 = {
else = {
quarantine_event_effect = yes
}

}

# Sail Northrend
option = {
trigger = {
root = scope:host
scope:stratholme_action = flag:purge
OR = {
scope:host = { has_character_flag = original_purge }
scope:stratholme_action = flag:purge
}
}
name = wc_arthas_story_40_OPT_D

sail_northrend_event_effect = yes

share_event_with_group_delay_effect = { ID = wc_arthas_story.45 DAYS = 1 }
arthas_find_terenas_effect = yes
global_var:terenas_character = {
trigger_event = { id = wc_arthas_story.50 days = 1 }
Expand Down Expand Up @@ -770,7 +852,6 @@ wc_arthas_story.40 = {
}
}
}

# Reaction for world
option = {
trigger = { is_in_arthas_expedition_trigger = no }
Expand Down Expand Up @@ -803,6 +884,17 @@ wc_arthas_story.40 = {
}
}
}
after = {
if = {
limit = {
OR = {
scope:host = { has_character_flag = original_purge }
scope:stratholme_action = flag:purge
}
}
}
share_event_with_group_delay_effect = { ID = wc_arthas_story.45 DAYS = 1 }
}
}
# Arthas tells you about his plan to sail Northrend to chase Mal'ganis
wc_arthas_story.45 = {
Expand Down
Loading