• 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.
Showing developer posts only. Show all posts in this thread.

Darkrenown

Star marshal
142 Badges
Jan 8, 2002
24.761
16.975
no
  • Leviathan: Warships
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sunset Invasion
  • Ancient Space
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • A Game of Dwarves
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Dungeonland
  • East India Company
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
Rajj said:
I was reading a book on the boxer rebellion th other day and realised how hard it would be to represent it in game. So how is it done?

Code:
#########################################################################
#  The Boxer Rebellion
#########################################################################
event = {
	id = 12525
	random = no
	country = CHI

	trigger = {
		OR = {
			event = 12524
			AND = {
				flag = { name = flg_Opium_War_Lost value = 1 }
				NOT = {
					prestige = 300
				}
			}
		}
	}

	name = "EVT_1527_NAME"
	desc = "EVT_12525_DESC"
	style = 0

	date = { day = 1 month = january year = 1900 }

	action_a = {
		name = "ACTIONNAME12525A" # Issue an ambiguous edict
		command = { type = trigger which = 1527 } # AUS
		command = { type = trigger which = 4638 } # PRU
		command = { type = trigger which = 7239 } # FRA
		command = { type = trigger which = 2511 } # RUS
		command = { type = trigger which = 3007 } # GER
		command = { type = trigger which = 12612 } # NIP
		command = { type = trigger which = 14195 } # USA
		command = { type = trigger which = 14246 } # CSA
		command = { type = trigger which = 6932 } # ENG
		command = { type = revolt where = 1552 }
		command = { type = revolt where = 1553 }
		command = { type = revolt where = 1574 }
		command = { type = pop_militancy which = 100 value = 2 where = 1596 }
		command = { type = pop_militancy which = 100 value = 2 where = 1552 }
	}
	action_b = {
		name = "ACTIONNAME12525B" # Issue a Pro-Boxer edict
		command = { type = trigger which = 1528 } # AUS
		command = { type = trigger which = 4639 } # PRU
		command = { type = trigger which = 7248 } # FRA
		command = { type = trigger which = 2515 } # RUS
		command = { type = trigger which = 3008 } # GER
		command = { type = trigger which = 12613 } # NIP
		command = { type = trigger which = 14196 } # USA
		command = { type = trigger which = 14247 } # CSA
		command = { type = trigger which = 6944 } # ENG
	}
	action_c = {
		name = "ACTIONNAME12525C" # Issue an Anti-Boxer edict
		command = { type = revolt where = 1552 }
		command = { type = revolt where = 1553 }
		command = { type = revolt where = 1574 }
		command = { type = revolt where = 1554 }
		command = { type = revolt where = 1555 }
		command = { type = revolt where = 1556 }
		command = { type = revolt where = 1594 }
		command = { type = revolt where = 1595 }
		command = { type = revolt where = 1596 }
		command = { type = revolt where = 1597 }
		command = { type = pop_militancy which = 100 value = 1 }
		command = { type = pop_militancy which = 100 value = 5 where = 1596 }
		command = { type = pop_militancy which = 100 value = 5 where = 1552 }
	}
}

You can look in victoria/db/events for the other country's events triggered by this, but that's China's for you.
 
Last edited: