The code isI've always been curious about how the game determines which states outside of Continental France are awarded to Free France versus Vichy France. Is it hardcoded? Or is the state occupation based on where the other member of the Allies faction have divisions?
If I'm playing as the UK, and I have some of my divisions in Corsica, Algeria, and other French owned states in North Africa, will that give the occupation of those states to Free France? Or will they still go to Vichy anyway, and just exile my divisions once Germany takes the decision that establishes Vichy France?
Code:
every_state = { #transfer French colonial empire
limit = {
is_controlled_by = FRA
is_owned_by = FRA
OR = {
is_on_continent = africa
is_core_of = VIN
is_core_of = CAM
is_core_of = LAO
is_core_of = LEB
is_core_of = SYR
}
}
event_target:vichy_france = { transfer_state = PREV }
}
every_state = {
limit = { #set up Vichy continental holdings
OR = {
state = 735
state = 21
state = 32
state = 20
state = 26
state = 22
state = 31
state = 25
state = 33
state = 1
}
CONTROLLER = {
OR = {
original_tag = FRA
has_war_with = FRA
}
} #failsafe for weird shit (tm)
}
add_core_of = PREV
event_target:vichy_france = { transfer_state = PREV }
}
From a quick cursory glance without testing it looks like it checks if the controller is Vichy France and if the owner is Vichy France. Then it does some other stuff if you are at war with Italy. The event is france.10 "The battle is lost" and then you can follow the papertrail from there
- 5
- 1