• 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.

unmerged(36342)

Second Lieutenant
Nov 24, 2004
137
0
Currently I am trying to make a new event for CHI - when England is at war with Germany and China, China not in axis. If China takes all British VP + costal city in Asia then UK may secede all province to China in exchange for some resource every year. Another option is to use propaganda to make those Asian country independant. Thsoe countries can either DoW on China, or they can be a puppet.

This is what I write:
Code:
#########################################################################################
### ENG want peace with CHI
#########################################################################################
event = { 
	id = 5800
	random = no
	country = ENG

	trigger = {
		# if England fights a 2 front war, China not allied with Germany and China not fighting SOV or USA
		war = { country = ENG country = CHI }
		war = { country = ENG country = GER }
		NOT { AND {
			alliance = { country = GER countrty = CHI }
			war = { country = CHI country = SOV }
			war = { country = CHI country = USA }
		}	}

		# if Paris is not liberated
		NOT = {
			OR {
				control = { province = 527 data = FRA } # Paris is not back to France
				control = { province = 527 data = ENG } # Paris is not back to England
				control = { province = 527 data = USA } # Paris is not back to USA
			}
		}
		
		# if China controls all far east VP and sea ports from UK (to be continue)
		AND {
			control = { province = 1765 data = CHI }
			control = { province = 1766 data = CHI }
			control = { province = 1762 data = CHI }
			control = { province = 1787 data = CHI }
			control = { province = 1490 data = CHI }
		}
	}

	name = EVTNAME_5800
	desc = EVTDESC_5800

	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7 # Check for trigger conditions every day
	deathdate = { day = 30 month = december year = 1947 }

	# Give all Far east in exchange for resource every year
	action_a = {
		name = EVTACTA_5800
		command = { type = trigger which = 5801 }
	}

	# set India, Singapore, Malaysia, Burma as an independant state to use them to fight China
	action_b = {
		name = EVTACTB_5800
		command = { type = trigger which = 5802 }
	}

	# we will continue war
	action_c = {
		name = EVTACTC_5800
		command = { }
	}
}

########################################################################################################
# China response to 5800A - get East Asian, give resource
########################################################################################################
event = { 
	id = 5801
	random = no
	country = CHI

	name = EVTNAME5801
	desc = EVTDESC5801

	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7 # Check for trigger conditions every day
	deathdate = { day = 30 month = december year = 1947 }
	# Give all Far east in exchange for resource/tech every year
	action_a = {
		name = EVTACTA_5801
		command = { type = rubberpool value = -10000 }
		command = { type = oilpool value = -20000 }
		command = { type = steelpool value = -20000 }
		command = { type = coalpool value = -20000 }
		command = { type = supplies value = -15000 }
		command = { type = manpowerpool value = -300 }
		command = { type = dissent value = -20 }
		command = { type = influence value = 50 }
		command = { type = trigger which = 5802 }
	}

	# refuse to stop war
	action_b = {
		name = EVTACTB_5801
		command = { type = trigger which = 5803 }
	}

}

##########################################################################################################
# UK respond to 5801A - peace
##########################################################################################################
event = { 
	id = 5802
	random = no
	country = ENG

	name = EVTNAME5802
	desc = EVTDESC5802

	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7 # Check for trigger conditions every day
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = EVTACTA_5802
		command = { type = rubberpool value = 10000 }
		command = { type = oilpool value = 20000 }
		command = { type = steelpool value = 20000 }
		command = { type = coalpool value = 20000 }
		command = { type = supplies value = 15000 }
		command = { type = manpowerpool value = 300 }
		command = { type = influence value = -50 }
		command = { type = dissent value = 5 }
		command = { type = peace which = CHI value = 1 } 
		command = { type = secedeprovince value = 1765 }
		# more seceding here

		# randomly get 5 techs from China
		command = { type = steal_tech which = CHI }
		command = { type = steal_tech which = CHI }
		command = { type = steal_tech which = CHI }
		command = { type = steal_tech which = CHI }
		command = { type = steal_tech which = CHI }
		command = { type = trigger value = 5804 } # ask POR for demands
	}

}

##########################################################################################################
# UK respond to 5801B - no peace
##########################################################################################################
event = { 
	id = 5803
	random = no
	country = ENG

	name = EVTNAME5803
	desc = EVTDESC5803

	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7 # Check for trigger conditions every day
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = EVTACTA_5803
		command = { type = manpowerpool value = 50 }
		command = { type = dissent value = -5 }
	}

}

##########################################################################################################
# China demand Macau?
##########################################################################################################

event = { 
	id = 5804
	random = no
	country = CHI

	name = EVTNAME5804
	desc = EVTDESC5804

	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7 # Check for trigger conditions every day
	deathdate = { day = 30 month = december year = 1947 }

	action_a = { # demands it with exchange of resource
		name = EVTACTA_5804
		command = { type = trigger value = 5805 }
	}

	action_b = { # forget it
		name = EVTACTB_5804
		command = { type = dissent value = 1 }
		command = { type = influence value = -10 }
	}

}

########################################################################################################
# Portugal response to 5804A
########################################################################################################

event = { 
	id = 5805
	random = no
	country = POR

	name = EVTNAME5805
	desc = EVTDESC5805

	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7 # Check for trigger conditions every day
	deathdate = { day = 30 month = december year = 1947 }

	action_a = { # give it in
		name = EVTACTA_5805

		command = { type = rubberpool value = 1000 }
		command = { type = oilpool value = 2000 }
		command = { type = steelpool value = 2000 }
		command = { type = coalpool value = 3000 }
		command = { type = supplies value = 1000 }
		command = { type = influence value = -5 }
		command = { type = dissent value = 3 }
		command = { type = peace which = CHI value = 0 }
		command = { type = steal_tech which = CHI }
		command = { type = secedeprovince value = }
		command = { type = secedeprovince value = }
		command = { type = trigger value = 5806 }
	}

	action_b = { # say no
		name = EVTACTB_5805
		command = { type = influence value = 1 }
		command = { type = trigger value = 5807 }
	}

}

########################################################################################################
# Chiina response to 5805A, get Macau and give resource
########################################################################################################

event = { 
	id = 5806
	random = no
	country = CHI

	name = EVTNAME5806
	desc = EVTDESC5806

	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7 # Check for trigger conditions every day
	deathdate = { day = 30 month = december year = 1947 }

	action_a = { # thanks!
		name = EVTACTA_5806
		command = { type = rubberpool value = -1000 }
		command = { type = oilpool value = -2000 }
		command = { type = steelpool value = -2000 }
		command = { type = coalpool value = -3000 }
		command = { type = supplies value = -1000 }
		command = { type = influence value = 1 }
		command = { type = dissent value = -3 }
		command = { type = peace which = POR value = 0 }
	}

}

########################################################################################################
# Chiina response to 5805B, no Macau
########################################################################################################

event = { 
	id = 5807
	random = no
	country = CHI

	name = EVTNAME5807
	desc = EVTDESC5807

	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7 # Check for trigger conditions every day
	deathdate = { day = 30 month = december year = 1947 }

	action_a = { # that means war
		name = EVTACTA_5807
		command = { type = war which = POR }

	}
	action_b  = { # we are nice
		name = EVTACTB_5807
		command = { type = influence value = -1 }
		command = { type = dissent value = 3 }
	}
}

Problem:

how do I make a event that will give some country ONE chance to liberate themselves? For example, I want an event that give India 20% chance of liebrate themselves.

how do I add the event name/description? Do I just use excel to open the CSV file?

Is there any msitake I made on the event?