接着打开module_simple_triggers.py,找个空挡,插入如下内容
####zhunbeishawang
(0.5,
[
(try_begin),
(eq, "$zhunbeishawang", 1),
(assign, "$zhunbeishawang", 0),
(jump_to_menu, "mnu_bushawang"),
(try_end),
]),
###zhunbeishajiang
(0,
[
(try_begin),
(eq, "$zhunbeishajiang", 1),
(assign, "$zhunbeishajiang", 0),
(try_for_range, ":chujuejiang", lords_begin, lords_end),#ceren
(troop_slot_eq, ":chujuejiang", slot_troop_renown, 90000),
(store_troop_faction, ":chujuejiang_faction", ":chujuejiang"),
(faction_get_slot, ":duifangtoutou", ":chujuejiang_faction", slot_faction_leader),
(try_for_range, ":cur_center", centers_begin, centers_end),
(store_faction_of_party, ":cur_faction", ":cur_center"),
(eq, ":cur_faction", ":chujuejiang_faction"),
(party_slot_eq, ":cur_center", slot_town_lord, ":chujuejiang"),
# (assign, ":youlingdi", 1),
(call_script, "script_give_center_to_lord", ":cur_center", ":duifangtoutou", 0),#chujuefulu
(try_end),
(call_script, "script_change_troop_faction", ":chujuejiang", "fac_outlaws"),
(troop_set_faction, ":chujuejiang", "fac_outlaws"),
(troop_get_slot, ":led_party", ":chujuejiang", slot_troop_leaded_party),
(try_begin),
(party_is_active, ":led_party"),
(neq, ":led_party", "p_main_party"),
(remove_party, ":led_party"),
(troop_set_slot, ":chujuejiang", slot_troop_leaded_party, -1),
(try_end),
(troop_get_slot, ":renown1", "trp_player", slot_troop_renown),
(store_sub, ":renown2", ":renown1", 35),
(troop_set_slot, "trp_player", slot_troop_renown, ":renown2"),
(try_end),#ceren
(jump_to_menu, "mnu_chujuele"),
(try_end),
]),