Any chance of making a random event that gives a load of militia divisions at the capital?
Fireoflife said:Any chance of making a random event that gives a load of militia divisions at the capital?
JRHINDO said:Can someone make me the end to total conquest is preferable in the Vichy independence of Germany.
like: if paris, vichy, marseilles, bordeuax and brest is occupied by then they get a) secede province: All France ton GER b) secede province: almost all france but italy get the 4 lower right corner provinces of france.
THX
#########################################################################
# France Annexation
#########################################################################
event = {
id = 5000000
random = no
country = GER
trigger = {
war = { country = GER country = FRA }
AND = {
NOT = {
control = { province = 56 data = FRA } # Paris
control = { province = 320 data = FRA } # Vichy
control = { province = 364 data = FRA } # Marseille
control = { province = 325 data = FRA } # Bordeaux
control = { province = 32 data = FRA } # Brest
}
}
}
name = "EVT_2021_NAME"
desc = "EVT_2021_DESC"
style = 0
picture = "VIC"
action_a = {
name = "French total Annexation"
ai_chance = 75
command = { type = inherit which = FRA }
}
action_b = {
name = "split the Spoils of War"
ai_chance = 25
command = { type = inherit which = FRA }
command = { type = trigger which = 5000001 } # GER
}
}
#########################################################################
# Spoils to Italy
#########################################################################
event = {
id = 5000001
random = no
country = GER
name = "Spoils to Italy"
desc = "Our noble ally Italy deserves some spoils of war as well"
action_a = {
name = "Spoils to Italy"
command = { type = secedeprovince which = ITA value = 527 } # Grenoble
command = { type = secedeprovince which = ITA value = 528 } # Lyon
command = { type = secedeprovince which = ITA value = 364 } # Marseille
command = { type = secedeprovince which = ITA value = 365 } # Toulon
command = { type = secedeprovince which = ITA value = 366 } # Nice
command = { type = secedeprovince which = ITA value = 367 } # Corsica
}
}
Leon_Corona said:Well iv been attempting to do this event, however iv run into some problems with the spoils to Italy part event 5000001. I havent modded in a year or so, page 12 or so this thread, so if a more experienced modder could help that would be awesome. Thanks, -Leon
P.S.
The problem is that event 5000001 just does not trigger. I have tried to trigger it manually with no luck. Also JR let me know if you would like France to not be annexed or anything else to be changed.
Code:######################################################################### # France Annexation ######################################################################### event = { id = 5000000 random = no country = GER trigger = { war = { country = GER country = FRA } AND = { NOT = { control = { province = 56 data = FRA } # Paris control = { province = 320 data = FRA } # Vichy control = { province = 364 data = FRA } # Marseille control = { province = 325 data = FRA } # Bordeaux control = { province = 32 data = FRA } # Brest } } } name = "EVT_2021_NAME" desc = "EVT_2021_DESC" style = 0 picture = "VIC" action_a = { name = "French total Annexation" ai_chance = 75 command = { type = inherit which = FRA } } action_b = { name = "split the Spoils of War" ai_chance = 25 command = { type = inherit which = FRA } command = { type = trigger which = 5000001 } # GER } } ######################################################################### # Spoils to Italy ######################################################################### event = { id = 5000001 random = no country = GER name = "Spoils to Italy" desc = "Our noble ally Italy deserves some spoils of war as well" action_a = { name = "Spoils to Italy" command = { type = secedeprovince which = ITA value = 527 } # Grenoble command = { type = secedeprovince which = ITA value = 528 } # Lyon command = { type = secedeprovince which = ITA value = 364 } # Marseille command = { type = secedeprovince which = ITA value = 365 } # Toulon command = { type = secedeprovince which = ITA value = 366 } # Nice command = { type = secedeprovince which = ITA value = 367 } # Corsica } }
#########################################################################
# Vichy France
#########################################################################
event = {
id = 2021
random = no
country = GER
trigger = {
control = { province = 56 data = -1 } # Paris
lost_national = { country = FRA value = 25 } # At least 25% of national provinces lost
OR = {
random = 25
lost_national = { country = FRA value = 40 }
}
OR = {
control = { province = 320 data = FRA } # France controls Vichy
control = { province = 320 data = GER } # Germany controls Vichy
}
war = { country = GER country = FRA }
NOT = {
OR = {
year = 1942 # Year < 1941
event = 2021
war = { country = GER country = SOV }
puppet = { country = VIC country = GER }
puppet = { country = FRA country = GER }
}
}
}
name = "EVT_2021_NAME"
desc = "EVT_2021_DESC"
style = 0
picture = "VIC"
date = { day = 1 month = january year = 1936 }
offset = 3 # Check for trigger conditions every three days
deathdate = { day = 30 month = december year = 1963 }
action_a = {
name = "ACTIONNAME2021A" # Set up French Puppet Government in Vichy
ai_chance = X
command = { type = trigger which = 2800 } # FRA
command = { type = sleepevent which = 5000000 }
}
action_b = {
name = "ACTIONNAME2021B" # Total conquest is preferable
ai_chance = X
command = { type = trigger which = 5000000 }
}
}
#########################################################################
# France Annexation A
#########################################################################
event = {
id = 5000000
random = no
country = GER
trigger = {
war = { country = GER country = FRA }
AND = {
NOT = {
control = { province = 56 data = FRA } # Paris
control = { province = 320 data = FRA } # Vichy
control = { province = 364 data = FRA } # Marseille
control = { province = 325 data = FRA } # Bordeaux
control = { province = 32 data = FRA } # Brest
}
}
}
name = "French Defeat"
desc = "France has totally fallen, are we to take it all for ourselves?"
style = 0
picture = "VIC"
date = { day = 0 month = january year = 1936 }
offset = 5
deathdate = { day = 30 month = december year = 1947 }
action_a = {
name = "French total Annexation"
ai_chance = X
command = { type = inherit which = FRA }
command = { type = sleepevent which = 5000001 }
}
action_b = {
name = "split the Spoils of War"
ai_chance = X
command = { type = trigger which = 5000001 } # GER
}
}
#########################################################################
# French Total Surrender
#########################################################################
event = {
id = 5000001
random = no
country = FRA
name = "French Defeat"
desc = "France has totally fallen, we are at the mercy of our new masters."
style = 0
picture = "VIC"
action_a = {
name = "Transition of power"
command = { type = leave_alliance }
command = { type = peace which = GER value = 1 }
command = { type = non_aggression which = FRA where = GER }
command = { type = access which = GER }
command = { type = access which = ITA }
command = { type = peace which = ITA value = 1 }
command = { type = non_aggression which = FRA where = ITA }
}
}
#########################################################################
# Spoils to Italy
#########################################################################
event = {
id = 5000002
random = no
country = FRA
trigger = {
event = 5000001
}
name = "Spoils to Italy"
desc = "our once glorious nation is no more."
date = { day = 0 month = january year = 1936 }
offset = 2
deathdate = { day = 30 month = december year = 1947 }
action_a = {
name = "Spoils to Italy"
command = { type = secedeprovince which = ITA value = 527 } # Grenoble
command = { type = secedeprovince which = ITA value = 528 } # Lyon
command = { type = secedeprovince which = ITA value = 364 } # Marseille
command = { type = secedeprovince which = ITA value = 365 } # Toulon
command = { type = secedeprovince which = ITA value = 366 } # Nice
command = { type = secedeprovince which = ITA value = 367 } # Corsica
command = { type = trigger which = 5000003 } # GER
}
}
#########################################################################
# France Annexation B
#########################################################################
event = {
id = 5000003
random = no
country = GER
name = "Annexation of France"
desc = "Our noble ally Italy deserves some spoils of war as well"
style = 0
picture = "VIC"
action_a = {
name = "Victory over France!"
command = { type = inherit which = FRA }
}
}
#############################################
###### Chinas Defeat
#############################################
event = {
id = 7000010
random = no
country = JAP
trigger = {
war = { country = JAP country = CHI }
lost_national = { country = CHI value = 50 }
AND = {
NOT = {
control = { province = 1205 data = CHI }
control = { province = 1237 data = CHI }
control = { province = 1235 data = CHI }
control = { province = 1271 data = CHI }
control = { province = 1313 data = CHI }
control = { province = 1280 data = CHI }
}
}
}
Leon_Corona said:Made this real quick, so test it and let me know if it works.