• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Amartus

Captain
33 Badges
Jul 14, 2008
440
12
  • Hearts of Iron Anthology
  • Semper Fi
  • Europa Universalis: Rome
  • Iron Cross
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Deus Vult
  • Darkest Hour
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • Knights of Honor
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Ancient Space
  • Battle for Bosporus
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: Cadet
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • 500k Club
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Arsenal of Democracy
  • Rome Gold
event = {
id = 909001
random = no
country = FRA

name = "South Africa 1"
desc = "Make the South Africans our allies"
style = 0
picture = "constitutional"

action_a = {
name = "Sign the treaty"
ai_chance = 100

command = { type = make_puppet which = SAF }
command = { type = independence which = SAF value = 1 }

}
}

event = {
id = 909002
random = no
country = FRA

name = "South Africa"
desc = "We have effectively knocked South Africa out of this war."
style = 0
picture = "constitutional"


date = { day = 1 month = january year = 1936 }
offset = 3
deathdate = { day = 30 month = december year = 1953 }

trigger = {
control = { province = 1116 data = FRA }
control = { province = 1120 data = FRA }
control = { province = 1121 data = FRA }
war = { country = SAF country = FRA }
OR = {
owned = { province = 1116 data = FRA }
owned = { province = 1120 data = FRA }
owned = { province = 1121 data = FRA }
}
}

action_a = {
name = "Great" #
command = { type = trigger which = 909001 }
command = { type = trigger which = 909003 }


}
}
event = {
id = 909004
random = no
country = ITA

name = "South Africa 1"
desc = "Make the South Africans our allies"
style = 0
picture = "constitutional"

action_a = {
name = "Sign the treaty"
ai_chance = 100

command = { type = make_puppet which = SAF }
command = { type = independence which = SAF value = 1 }

}
}

event = {
id = 909005
random = no
country = ITA

name = "South Africa"
desc = "We have effectively knocked South Africa out of this war."
style = 0
picture = "constitutional"


date = { day = 1 month = january year = 1936 }
offset = 3
deathdate = { day = 30 month = december year = 1953 }

trigger = {
control = { province = 1116 data = ITA }
control = { province = 1120 data = ITA }
control = { province = 1121 data = ITA }
war = { country = SAF country = ITA }
alliance = { country = ITA country = FRA }
OR = {
owned = { province = 1116 data = ITA }
owned = { province = 1120 data = ITA }
owned = { province = 1121 data = ITA }
}
}

action_a = {
name = "Great" #
command = { type = trigger which = 909004 }
command = { type = trigger which = 909003 }


}
}
event = {
id = 909003
random = no
country = ENG

name = "South Africa 2"
desc = "We have lost control of South Africa"
style = 0
picture = "constitutional"

action_a = {
name = "Drat!"
ai_chance = 100

command = { type = end_mastery which = SAF }

}
}
 

Amartus

Captain
33 Badges
Jul 14, 2008
440
12
  • Hearts of Iron Anthology
  • Semper Fi
  • Europa Universalis: Rome
  • Iron Cross
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Deus Vult
  • Darkest Hour
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • Knights of Honor
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Ancient Space
  • Battle for Bosporus
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: Cadet
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • 500k Club
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Arsenal of Democracy
  • Rome Gold
It is meant to provide for the liberating of South Africa by either the French or the Italians if they control the requisite territories. So far haven't seen it trigger once though. :(
 

unmerged(27419)

Second Lieutenant
Apr 1, 2004
153
0
I hate the trigger part and im not 100% certain of how it works in all scenarios but as i read it in this one its something like;
"you must occupy all three provinces, be at a state of war with SAF and own one of the provinces."

now it seems unlikely that france would OWN one of the provinces and still be at war with them, possible yes but fairly unlikely.
 

Amartus

Captain
33 Badges
Jul 14, 2008
440
12
  • Hearts of Iron Anthology
  • Semper Fi
  • Europa Universalis: Rome
  • Iron Cross
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Deus Vult
  • Darkest Hour
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • Knights of Honor
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Ancient Space
  • Battle for Bosporus
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: Cadet
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • 500k Club
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Arsenal of Democracy
  • Rome Gold
I thought that the 'OR =' tag solved that? I have been trying to plan for all contingencies, because the AI has an annoying tendency to just annex without waiting for the event to occur! Would it help if I lost the 'war=' tag? Maybe I should also reduce the offset from 3 to 1 - that would make it happen immediately, right?
 

unmerged(27419)

Second Lieutenant
Apr 1, 2004
153
0
removing the war tag would still mean that france or italy has to own one of the provinces in the or tag so yeah if they annex them it should fire.

the difference between "control =" and "owned =" is that owned means the provinces is theirs and controlled means occupied or owned (and controlled by owner) i.e as long as you keep "owned" in the event fra/italy would have to have received one of those provinces by either a peace agreement or by annexing them.

trigger below would simply mean that ITA would have to control all three provinces annexed or occupied doesnt matter aslong as its under their control. Problem with this is that they actually need all 3! so if france captures 1 and Italy 2 then it wont fire...

trigger = {
control = { province = 1116 data = ITA }
control = { province = 1120 data = ITA }
control = { province = 1121 data = ITA }
}

This below might solve that but would mean whom ever gets 1116 gets the event aslong as all three provinces are controlled by either FRA or ITA

#Italian Trigger
trigger = {
exists = ITA
AND= {
control = { province = 1116 data = ITA }
OR = {
control = { province = 1120 data = ITA }
control = { province = 1120 data = FRA }
}
OR = {
control = { province = 1121 data = ITA }
control = { province = 1121 data = FRA }
}
NOT = { control = { province = 1116 data = FRA } }
}
}

#French Trigger
trigger = {
exists = FRA
AND= {
control = { province = 1116 data = FRA }
OR = {
control = { province = 1120 data = ITA }
control = { province = 1120 data = FRA }
}
OR = {
control = { province = 1121 data = ITA }
control = { province = 1121 data = FRA }
}
NOT = { control = { province = 1116 data = ITA } }
}
}

all depends a bit on how you want it to play out, for one thing you could put the 001 event action to contain the inherit command aswell as trigger 002 that contains independance + puppet + alliance (not sure if they end up in an alliance with the make_puppet command)

I always add redundant commands in my triggers and events the "NOT = { control = { province = 1116 data = XXX } }" is actually pointless since thats the province that has to be controlled by the correct country.. but yeah thats just me.

give me a scenario, something that must happend for one of the contries, like for example i noticed you had an alliance in the ITA event, that could be the breaker here aswell. in this trigger the event only fire for ITA if they are allied and only for france if they are not. (even if say france annexes them and they have an alliance ITA would get the event not sure how that would work out... heh its getting too late now i think... i need to rest my head a bit :D)

#Italian Trigger
trigger = {
alliance = { country = ITA country = FRA }
AND= {
OR = {
control = { province = 1116 data = ITA }
control = { province = 1116 data = FRA }
}
OR = {
control = { province = 1120 data = ITA }
control = { province = 1120 data = FRA }
}
OR = {
control = { province = 1121 data = ITA }
control = { province = 1121 data = FRA }
}
}

#French Trigger
trigger = {
exists = FRA
AND= {
OR = {
control = { province = 1116 data = ITA }
control = { province = 1116 data = FRA }
}
OR = {
control = { province = 1120 data = ITA }
control = { province = 1120 data = FRA }
}
OR = {
control = { province = 1121 data = ITA }
control = { province = 1121 data = FRA }
}
NOT = { alliance = { country = ITA country = FRA } }
}
 
Last edited:

Amartus

Captain
33 Badges
Jul 14, 2008
440
12
  • Hearts of Iron Anthology
  • Semper Fi
  • Europa Universalis: Rome
  • Iron Cross
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Deus Vult
  • Darkest Hour
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Together for Victory
  • Knights of Honor
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Ancient Space
  • Battle for Bosporus
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: Cadet
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • 500k Club
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Arsenal of Democracy
  • Rome Gold
I am playing PTEAP as Italy. In all the games I have played, France ends up moving down Africa, and annexing South Africa. What I am wanting to do is create an event where if either Italy or France control South Africa, or have annexed it, the player or ai is given the option to release it ASAP. The provinces that I have listed (1116, 1120, 1121) are Pretoria, Cape Town, and Durban (not in this order necessarily), although thinking about it I should probably add in Johannesburg as well, as it would also be a major urban centre.

When I have added this event in previously, it just does not work - I have not tried triggering it via console though. So if you can help me rewrite the event (as you have been doing so far :)) so that South Africa is released via event as an Italian or as a French puppet after being conquered, I would be very grateful. :)
 

unmerged(27419)

Second Lieutenant
Apr 1, 2004
153
0
Not sure if PTEAP has changed the province id's if so then change the ID's accordingly in "vanilla" these would be the id for the provinces.

Now this should see too it that if either FRA or ITA holds Pretoria (think thats SAF Capital) aswell as EITHER FRA or ITA holds Durden, Johannesburg and capetown the country that holds pretoria will get the event.

So all 4 provinces must be controlled by either ITA or FRA and whomever gets pretoria gets the event to annex/release as puppet

I am an amateur myself so i still need to actually test this to confirm but im afraid i dont have time right now it will have to be this evening/night.

Oh and it should trigger even if SAF is annexed for the country that annexed and received pretoria.

Code:
#########################
# French Mastery of SAF #
#########################

event = {
id = 909001
random = no
country = FRA

name = "South Africa - Divide or Conquer"
desc = "Make the South Africans our allies"
style = 0
picture = "constitutional"

	trigger = {
		control = { province = 1121 data = FRA } #Pretoria i.e Capital
			AND= {
				OR = {
				control = { province = 1119 data = ITA } # Durban
				control = { province = 1119 data = FRA } # Durban
				}
				OR = {
				control = { province = 1120 data = ITA } # Johannesburg
				control = { province = 1120 data = FRA } # Johannesburg
				}
				OR = {
				control = { province = 1116 data = ITA } # Cape Town
				control = { province = 1116 data = FRA } # Cape Town
				}
			}
			NOT = {
				event = 909003
			}
	}

	date = { day = 1 month = january year = 1936 }
	offset = 3
	deathdate = { day = 30 month = december year = 1953 }

	action_a = {
	name = "Sign the treaty"
	ai_chance = 100

		command = { type = inherit which = SAF } # Incase they havent annexed them!
		command = { type = trigger which = 909002 } # SAF's independance/puppetry 
		command = { type = sleepevent which = 909003 } # Just to make sure
	}
	action_b = {
	name = "Full conquest"
	ai_chance = 0

		command = { type = inherit which = SAF } # Incase they havent annexed them!
		command = { type = sleepevent which = 909002 } # SAF's independance/puppetry 
		command = { type = sleepevent which = 909003 } # Just to make sure
	}
}

event = {
id = 909002
random = no
country = FRA

name = "South Africa - Puppet Goverment"
desc = "Install a puppet goverment in South Africans and make them our allies"
style = 0
picture = "constitutional"

	action_a = {
	name = "Do it"
	ai_chance = 100
		command = { type = independence which = SAF value = 1 }
		command = { type = make_puppet which = SAF }
		command = { type = alliance which = SAF }
	}
	action_b = {
	name = "Changed my mind"
	ai_chance = 0
		command = { }
	}
}

##########################
# Italian Mastery of SAF #
##########################

event = {
id = 909003
random = no
country = ITA

name = "South Africa - Divide or Conquer"
desc = "Make the South Africans our allies"
style = 0
picture = "constitutional"

	trigger = {
		control = { province = 1121 data = ITA } #Pretoria i.e Capital
			AND= {
				OR = {
				control = { province = 1119 data = ITA } # Durban
				control = { province = 1119 data = FRA } # Durban
				}
				OR = {
				control = { province = 1120 data = ITA } # Johannesburg
				control = { province = 1120 data = FRA } # Johannesburg
				}
				OR = {
				control = { province = 1116 data = ITA } # Cape Town
				control = { province = 1116 data = FRA } # Cape Town
				}
			}
			NOT = {
				event = 909001
			}
	}

	date = { day = 1 month = january year = 1936 }
	offset = 3
	deathdate = { day = 30 month = december year = 1953 }

	action_a = {
	name = "Sign the treaty"
	ai_chance = 100

		command = { type = inherit which = SAF } # Incase they havent annexed them!
		command = { type = trigger which = 909004 } # SAF's independance/puppetry 
		command = { type = sleepevent which = 909001 } # Just to make sure
	}
	action_b = {
	name = "Full conquest"
	ai_chance = 0

		command = { type = inherit which = SAF } # Incase they havent annexed them!
		command = { type = sleepevent which = 909004 } # SAF's independance/puppetry 
		command = { type = sleepevent which = 909001 } # Just to make sure
	}
}

event = {
id = 909004
random = no
country = ITA

name = "South Africa - Puppet Goverment"
desc = "Install a puppet goverment in South Africans and make them our allies"
style = 0
picture = "constitutional"

	action_a = {
	name = "Do it"
	ai_chance = 100
		command = { type = independence which = SAF value = 1 }
		command = { type = make_puppet which = SAF }
		command = { type = alliance which = SAF }
	}
	action_b = {
	name = "Changed my mind"
	ai_chance = 0
		command = { }
	}
}
 
Last edited: