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: