事件
Target Character2的崛起

Country的动荡让许多人看到了反抗我们夺取王位的机会。野心勃勃、机智精明的Target Character2就是其中之一。he/she与Target Character直接对立,已经招揽了一些支持者,现在要求得到王位。
桑海国家dynamic historical event.tag
君主国政体triggeralready_supports_rebel_variable变量immediatecurrent_ruler_power_variable变量immediate定义in_game/events/DHE/flavor_son.txt:236
237type = country_event
239title = flavor_son.5.title Target Character2的崛起
240desc = flavor_son.5.desc Country的动荡让许多人看到了反抗我们夺取王位的机会。野心勃勃、机智精明的Target Character2就是其中之一。he/she与Target Character直接对立,已经招揽了一些支持者,现在要求得到王位。
241outcome = neutral
242historical_info = flavor_son.5.historical_info 阿斯基亚大帝的统治被认为是桑海帝国的开端。在担任桑尼·阿里的将领期间,他与其频繁发生冲突,很可能是由于宗教分歧及其对廷巴克图“乌理玛”的待遇所致。然而在桑尼·阿里去世后,他成功发动政变,推翻其子,通过团结桑海境内曾遭迫害者的支持,建立了自己的权力基础。
244illustration_tags = {
24510 = armed
24610 = interior
}
249fire_only_once = yes
257immediate = {
}
260ruler_or_regent ?= {
261save_scope_as = target_character
}
264location:gao = {
265create_dynasty_from_location = askia_dynasty
}
268create_character = {
269first_name = name_muhammad
270last_name = askia
271birth_date = 1420.6.1
272culture = root.culture
273birth_location = root.capital
274save_scope_as = target_character2
276dynasty = dynasty:askia_dynasty
}
279create_rebel = {
280category = pretender
281name = askia_rebels 穆罕默德·阿斯基亚叛乱
282save_scope_as = target_rebel
}
285set_variable = {
287value = {
288add = {
289value = "estate_power(estate_type:crown_estate)"
290multiply = 5
}
292add = {
293value = government_power
294divide = 2
}
}
}
302if = {
306while = {
308ordered_owned_location = {
313order_by = {
314value = population
315multiply = -1
}
317max = 1
318owner = {
}
332every_pop = {
333limit = {
334owner = root
}
337change_pop_allegiance = scope:target_rebel
}
}
}
}
342else = {
}
347scope:target_character2 = {
348change_character_allegiance = scope:target_rebel
}
}