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

Opening of Ulduar #1864

Merged
merged 32 commits into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
277bc39
added decision to open ulduar and first event
sejtalk Mar 23, 2021
44bf2e9
finished ulduar expedition event code
sejtalk Mar 24, 2021
ae7738c
added explorers.tga event picture(GIH)
sejtalk Mar 24, 2021
d68334a
added ulduar event picture(GIH)
sejtalk Mar 24, 2021
edf1ebf
closed down ulduar since you can open it now(GDC)
sejtalk Mar 25, 2021
d075875
moved the decision to correct place(GDC)
sejtalk Mar 25, 2021
7d75210
added code for event pictures
sejtalk Mar 25, 2021
b6a082a
added open_ulduar decision icon(GIH)
sejtalk Mar 25, 2021
ce00f37
added ulduar decision loc
sejtalk Mar 25, 2021
386ea2e
changed conditions in ulduar decision
sejtalk Mar 25, 2021
6143e88
added partial event loc
sejtalk Mar 25, 2021
ce9c378
added more partial loc
sejtalk Mar 25, 2021
59af9f5
explorer who discovers ulduar gets prestige
sejtalk Mar 25, 2021
dbbd69a
added more ulduar loc
sejtalk Mar 25, 2021
41cde50
added more ulduar loc
sejtalk Mar 25, 2021
a04b50e
added code for open ulduar icon
sejtalk Mar 25, 2021
0850b6e
fixed the bug that made decison unavaible
sejtalk Mar 25, 2021
0ad02c7
added correct pictures to the events and shortened loc to make sure i…
sejtalk Mar 25, 2021
ca2fadd
added more loc and loc fixes
sejtalk Mar 25, 2021
6d4606d
reversed this change since you can now open ulduar(GDC)
sejtalk Mar 25, 2021
ccfaeed
added german translation and suggested changes to english loc.
arithon Mar 28, 2021
c6cd034
you can no longer declare war on ulduar
sejtalk Apr 26, 2021
cf85697
Merge branch 'master' into opening-of-ulduar
sejtalk May 20, 2021
2db434e
fixed bug that blocked declaring war
sejtalk May 20, 2021
449dba1
event can no longer pick a player
sejtalk May 20, 2021
9b27148
added ai = no pretrigger to open_ulduar decision
sejtalk May 20, 2021
14bbe5f
characters following evil religion will only hire brann if he has sam…
sejtalk May 20, 2021
28d9220
making event death proof wip
sejtalk May 20, 2021
7db149d
Merge branch 'master' into opening-of-ulduar
sejtalk Jun 29, 2021
6883041
fixed opening of ulduar event
sejtalk Jul 16, 2021
8557333
ulduar explorer doesnt get effect if dead
sejtalk Jul 21, 2021
018f752
added memewizard suggestions(GDC)
sejtalk Jul 22, 2021
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
18 changes: 18 additions & 0 deletions common/scripted_effects/wc_unit_scripted_effects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -372,4 +372,22 @@ spawn_yogg_saron_invasion_troops_effect = {
spawn_yogg_saron_follower_troops_effect = yes
}
}
}
spawn_ulduar_defence_troops_effect = {
custom_tooltip = {
text = spawn_ulduar_defence_troops_tooltip
spawn_unit = {
owner = THIS
province = capital_scope
home = THIS
troops = {
heavy_infantry = { 5000 5000 }
pikemen = { 1000 1000 }
siege_machines = { 250 250 }
}
attrition = 0
maintenance = no
earmark = ulduar_defence_troops_earmark
}
}
}
16 changes: 7 additions & 9 deletions common/scripted_triggers/wc_scripted_triggers.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
### IMPORTANT, WIDELY USED TRIGGERS ###
# YOU CAN NOT INTERACT WITH THEM
is_untouchable_trigger = {
# Since Ulduar can't be opened outside, it was sad you couldn't conquer it
always = no
# trigger_if = {
# limit = { top_liege = { primary_title = { title = d_ulduar } } }
# custom_tooltip = { text = ulduar_is_opened_tooltip NOT = { has_global_flag = ulduar_opened_flag } }
# }
# trigger_else = {
# always = no
# }
trigger_if = {
limit = { top_liege = { primary_title = { title = d_ulduar } } }
custom_tooltip = { text = ulduar_is_opened_tooltip NOT = { has_global_flag = ulduar_opened_flag } }
}
sejtalk marked this conversation as resolved.
Show resolved Hide resolved
trigger_else = {
always = no
}
sejtalk marked this conversation as resolved.
Show resolved Hide resolved
}

# FORBIDS AI TO ATTACK THEM
Expand Down
31 changes: 31 additions & 0 deletions decisions/wc_realm_decisions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,37 @@ decisions = {
factor = 1
}
}
open_ulduar = {
is_high_prio = yes

ai_check_interval = 36

only_playable = yes
only_independent = yes

potential = {
higher_real_tier_than = DUKE
NOT = { has_global_flag = ulduar_opened_flag }
NOT = { has_global_flag = ulduar_expedition }
any_realm_province = { region = world_northrend }
}

allow = {
real_tier = EMPEROR
realm_size >= 150
wealth = 500
}

effect = {
wealth = -500
set_global_flag = ulduar_expedition
character_event = { id = WCUTF.10 days = 5 }
}

ai_will_do = {
factor = 0
}
sejtalk marked this conversation as resolved.
Show resolved Hide resolved
}
}
targeted_decisions = {
# Ability to get rid of evil character without penalties
Expand Down
107 changes: 107 additions & 0 deletions events/wc_titanforged_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,111 @@ character_event = {
}
}
}
}
#ulduar expedition
character_event = {
#Basic event information
id = WCUTF.10
desc = EVTDESC_WCUTF.10
picture = GFX_evt_explorers
border = GFX_event_normal_frame_war

is_triggered_only = yes

immediate = {
#tries to use brann bronzebeard first
if = {
limit = {
c_17028 = {
is_untouchable_trigger = no
is_alive = yes
is_incapable = no
prisoner = no
sejtalk marked this conversation as resolved.
Show resolved Hide resolved
OR = {
AND = {
ROOT = { evil_public_religion_trigger = no }
c_17028 = { evil_public_religion_trigger = no }
}
AND = {
ROOT = { evil_public_religion_trigger = yes }
c_17028 = { evil_public_religion_trigger = yes }
}
sejtalk marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
c_17028 = {
save_event_target_as = ulduar_explorer
}
}
#create explorer
else = {
create_character = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
female = no
attributes = {
martial = 3
diplomacy = 5
stewardship = 5
intrigue = 3
learning = 5
}
trait = explorer
}
new_character = {
set_prev_gfx_effect = yes
character_event = { id = WCRAC.10 }
save_event_target_as = ulduar_explorer
}
}
}

option = {
name = EVTOPTA_WCUTF.10
event_target:ulduar_explorer = {
add_trait = travelling
}
narrative_event = { id = WCUTF.20 days = 120 }
sejtalk marked this conversation as resolved.
Show resolved Hide resolved
}
}
#breach of ulduar
narrative_event = {
id = WCUTF.20
title = EVTTITLE_WCUTF.20
desc = EVTDESC_WCUTF.20
picture = GFX_evt_ulduar
border = GFX_event_narrative_frame_war

is_triggered_only = yes

major = yes
major_trigger = {
ai = no
}

immediate = {
d_ulduar = {
any_de_jure_vassal_title = {
location = {
remove_province_modifier = ulduar_closed_down
}
}
holder_scope = {
spawn_ulduar_defence_troops_effect = yes
}
}
set_global_flag = ulduar_opened_flag
clr_global_flag = ulduar_expedition
}

option = {
name = EVTOPTA_WCUTF.20
event_target:ulduar_explorer = {
remove_trait = travelling
add_trait = stressed
prestige = 1000
}
sejtalk marked this conversation as resolved.
Show resolved Hide resolved
}
}
Binary file added gfx/event_pictures/explorers.tga
Binary file not shown.
Binary file added gfx/event_pictures/ulduar.tga
Binary file not shown.
Binary file added gfx/interface/decision_icons/open_ulduar.dds
Binary file not shown.
6 changes: 3 additions & 3 deletions history/titles/c_eanorah.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# e_storm_peaks
10.1.1={
liege=d_ulduar
# effect = {
# location = { add_province_modifier = { name = ulduar_closed_down duration = -1 } }
# }
effect = {
location = { add_province_modifier = { name = ulduar_closed_down duration = -1 } }
}
}
10.1.1={holder=400501} #Loken[150004]
6 changes: 3 additions & 3 deletions history/titles/c_iahienal.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# e_storm_peaks
10.1.1={
liege=d_ulduar
# effect = {
# location = { add_province_modifier = { name = ulduar_closed_down duration = -1 } }
# }
effect = {
location = { add_province_modifier = { name = ulduar_closed_down duration = -1 } }
}
}
10.1.1={holder=400502} #Thorim[150005]
6 changes: 3 additions & 3 deletions history/titles/c_ulduar.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# e_storm_peaks
10.1.1={
liege=d_ulduar
# effect = {
# location = { add_province_modifier = { name = ulduar_closed_down duration = -1 } }
# }
effect = {
location = { add_province_modifier = { name = ulduar_closed_down duration = -1 } }
}
}
10.1.1={holder=400501} #Loken[150004]
4 changes: 4 additions & 0 deletions interface/wc_decision_icons.gfx
Original file line number Diff line number Diff line change
Expand Up @@ -400,4 +400,8 @@ spriteTypes = {
name = "GFX_resurrect_lei_shen"
texturefile = "gfx\\interface\\decision_icons\\resurrect_lei_shen.tga"
}
spriteType = {
name = "GFX_open_ulduar"
texturefile = "gfx\\interface\\decision_icons\\open_ulduar.tga"
}
}
10 changes: 10 additions & 0 deletions interface/wc_event_pictures.gfx
Original file line number Diff line number Diff line change
Expand Up @@ -634,4 +634,14 @@ spriteTypes = {
texturefile = "gfx\\event_pictures\\tolvir_prophet.tga"
allwaystransparent = yes
}
spriteType = {
name = "GFX_evt_explorers"
texturefile = "gfx\\event_pictures\\explorers.tga"
allwaystransparent = yes
}
spriteType = {
name = "GFX_evt_ulduar"
texturefile = "gfx\\event_pictures\\ulduar.tga"
allwaystransparent = yes
}
}
7 changes: 7 additions & 0 deletions localisation/00_wc_sad.csv
Original file line number Diff line number Diff line change
Expand Up @@ -774,3 +774,10 @@ forge_hammer_of_the_twilight;Forge the Hammer of Twilight;;Schmiedet den Schatte
forge_hammer_of_the_twilight_desc;Forge an elemential hammer imbued with the power of the Old Gods in image of the Twilight's Hammer Cult symbol.;;Schmiedet einen Elementhammer mit der Kraft der alten G�tter als Symbol des Kults des Zwielichthammers.;;;;;;;;;;;x
forge_hammer_of_the_twilight_power_desc;Enables the decision to forge the Hammer of Twilight.;;Erm�glicht die Entscheidung, den Schattenhammer zu schmieden.;;;;;;;;;;;x
;;;;;;;;;;;;;;x
open_ulduar;Ulduar Expedition;Ulduar Expedition;;;;;;;;;;;;x
open_ulduar_desc;Prepare an expedition with goal of discovering the the forgotten Titan city of Ulduar.;;;;;;;;;;;;;x
arithon marked this conversation as resolved.
Show resolved Hide resolved
EVTDESC_WCUTF.10;You have contracted a famous explorer to lead an expedition into frozen wastes of boreal Northrend in search of Titan city of Ulduar. Many believe this place exists only in legends and that all you can find in the north is glaciers and savage giants but your explorer thinks differently. He is well prepared and assures you that the secrets of Titan power will soon be yours.;;;;;;;;;;;;;x
arithon marked this conversation as resolved.
Show resolved Hide resolved
EVTOPTA_WCUTF.10;Mysteries of Ulduar will be unveiled!;;;;;;;;;;;;;x
arithon marked this conversation as resolved.
Show resolved Hide resolved
EVTTITLE_WCUTF.20;Discovery of Ulduar;;;;;;;;;;;;;x
EVTDESC_WCUTF.20;Expedition led by [ulduar_explorer.GetBestName] has found the lost city of Ulduar and accidently awakened its inhabitants. When trying to break inside the halls of Titan city they have activated ancient defense systems and barely made it out alive. Titan-forged legions are no longer slumbering and many more are being forged in ancient forges of their makers. Terrific artillery and war machines that would amaze the greatest goblin and gnomish tinkers have been activated and are ready to unleash their fury on unwelcomed guests. Most of all mighty Titanic watchers and all-powerful Keepers who felled Old Gods and their Black Empire have roused. All that risk entering Ulduar will be annihilated by steel and stone.;;;;;;;;;;;;;x
arithon marked this conversation as resolved.
Show resolved Hide resolved
EVTOPTA_WCUTF.20;What have you awoken in the darkness of Ulduar... iron and cog.;;;;;;;;;;;;;x
arithon marked this conversation as resolved.
Show resolved Hide resolved