Skip to content

Commit

Permalink
Implemented stashed Australia and Canada content
Browse files Browse the repository at this point in the history
  • Loading branch information
Radsterman committed Nov 23, 2023
1 parent ab3a84a commit f79e352
Show file tree
Hide file tree
Showing 9 changed files with 832 additions and 2 deletions.
16 changes: 15 additions & 1 deletion common/character_templates/vfm_event_character_templates.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
william_hobson_character_template = {
william_hobson_character_template = { #New Zealand Governor
first_name = William
last_name = Hobson
historical = yes
Expand All @@ -13,6 +13,20 @@
}
}

john_hindmarsh_character_template = { #South Australia Governor
first_name = "John"
last_name = "Hindmarsh"
historical = yes
ruler = yes
ig_leader = yes
age = 51
interest_group = ig_armed_forces
ideology = ideology_jingoist_leader
traits = {
persistent
}
}

spyridon_karaiskakis = { # Spyridon Karaiskakis
first_name = Spyridon
last_name = Karaiskakis
Expand Down
76 changes: 76 additions & 0 deletions common/decisions/australia_placeholder.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#revoke_north_australia = {
# is_shown = {
# exists = c:NSW
# exists = c:GBR
# c:GBR = ROOT
# exists = c:NAU
# }
#
# possible = {
# c:NAU = {
# is_ai = yes
# }
# NOT = { has_modifier = recently_revoked_colony }
# }
#
# when_taken = {
# c:NSW = {
# annex = c:NAU
# }
# add_modifier = {
# name = recently_revoked_colony
# months = short_modifier_time
# }
# }
#
# ai_chance = {
# base = 0
# }
#}
#
#found_queensland = {
# is_shown = {
# exists = c:NSW
# exists = c:GBR
# c:GBR = ROOT
# NOT = { exists = c:QEE }
# }
#
# possible = {
# has_technology_researched = nationalism
# c:NSW = {
# NOT = { is_diplomatic_play_initiator = yes }
# }
# NOT = { has_modifier = recently_established_colony }
# }
#
# when_taken = {
# create_country = {
# tag = QEE
# origin = c:NSW
# state = s:STATE_QUEENSLAND.region_state:NSW
# }
# s:STATE_QUEENSLAND = {
# set_owner_of_provinces = {
# country = c:NSW
# provinces = {
# x2DF912 xB88D8F xB2ABD6 x385E23 xDE2599 x13B15E xAD3D94 x006045 xA86BE7 x286EC0 x237FF4 x0C61A7 xDBBA9A x7756C0 x2B02A4 x43E2BC x7D8762 x2B8106 x73113C xCA2E25 x6D6E60 x20D086 x9C347D xA1185F xB1D29B x53E34D xDE14BD xF16F23 x1237B6 x5DF332 x3D6EEF x57C43E x74802F x513568 x4DB30B x79517E x915750 xA704BC x5FA620 x99166D x637FD0 x83DC85 xE098B0 xDB7DF4 x238B31 x5248FC xD7B893 x8573EA x630920 x143382 x7A7357 x74823F x3B2946 x44ECD1 x96153F x87227F x6ECAF6 x1884FF x6B9290 x7BE420
# }
# }
# }
# c:GBR = {
# create_diplomatic_pact = {
# country = c:QEE
# type = dependency
# }
# }
# add_modifier = {
# name = recently_established_colony
# months = 6
# }
# }
#
# ai_chance = {
# base = 0
# }
#}
39 changes: 39 additions & 0 deletions common/journal_entries/00_canada_australia.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
je_canada_can = {
icon = "gfx/interface/icons/event_icons/waving_flag.dds"

scripted_button = je_confederate_canada_can_button

group = je_group_historical_content

Expand Down Expand Up @@ -50,6 +52,11 @@ je_canada_gbr = {

group = je_group_historical_content

scripted_button = je_unify_two_canadas_gbr_button
scripted_button = je_maritime_union_gbr_button
scripted_button = je_found_british_columbia_button
scripted_button = je_force_hbc_sale_button

is_shown_when_inactive = {
any_subject_or_below = {
OR = {
Expand Down Expand Up @@ -87,6 +94,19 @@ je_canada_gbr = {
owns_entire_state_region = STATE_NUNAVUT
}
}
any_subject_or_below = {
filter = {
OR = {
country_has_primary_culture = cu:anglo_canadian
country_has_primary_culture = cu:franco_canadian
}
NOT = {
is_subject_type = subject_type_chartered_company
}
}
has_technology_researched = nationalism
percent > 0.75
}
}

on_complete = {
Expand All @@ -100,6 +120,9 @@ je_canada_gbr = {

je_australia_aus = {
icon = "gfx/interface/icons/event_icons/waving_flag.dds"

scripted_button = je_australia_aus_claim_new_zealand_button
scripted_button = je_australia_aus_claim_eastern_new_guinea_button

group = je_group_historical_content

Expand Down Expand Up @@ -146,6 +169,13 @@ je_australia_gbr = {

group = je_group_historical_content

scripted_button = je_australia_gbr_found_south_australia_button
scripted_button = je_australia_gbr_found_north_australia_button
scripted_button = je_australia_gbr_found_victoria_button
scripted_button = je_australia_gbr_revoke_south_australia_button
scripted_button = je_australia_gbr_revoke_van_diemens_button
scripted_button = je_australia_gbr_revoke_new_zealand_button

is_shown_when_inactive = {
any_subject_or_below = {
OR = {
Expand Down Expand Up @@ -181,6 +211,15 @@ je_australia_gbr = {
owns_entire_state_region = STATE_SOUTH_ISLAND
}
}
any_subject_or_below = {
filter = {
OR = {
country_has_primary_culture = cu:australian
}
}
has_technology_researched = nationalism
percent > 0.75
}
}

on_complete = {
Expand Down
Empty file.
3 changes: 3 additions & 0 deletions common/journal_entries/01_natural_borders_of_france.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
je_french_natural_borders = {
icon = "gfx/interface/icons/event_icons/bicorne_hat.dds"

scripted_button = je_french_natural_borders_establish_border_button

group = je_group_historical_content

Expand Down Expand Up @@ -77,6 +79,7 @@
trigger_event = { id = natural_borders.2 popup = yes }
}


invalid = {
has_variable = reject_natural_borders
}
Expand Down
108 changes: 108 additions & 0 deletions common/scripted_buttons/00_vfm_scripted_buttons.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
je_french_natural_borders_establish_border_button = {
name = "french_natural_borders_establish_border"
desc = "french_natural_borders_establish_border_desc"

visible = { always = yes }

possible = {
c:FRA = {
OR = {
has_state_in_state_region = STATE_RHINELAND
has_state_in_state_region = STATE_NORTH_RHINE
has_state_in_state_region = STATE_GELRE
has_state_in_state_region = STATE_HOLLAND
}
}
hidden_trigger = {
NOT = {
AND = {
s:STATE_RHINELAND = {
has_variable = natural_borders_france_rhineland
}
s:STATE_NORTH_RHINE = {
has_variable = natural_borders_france_north_rhine
}
s:STATE_GELRE = {
has_variable = natural_borders_france_gelre
}
s:STATE_HOLLAND = {
has_variable = natural_borders_france_holland
}
}
}
}
}

effect = {
random_neighbouring_state = {
limit = {
state_region = s:STATE_WESTPHALIA
}
owner = {
save_scope_as = westphalia_owner
}
}
random_neighbouring_state = {
limit = {
state_region = s:STATE_FRIESLAND
}
owner = {
save_scope_as = friesland_owner
}
}
if = {
limit = {
has_state_in_state_region = STATE_RHINELAND
}
s:STATE_HESSE={
set_owner_of_provinces = {
country = ROOT
provinces = { x90C020 }
}
}
s:STATE_RHINELAND={
set_owner_of_provinces = {
country = scope:westphalia_owner
provinces = { x5101A0 }
}
set_variable = natural_borders_france_rhineland
}
}
if = {
limit = {
has_state_in_state_region = STATE_NORTH_RHINE
}
s:STATE_NORTH_RHINE={
set_owner_of_provinces = {
country = scope:westphalia_owner
provinces = { xD08021 x2101E0 x8001E0 }
}
set_variable = natural_borders_france_north_rhine
}
}
if = {
limit = {
has_state_in_state_region = STATE_GELRE
}
s:STATE_GELRE={
set_owner_of_provinces = {
country = scope:friesland_owner
provinces = { xAF3A54 x41C0A0 }
}
set_variable = natural_borders_france_gelre
}
}
if = {
limit = {
has_state_in_state_region = STATE_HOLLAND
}
s:STATE_HOLLAND = {
set_owner_of_provinces = {
country = scope:friesland_owner
provinces = { x777732 xC04021 x80C0A0 }
}
set_variable = natural_borders_france_holland
}
}
}
}
Loading

0 comments on commit f79e352

Please # to comment.