Skip to content

Commit

Permalink
Merge pull request #1864 from Warcraft-GoA-Development-Team/opening-o…
Browse files Browse the repository at this point in the history
…f-ulduar

Opening of Ulduar
  • Loading branch information
sejtalk authored Jul 22, 2021
2 parents 096dd08 + 018f752 commit 9b91ce3
Show file tree
Hide file tree
Showing 13 changed files with 218 additions and 20 deletions.
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
}
}
}
26 changes: 15 additions & 11 deletions common/scripted_triggers/wc_scripted_triggers.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
### 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 }
}
}
trigger_else = {
always = no
}
}

# FORBIDS AI TO ATTACK THEM
Expand Down Expand Up @@ -98,8 +103,7 @@ evil_government_trigger = {
}
# CAN'T DECLARE WARS IF IT'S NOT TRUE
can_declare_wars_trigger = {
# Must be uncommented if we add more conditions in is_untouchable_trigger
# is_untouchable_trigger = yes
is_untouchable_trigger = no
trigger_if = {
limit = { trait = creature_qiraji }
custom_tooltip = {
Expand Down
32 changes: 32 additions & 0 deletions decisions/wc_realm_decisions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,38 @@ decisions = {
factor = 1
}
}
open_ulduar = {
is_high_prio = yes

ai_check_interval = 36

only_playable = yes
only_independent = yes
ai = no

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 = 1 }
}

ai_will_do = {
factor = 0
}
}
}
targeted_decisions = {
# Ability to get rid of evil character without penalties
Expand Down
122 changes: 122 additions & 0 deletions events/wc_titanforged_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,126 @@ 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 = {
ai = yes
is_untouchable_trigger = no
is_alive = yes
is_incapable = no
prisoner = no
OR = {
AND = {
ROOT = { evil_public_religion_trigger = no }
c_17028 = { evil_public_religion_trigger = no }
}
AND = {
ROOT = { evil_public_religion_trigger = yes }
c_17028 = { religion = ROOT }
}
}
}
}
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
}
858 = { province_event = { id = WCUTF.15 } }
}
}
#make event death proof
province_event = {
id = WCUTF.15
is_triggered_only = yes
hide_window = yes

immediate = {
owner = { narrative_event = { id = WCUTF.20 days = 120 } }
}

}
#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 = {
if = {
limit = { is_alive = yes }
remove_trait = travelling
add_trait = stressed
prestige = 1000
}
}
}
}
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,6 +400,10 @@ 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"
}
spriteType = {
name = "GFX_present_bachelor"
texturefile = "gfx\\interface\\decision_icons\\decision_icon_present_bachelor.dds"
Expand Down
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
}
}
8 changes: 8 additions & 0 deletions localisation/00_wc_sad.csv
Original file line number Diff line number Diff line change
Expand Up @@ -776,3 +776,11 @@ forge_hammer_of_the_twilight_power_desc;Enables the decision to forge the Hammer
;;;;;;;;;;;;;;x
present_bachelor;Present Bachelor;;Deb�tanten pr�sentieren;;;;;;;;;;;x
present_bachelor_desc;A young nobleman, who has caught your eye, makes his d�but at a formal ball.;;Ein junger Adliger, der Eure Aufmerksamkeit erregt hat, gibt sein Deb�t auf einem offiziellen Ball.;;;;;;;;;;;x
;;;;;;;;;;;;;;x
open_ulduar;Ulduar Expedition;Ulduar Expedition;Ulduar-Expedition;;;;;;;;;;;x
open_ulduar_desc;Prepare an expedition with goal of discovering the forgotten Titan city of Ulduar.;;Bereitet eine Expedition zur Entdeckung der vergessenen Titanenstadt Ulduar vor.;;;;;;;;;;;x
EVTDESC_WCUTF.10;You have contracted a famous explorer to lead an expedition into the frozen wastes of boreal Northrend in search of the Titan city of Ulduar. Many believe this place exists only in legends and that all you will find in the north is glaciers and savage giants, but your explorer thinks otherwise. He is well prepared and assures you that the secrets of Titan power will soon be yours.;;Ihr habt einen namhaften Entdecker beauftragt, eine Expedition in die eisigen Weiten des borealen Northrends zu f�hren, um die Titanenstadt Ulduar zu finden. Viele glauben, dass dieser Ort nur in Legenden existiert und dass alles, was Ihr im Norden finden werdet, Gletscher und wilde Riesen sind, aber Euer Entdecker sieht das anders. Er ist gut vorbereitet und versichert Euch, dass die Geheimnisse der Titanenmacht bald Euch geh�ren werden.;;;;;;;;;;;x
EVTOPTA_WCUTF.10;The mysteries of Ulduar will be unveiled!;;Die Geheimnisse von Ulduar werden gel�ftet!;;;;;;;;;;;x
EVTTITLE_WCUTF.20;Discovery of Ulduar;;Entdeckung von Ulduar;;;;;;;;;;;x
EVTDESC_WCUTF.20;The expedition led by [ulduar_explorer.GetBestName] has found the lost city of Ulduar and accidently awakened its inhabitants. When trying to break into the halls of the Titan city they have activated ancient defense systems and barely made it out alive. The titanforged legions are no longer slumbering and many more are being forged in the ancient forges of their makers. Elaborate war machines that would amaze the greatest goblin and gnomish tinkers have been activated and are ready to unleash their fury on any unwelcomed guests. Most of the almighty Titanic watchers and all-powerful Keepers who felled the Old Gods and their Black Empire have roused. All that enter Ulduar will risk being annihilated by steel and stone.;;Die von [ulduar_explorer.GetBestName] angef�hrte Expedition hat die verlorene Stadt Ulduar gefunden und versehentlich ihre Bewohner geweckt. Bei dem Versuch, in die Hallen der Titanenstadt einzudringen, haben sie uralte Verteidigungssysteme aktiviert und es gerade noch lebend herausgeschafft. Die titangeschmiedeten Legionen schlummern nicht mehr und viele weitere werden in den uralten Schmieden ihrer Sch�pfer geschmiedet. Ausgekl�gelte Kriegsmaschinen, die selbst die gr��ten Goblin- und Gnom-T�ftler in Erstaunen versetzen w�rden, wurden aktiviert und sind bereit, ihre Wut auf ungebetene G�ste zu entfesseln. Die meisten der allm�chtigen Titanenw�chter und H�ter, die die alten G�tter und ihr schwarzes Imperium gest�rzt haben, sind erwacht. Alle, die Ulduar betreten, riskieren, von Stahl und Stein vernichtet zu werden.;;;;;;;;;;;x
EVTOPTA_WCUTF.20;What have you awoken in the darkness of Ulduar... iron and cogs.;;Was habt Ihr in der Dunkelheit von Ulduar erweckt... Eisen und Zahnr�der.;;;;;;;;;;;x

0 comments on commit 9b91ce3

Please sign in to comment.