diff --git a/common/scripted_effects/wc_unit_scripted_effects.txt b/common/scripted_effects/wc_unit_scripted_effects.txt index 73baa2f1ba..2419dfd25e 100644 --- a/common/scripted_effects/wc_unit_scripted_effects.txt +++ b/common/scripted_effects/wc_unit_scripted_effects.txt @@ -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 + } + } } \ No newline at end of file diff --git a/common/scripted_triggers/wc_scripted_triggers.txt b/common/scripted_triggers/wc_scripted_triggers.txt index 1c49442699..d44845046f 100644 --- a/common/scripted_triggers/wc_scripted_triggers.txt +++ b/common/scripted_triggers/wc_scripted_triggers.txt @@ -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 @@ -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 = { diff --git a/decisions/wc_realm_decisions.txt b/decisions/wc_realm_decisions.txt index 1ffef430de..956370a4aa 100644 --- a/decisions/wc_realm_decisions.txt +++ b/decisions/wc_realm_decisions.txt @@ -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 diff --git a/events/wc_titanforged_events.txt b/events/wc_titanforged_events.txt index 43c7031fbc..8e4a2cd883 100644 --- a/events/wc_titanforged_events.txt +++ b/events/wc_titanforged_events.txt @@ -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 + } + } + } } \ No newline at end of file diff --git a/gfx/event_pictures/explorers.tga b/gfx/event_pictures/explorers.tga new file mode 100644 index 0000000000..7b9f043f47 Binary files /dev/null and b/gfx/event_pictures/explorers.tga differ diff --git a/gfx/event_pictures/ulduar.tga b/gfx/event_pictures/ulduar.tga new file mode 100644 index 0000000000..5f2aed5137 Binary files /dev/null and b/gfx/event_pictures/ulduar.tga differ diff --git a/gfx/interface/decision_icons/open_ulduar.dds b/gfx/interface/decision_icons/open_ulduar.dds new file mode 100644 index 0000000000..41823fe190 Binary files /dev/null and b/gfx/interface/decision_icons/open_ulduar.dds differ diff --git a/history/titles/c_eanorah.txt b/history/titles/c_eanorah.txt index 5c8a2556a8..3ee7e6ca8b 100644 --- a/history/titles/c_eanorah.txt +++ b/history/titles/c_eanorah.txt @@ -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] diff --git a/history/titles/c_iahienal.txt b/history/titles/c_iahienal.txt index 94dacf9c97..1b2e31984a 100644 --- a/history/titles/c_iahienal.txt +++ b/history/titles/c_iahienal.txt @@ -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] \ No newline at end of file diff --git a/history/titles/c_ulduar.txt b/history/titles/c_ulduar.txt index 4515101b14..319c0f555f 100644 --- a/history/titles/c_ulduar.txt +++ b/history/titles/c_ulduar.txt @@ -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] \ No newline at end of file diff --git a/interface/wc_decision_icons.gfx b/interface/wc_decision_icons.gfx index a34ee63427..5d838356be 100644 --- a/interface/wc_decision_icons.gfx +++ b/interface/wc_decision_icons.gfx @@ -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" diff --git a/interface/wc_event_pictures.gfx b/interface/wc_event_pictures.gfx index 51501b9b07..38755b143a 100644 --- a/interface/wc_event_pictures.gfx +++ b/interface/wc_event_pictures.gfx @@ -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 + } } diff --git a/localisation/00_wc_sad.csv b/localisation/00_wc_sad.csv index cbf3c30727..1c3a2257b8 100644 --- a/localisation/00_wc_sad.csv +++ b/localisation/00_wc_sad.csv @@ -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