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

Feat: french opening journal entry content #512

Merged
merged 111 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
aff6e36
feat: transfering french content to my other compu
DZappala Jun 29, 2023
0577b66
fix: french content bugfixes
DZappala Jun 29, 2023
dca2389
fix: degaule not always ruler
DZappala Jun 29, 2023
11ef8fe
feat: more stuff to transfer to pc
DZappala Jun 30, 2023
1a1c96f
feat: scripted buttons for je
DZappala Jun 30, 2023
2f66c1b
feat: init event videos and aliases
DZappala Jul 1, 2023
e896b2e
feat: more france
DZappala Jul 1, 2023
ecc1aed
feat: more french events
DZappala Jul 3, 2023
f0b23e3
feat: more french journal entries
DZappala Jul 3, 2023
9582a61
feat: big debate event
DZappala Jul 3, 2023
3eb490e
fix: option weights
DZappala Jul 3, 2023
b362185
feat: a new constitution je completed
DZappala Jul 3, 2023
bdcc28e
fix: final outcomes of france chain
DZappala Jul 3, 2023
a9dc23e
fix: extended days
DZappala Jul 3, 2023
d3f6205
revert: extend days
DZappala Jul 3, 2023
0251586
fix: adjust weights of effects in JE
DZappala Jul 3, 2023
4155cc1
Merge branch 'dev' of https://github.com/Cold-War-Project/CWP-Main in…
DZappala Jul 4, 2023
e6aa5ec
feat: update spelling and grammar
DZappala Jul 4, 2023
0f58f6b
fix: add failsafe
DZappala Jul 4, 2023
4bf9702
fix: journal entry activated made into a toast
DZappala Jul 4, 2023
c42bb82
chore: formatting
DZappala Jul 4, 2023
610d2f1
chore: init alert files
DZappala Jul 4, 2023
a47df6e
chore: metadata
DZappala Jul 4, 2023
f87e522
chore: sp
DZappala Jul 4, 2023
75cf383
fix: alerts
DZappala Jul 4, 2023
8fcb42e
fix: france now starts as an oligarchy
DZappala Jul 4, 2023
d9797a7
breaking_change: administrations cant have voting
DZappala Jul 4, 2023
966dc19
fix: supporting a group now gives 3 instead of 1 support
DZappala Jul 4, 2023
a0e9061
feat: qol alerts
DZappala Jul 4, 2023
8365d7b
fix: incorrect event logic
DZappala Jul 4, 2023
b10c09d
fix: added accumulator
DZappala Jul 4, 2023
7944e3b
fix: france can't enact laws whilst writing a constitution
DZappala Jul 4, 2023
5b624c8
fix: end variable name
DZappala Jul 4, 2023
121a1e6
fix: localization
DZappala Jul 4, 2023
ee185bb
fix: degaulle is patriots
DZappala Jul 4, 2023
f9daa93
fix: accidentally duplicated event
DZappala Jul 4, 2023
e4ea931
fix: more JE balancing
DZappala Jul 4, 2023
89a17f9
fix: incorrect laws
DZappala Jul 4, 2023
82020f1
Merge branch 'dev' into french-content
Max200012 Jul 5, 2023
9f1edbb
Transfert of data between pc, unusable in its current state
ademblon Jul 6, 2023
bbfe28b
Changed De Gaulle's ig from securocrats to entrepreneurs. Tried editi…
BelHms Jul 6, 2023
77fadb8
Deleted Pierre Poujade as entrepreneurs ig leader.
BelHms Jul 6, 2023
327e59c
alpha 0.0.0.00.0.1 of new je for constitution
Jul 6, 2023
ae437cf
chore: moved out french party locs to other branch
Jul 6, 2023
76b2faf
Merge branch 'french-content' of https://github.com/Cold-War-Project/…
Jul 6, 2023
6095fdc
progress take account of ig's clout
Jul 6, 2023
1b23f62
Merge branch 'french-content' of github.com:Cold-War-Project/CWP-Main…
Jul 6, 2023
1df58b2
rebalance of weight
Jul 7, 2023
add42b1
Merge remote-tracking branch 'origin/french-content' into french-content
BelHms Jul 7, 2023
0c7c29c
Added "a new constitution" events localization and renamed parties_FR…
BelHms Jul 7, 2023
a2308d3
chore: fix loc file
Jul 7, 2023
7a0e576
Merge remote-tracking branch 'origin/french-content' into french-content
BelHms Jul 7, 2023
a77986e
Update Gaullist ideology (title, desc and head of government lawgroup)
BelHms Jul 7, 2023
ed6e9b2
Updated French party names.
BelHms Jul 7, 2023
40d474b
Changed France's ig leaders with names, birth dates, IGs, ideologies,…
BelHms Jul 8, 2023
0d0c55e
Changed a few of France's ig leaders' ideologies to moderate.
BelHms Jul 8, 2023
56b962d
Completed "a new constitution" events.
BelHms Jul 9, 2023
4606035
Added a few more characters, updated party names according to IG lead…
BelHms Jul 9, 2023
40b7e22
rebalance of weight
Jul 9, 2023
5d6bbad
Merge branch 'dev' into french-content
Jul 9, 2023
f5266a0
fix: set entrepreneurs as starting party
DZappala Jul 9, 2023
c3b6bae
fix: banned narcotics in france
DZappala Jul 9, 2023
1bf0d77
fix: remove unsupported unicode characters
DZappala Jul 11, 2023
eb85e9f
fix: correct igs for fra characters
DZappala Jul 11, 2023
5f765de
Merge branch 'dev' of https://github.com/Cold-War-Project/CWP-Main in…
DZappala Jul 11, 2023
cf5e437
chore: add more tooltip macros
DZappala Jul 11, 2023
f2271d2
fix: borken loc
DZappala Jul 11, 2023
0d30be8
feat: flavor law event initialization
DZappala Jul 12, 2023
cf520aa
feat: fix button loc switcher
DZappala Jul 12, 2023
1037caf
first try at dynamic team opinion
ademblon Jul 12, 2023
abc9b51
Ideology :
Jul 12, 2023
52b5f7d
add securocrats to the gaullist team
Jul 12, 2023
e274c24
feat: preliminary localization
DZappala Jul 12, 2023
607c309
added a script value for every team - law combination.
ademblon Jul 13, 2023
1a05108
fix: someone had it backwards
Jul 13, 2023
969202f
Merge branch 'dev' into french-content
Jul 13, 2023
792607b
chore: spelling
DZappala Jul 13, 2023
cd3d163
changed De Gaulle's IG to securocrats, changed party names accordingly.
BelHms Jul 14, 2023
d22e609
created "french resistant" trait and added localization
BelHms Jul 14, 2023
fcf1878
updated and added some characters, however most seem unable to spawn …
BelHms Jul 14, 2023
e40b391
feat: add new tooltip loc for new system
DZappala Jul 16, 2023
8e3d926
Merge branch 'dev' into french-content
Max200012 Jul 19, 2023
8e67f5d
Merge branch 'dev' into french-content
Jul 21, 2023
9bfc9e1
Merge branch 'dev' into french-content
Jul 22, 2023
3add516
feat: flavor events and weights
DZappala Jul 26, 2023
82d2a4c
feat: fra event loc
DZappala Jul 26, 2023
7ac3807
fix: charles tillon is no longer ig leader
BelHms Jul 26, 2023
bad104a
fix: added localisation for a new constitution je
BelHms Jul 26, 2023
5127c7c
Merge branch 'dev' into french-content
Jul 26, 2023
58e602f
Merge remote-tracking branch 'origin/french-content' into french-content
BelHms Jul 27, 2023
c5dc186
feat: added default options the fra a_new_constitution je
BelHms Jul 27, 2023
db3a2f4
Merge branch 'dev' of https://github.com/Cold-War-Project/CWP-Main in…
DZappala Jul 28, 2023
646bbd4
fix: french flavor events should trigger now
DZappala Jul 28, 2023
ecdb27b
fix: french events now work properly
DZappala Jul 28, 2023
a418176
Merge branch 'dev' of https://github.com/Cold-War-Project/CWP-Main in…
DZappala Jul 29, 2023
b70783b
Merge branch 'dev' of https://github.com/Cold-War-Project/CWP-Main in…
DZappala Jul 30, 2023
6f44843
fix: law events now trigger properly
DZappala Jul 30, 2023
0a7388f
chore: cleaned up unused code
DZappala Jul 30, 2023
bda7924
chore: standardized mathematical operators
DZappala Jul 30, 2023
28fe6d3
fix: IG weight is now calculated correctly
DZappala Jul 30, 2023
ba79fb4
fix: broken tooltip
DZappala Jul 30, 2023
547a1aa
feat: removed scripted buttons, didn't fit gameplay loop
DZappala Jul 30, 2023
d78e949
fix: people hate compromise a bit more.
DZappala Jul 30, 2023
2b13928
fix: incorrect date trigger
DZappala Jul 30, 2023
0e738e8
fix: comparators for JE outcome
DZappala Jul 30, 2023
a2fd944
feat: added new status desc
DZappala Jul 30, 2023
d071c29
moved activists and generals from history to character templates
BelHms Jul 30, 2023
84c936b
perfect balance
DZappala Jul 30, 2023
3cbd9cf
Merge branch 'french-content' of https://github.com/Cold-War-Project/…
DZappala Jul 30, 2023
aeac9b4
Merge branch 'dev' into french-content
Aug 1, 2023
2c0aeaa
Merge branch 'dev' into french-content
DZappala Aug 2, 2023
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
Next Next commit
feat: transfering french content to my other compu
  • Loading branch information
DZappala committed Jun 29, 2023
commit aff6e36a51daebfd3b46c26e9599e8b3c7ad9953
10 changes: 2 additions & 8 deletions common/history/characters/fra - france.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
culture = cu:french
religion = rel:catholic
ig_leader = yes
ruler = yes
birth_date = 1890.11.22
#TODO dna = dna_charles_de_gaulle
interest_group = ig:ig_securocrats
ideology = ideology_moderate
save_scope_as = de_gaulle
traits = {

}
}
create_character = {
Expand All @@ -24,7 +25,6 @@
interest_group = ig:ig_laborists
#TODO ideology = TODO
traits = {

}
}
create_character = {
Expand All @@ -35,7 +35,6 @@
interest_group = ig:ig_moralists
#TODO ideology = TODO
traits = {

}
}
create_character = {
Expand All @@ -46,7 +45,6 @@
interest_group = ig:ig_elites
#TODO ideology = TODO
traits = {

}
}
create_character = {
Expand All @@ -57,7 +55,6 @@
interest_group = ig:ig_capitalists
#TODO ideology = TODO
traits = {

}
}
create_character = {
Expand All @@ -68,7 +65,6 @@
interest_group = ig:ig_intelligentsia
#TODO ideology = TODO
traits = {

}
}
create_character = {
Expand All @@ -79,7 +75,6 @@
interest_group = ig:ig_entrepreneurs
#TODO ideology = TODO
traits = {

}
}
create_character = {
Expand All @@ -90,7 +85,6 @@
interest_group = ig:ig_ruralists
#TODO ideology = TODO
traits = {

}
}
}
Expand Down
7 changes: 5 additions & 2 deletions common/history/countries/fra - france.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
effect_starting_technology_wartime_major_participant_tech = yes
# Laws
effect_create_law_package = {
headOfGovernment = parliamentary
distributionOfPower = representative_democracy
headOfGovernment = administrative
distributionOfPower = anocracy
criminalJustice = labor_camps
centralization = unitary
discrimination = segregationist
Expand Down Expand Up @@ -40,5 +40,8 @@
recreationalDrugs = all_drugs_allowed
}
set_tax_level = very_high
ig:ig_securocrats = {
set_ruling_interest_group = yes
}
}
}
171 changes: 171 additions & 0 deletions common/journal_entries/cwp_fra_a_new_constitution.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
fra_a_new_constitution = {
# root = the owner of the Journal Entry (country scope)
# scope:journal_entry = this Journal Entry (journalentry scope)
# scope:target = target value, with which this Journal Entry was added using `add_journal_entry` effect
# optional image that shows in the journal entry widget near the description, default = NDefines::GUI::JOURNAL_ENTRY_ICON_DEFAULT (set in /defines/00_interfaces.txt)
#todo create icon
icon = "gfx/interface/icons/event_icons/event_industry.dds"
is_shown_when_inactive = {
c:FRA ?= root
}
# one or more scripted buttons. See common/scripted_buttons/_scripted_buttons.info for more info
#TODO scripted_button = scripted_button_key
possible = {
#is added via event using add_journal_entry effect
}
# effect which happens when a journal entry is activated by having its `is_shown_when_inactive` and `possible` triggers become true or when JE is added through `add_journal_entry` effect
immediate = {
c:FRA = {
# saved scopes can be used in any events triggered from the Journal Entry, as well as in the loc for the Journal Entry itself
# To use saved scopes in loc: JournalEntry.GetTopScope.sCountry('saved_scope_name') or SCOPE.sCountry('saved_scope_name')
save_scope_as = fra_drafting_new_constitution
#todo any tracking variables can get saved here
set_variable = drafting_new_constitution
#idea this value is for the progress bar and goes from 0-100, and is displayed in the journal entry widget
set_variable = {
name = fra_constitutional_referendum_success
value = 50
}
set_variable = {
name = fra_constitutional_referendum_communist_opinion
value = 0
}
set_variable = {
name = fra_constitutional_referendum_socialist_opinion
value = 0
}
set_variable = {
name = fra_constitutional_referendum_moralist_opinion
value = 0
}
set_variable = {
name = fra_constitutional_referendum_gaullist_opinion
value = 0
}
}
# all events in these on_actions can refer to scope:fra_drafting_new_constitution
}
# completion trigger, use is_goal_complete = yes in here if you're testing a tracked goal metric; if left blank, cannot be completed
complete = {
c:FRA = {
not = {
has_variable = drafting_new_constitution
}
has_variable = IVth_republic
}
}
# effect which is executed when 'complete' trigger becomes true
on_complete = {
remove_modifier ?= drafting_a_new_constitution
}
# failure trigger, should spawn event explaining what happens when triggered, framed as a failure; if left blank, cannot fail
fail = {
}
# effect which is executed when 'fail' trigger becomes true
on_fail = {
}
# optional invalidation trigger, should not notify player when it triggers, just clean up and silently disappear due to journal entry no longer being valid; if left blank, cannot be invalidated
invalid = {
not = {
exists = c:FRA
c:FRA = root
}
}
# effect which is executed when 'invalid' trigger becomes true
on_invalid = {
c:FRA ?= {
remove_modifier = drafting_a_new_constitution
}
}
# dynamically updated text, which describes the current status of the Journal Entry
# To use in loc or UI: [JournalEntry.GetStatusDesc]
# If this is not specified, GetStatusDesc will instead return loc from key <journal_entry_key>_status
status_desc = {
desc = fra_a_new_constitution_status
}
# the number of days before this journal entry forcibly transitions, can be used to transition silently or into another event, framed either as success, failure, or neutral; if left blank or set to zero, will not time out
#todo timeout
timceout = 1826
# effect which is executed when journal entry is timed out
on_timeout = {
}
# on_action which is triggered every first day of the week
on_weekly_pulse = {
if = {
limit = {
exists = root.var:fra_constitutional_referendum_communist_opinion
}
change_variable = {
name = fra_constitutional_referendum_success
add = var:fra_constitutional_referendum_communist_opinion
}
}
if = {
limit = {
exists = root.var:fra_constitutional_referendum_socialist_opinion
}
change_variable = {
name = fra_constitutional_referendum_success
add = var:fra_constitutional_referendum_socialist_opinion
}
}
if = {
limit = {
exists = root.var:fra_constitutional_referendum_moralist_opinion
}
change_variable = {
name = fra_constitutional_referendum_success
add = var:fra_constitutional_referendum_moralist_opinion
}
}
if = {
limit = {
exists = root.var:fra_constitutional_referendum_gaullist_opinion
}
change_variable = {
name = fra_constitutional_referendum_success
add = var:fra_constitutional_referendum_gaullist_opinion
}
}
}
# on_action which is triggered every first day of the month
on_monthly_pulse = {
}
# on_action which is triggered every first day of the year
on_yearly_pulse = {
}
# a script value computing the goal completion metric
current_value = {
value = root.var:fra_constitutional_referendum_success
}
# when the journal entry is activated current_value and goal_add_value are evaluated and added together to determine the goal value
goal_add_value = {
value = 50
}
# the highest weighted active journal entry appears in the goal tracker on the main screen
weight = 9999
# yes/no, determines if this journal entry should be transferred if the player switches country through a revolution or by releasing a subject. Note that external dependencies such as country variables etc are not automatically inherited
transferable = yes
# yes/no, determines if this journal entry is allowed to be inherited by a victorious revolution. Revolutions also get all variables from the defeated parent country, so most JEs *should* be inherited in this way
# NOTE: transferable = yes will always mean that revolution inheritance is blocked as these JEs should stay with the player at all times
can_revolution_inherit = yes
# optional trigger, progress text is shown if this is defined and true
is_progressing = {
}
# yes/no, if yes, a progress bar is shown
progressbar = yes
# yes/no, if yes, the Journal Entry can return to an inactive state if its possible trigger reverts to false
# if no or unspecified, an activated Journal Entry cannot return to being inactive even if it is no longer considered possible
can_deactivate = no
# dynamically updated text, which is shown over the progress bar of the Journal Entry
# value can be a localization key or first_valid + triggered_desc script
# To use in loc or UI: [JournalEntry.GetProgressDesc]
# If this is not specified, GetProgressDesc will instead return loc from key <journal_entry_key>_progress
progress_desc = fra_a_new_constitution_progress
# tutorial lesson explaining HOW to complete the Journal Entry
# how_tutorial = how_tutorial_lesson_key
# tutorial lesson explaining the WHY around the Journal Entry
# why_tutorial = why_tutorial_lesson_key
# whether a Journal Entry should be pinned in its outliner by default. Defaults to 'no'
should_be_pinned_by_default = yes
}
28 changes: 27 additions & 1 deletion common/modifiers/cwp_nation_modifiers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ full_investment_pool = {
state_service_workers_investment_pool_contribution_add = -0.001
state_engineers_investment_pool_contribution_add = -0.001
state_professionals_investment_pool_contribution_add = -0.001
state_creatives_investment_pool_contribution_add = -0.001
state_creatives_investment_pool_contribution_add = -0.001
state_laborers_investment_pool_contribution_add = -0.001
state_technicians_investment_pool_contribution_add = -0.001
state_informal_workers_investment_pool_contribution_add = -0.001
Expand Down Expand Up @@ -52,3 +52,29 @@ forced_neutrality = {
country_infamy_generation_mult = 100
country_influence_mult = -100
}

legacy_of_the_resistance = {
icon = gfx/interface/icons/timed_modifier_icons/modifier_flag_negative.dds
interest_group_ig_laborists_pol_str_mult = 0.5
interest_group_ig_urbanists_pol_str_mult = 0.5
interest_group_ig_moralists_pol_str_mult = 0.5
interest_group_ig_capitalists_pol_str_mult = -0.8
interest_group_ig_elites_pol_str_mult = -0.8
interest_group_ig_securocrats_pol_str_mult = -0.8
}

drafting_a_new_constitution = {
icon = gfx/interface/icons/timed_modifier_icons/modifier_gear_positive.dds
country_law_enactment_time_mult = 1
country_legitimacy_base_add = 50
}

bicameral_parliamentary_republic = {
icon = gfx/interface/icons/timed_modifier_icons/modifier_gear_positive.dds
country_law_enactment_time_mult = 0.2
}

monocameral_parliamentary_republic = {
icon = gfx/interface/icons/timed_modifier_icons/modifier_gear_positive.dds
country_law_enactment_time_mult = -0.2
}
1 change: 1 addition & 0 deletions common/on_actions/00_code_on_actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ on_monthly_pulse_country = {
# Flavor Events
treaty_of_san_francisco.1
french_west_africa_events.1
a_new_constitution.101
korean_formation.1
korean_formation.2
saarland.2
Expand Down
Loading