Victoria 3

Victoria 3

Tech & Res
NoboDao 14. juni kl. 14:11
Winds of Decolonization
Is anyone else having issues with this event being triggered way too often?

1. The event can start several wars with the same nations.
2. It can start diplomatic plays with nations you have a truce with, sometimes the event pops up for a nation I "re-conquered" a week or month earlier.
3. It can be triggered for a "blank" nation, where it does not seem to matter what you click.

Not game breaking but annoying to the point where I give up the run.
< >
Viser 1-3 af 3 kommentarer
Mattia10  [udvikler] 14. juni kl. 22:32 
Regarding Winds of Decolonizations event,it's my first event ever made so yeah... it's not so polished. In next update it will be less frequent and more reasonable.
If you still don't like having it after 1.9 update, you can always disable it with game rules.



If anyone finds a better implementation or idea, feel free to give a feddback, but:
- For current Tech & Res 1.0, annexing vassal territories or disabling the rule in the save files can solve the problem.
- This event in 1.1 can still be deactivated.
- This event will make any type of vassal independent, thus making it possible to use only spheres of influence as a tool for foreign control (and some new features in 1.9).
- India and Indonesia will have custom decolonization events as soon as possible.
- In 1.1 conquering territories will only partially solve the problem, as some events similar to Winds of Decolonization can cause you to give up the states or make them return to the original nation.
Vassals -> This Event
Your territories -> Territorial Event (Tunisia, Algeria, Siam, Vietnam etc...)
- From next version I will create a GitHub for better comunication and ideas.



The main goal would be to leave the mod as bare of events as possible, adding only those necessary to create a modern world as realistic as possible.
I would really appreciate sub-mods that would then have all the freedom to dedicate themselves to the flavor of Tech & Res, also improving its events.

This is the Winds of Decolonization event code for Tech & Res 1.0:
ztr_economic_update.12 = {
type = country_event
placement = ROOT
event_image = {
video = "southamerica_war_civilians"
}

on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"

icon = "gfx/interface/icons/event_icons/event_default.dds"

title = ztr_economic_update.12.t
desc = ztr_economic_update.12.d


duration = 3

trigger = {
NOT = { has_game_rule = no_decolonization_content }
#game_date >= 1940.1.1 #We don't want decolonization before 1940
has_technology_researched = decolonization
any_subject_or_below = { is_subject_of = ROOT }
}

immediate = {
random_subject_or_below = {
limit = {
AND = {
is_subject_of = ROOT
NOT = { is_diplomatic_play_enemy_of = root }
}
}
save_scope_as = subject_scope
}
}

option = {
name = ztr_economic_update.12.a
ai_chance = {
base = 90
}
default_option = yes
create_unidirectional_truce = { country = scope:subject_scope months = 60 }
scope:subject_scope = {
make_independent = yes
set_owes_obligation_to = {
country = ROOT
setting = yes
}
change_relations = {
country = root
value = 50
}
}
}

option = {
name = ztr_economic_update.12.b
ai_chance = {
base = 10
}
scope:subject_scope = {
change_relations = {
country = root
value = -50
}
create_diplomatic_play = {
target_country = root
type = dp_independence
}
}
}
}

This is the new Winds of Decolonization event code forTech & Res 1.1 (Vic 3 1.9):

ztr_decolonization.1 = {
dlc = dlc_tech_res
type = country_event
placement = ROOT
event_image = {
video = "southamerica_war_civilians"
}

on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"

icon = "gfx/interface/icons/event_icons/event_default.dds"

title = ztr_decolonization.1.t
desc = ztr_decolonization.1.d


duration = 3

trigger = {
has_game_rule = allow_decolonization_content
OR = {
year > 1960
AND = {
has_technology_researched = decolonization
year > 1940 #We don't want decolonization before 1940
}
}
any_country = {
is_subject_of = ROOT
NOT = { is_subject_of = c:BIC} #No deccolonization evennts for british raj vassals, as they are too much and very annoying
NOT = { is_subject_of = c:DEI} #No deccolonization evennts for west indies vassals, as they are too much and very annoying
NOT = { is_diplomatic_play_enemy_of = ROOT }
NOT = { has_truce_with = ROOT }
NOT = {
OR = {
c:BIC = THIS
c:DEI = THIS
}
}
liberty_desire > 90
}
}

immediate = {
random_country = {
limit = {
is_subject_of = ROOT
NOT = { is_subject_of = c:BIC} #No deccolonization evennts for british raj vassals, as they are too much and very annoying
NOT = { is_subject_of = c:DEI} #No deccolonization evennts for west indies vassals, as they are too much and very annoying
NOT = { is_diplomatic_play_enemy_of = ROOT }
NOT = { has_truce_with = ROOT }
NOT = {
OR = {
c:BIC = THIS
c:DEI = THIS
}
}
liberty_desire > 90
}
save_scope_as = subject_scope
}
}

option = {
name = ztr_decolonization.1.a
ai_chance = {
base = 90
}
default_option = yes
create_unidirectional_truce = { country = scope:subject_scope months = 120 }
change_infamy = -2
scope:subject_scope = {
make_independent = yes
change_relations = {
country = root
value = 50
}
}
}

option = {
name = ztr_decolonization.1.b
ai_chance = {
base = 10
}
change_infamy = 5
scope:subject_scope = {
change_relations = {
country = root
value = -100
}
create_diplomatic_play = {
target_country = root
type = dp_independence
}
}
}
}
Sidst redigeret af Mattia10; 14. juni kl. 23:06
Mattia10  [udvikler] 15. juni kl. 2:15 
IMPORTANT: I anticipated the new version of Winds of Decolonization event in Tech&Res, more reasonable, less frequent, probably less buggy, in order to have a good feedback for next patches before Victoria 3 1.9.
Sidst redigeret af Mattia10; 15. juni kl. 6:00
NoboDao 15. juni kl. 3:20 
Thanks for the detailed reply. I really like the idea of the event.

I have not looked into the code yet, I might do it sometime, but I would think that it should be possible to include the truce between the countries as criteria for the event to be triggered. And also whether the colonized country is already in a diplomatic play (since this is already a factor in vanilla game).

I will disable it for now and if it isn't fixed in a while I might look into it myself!

Thanks again for the great mod
< >
Viser 1-3 af 3 kommentarer
Per side: 1530 50