- 好友
- 0
- 在线时间
- 0 小时
- 最后登录
- 2021-7-31
平民
- UID
- 2840621
- 第纳尔
- 50
- 精华
- 0
- 互助
- 0
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 0
- 注册时间
- 2017-6-4
鲜花( 0) 鸡蛋( 0)
|
大神们帮忙看看这串代码有没有错误 感谢!!! 下面的代码是r大的解除灭国BUG代码
###Xp from old xx
(24,
[
(call_script, "script_player_party_gain_xp_from_older_soldier"),
(display_message, "str_gained_xp_from_older_soldier"),
]),
]
# modmerger_start version=201 type=2
try:
component_name = "simple_triggers"
var_set = { "simple_triggers" : simple_triggers }
from modmerger import modmerge
modmerge(var_set)
except:
raise
# modmerger_end
(24,
[
(try_for_range, ":faction_no", npc_kingdoms_begin, npc_kingdoms_end),
(faction_slot_eq, ":faction_no", slot_faction_state, sfs_active),
(assign, ":has_centers", 0),
(assign, ":end_cond", centers_end),
(try_for_range, ":center_no", centers_begin, ":end_cond"),
(store_faction_of_party, ":center_faction", ":center_no"),
(eq, ":center_faction", ":faction_no"),
(assign, ":has_centers", 1),
(assign, ":end_cond", 0),
(try_end),
(eq, ":has_centers", 0),
# find enemy capital
(assign, ":enemy_capital", -1),
(assign, ":end_cond_2", kingdoms_end),
(try_for_range, ":enemy_faction", kingdoms_begin, ":end_cond_2"),
(faction_slot_eq, ":enemy_faction", slot_faction_state, sfs_active),
(neq, ":enemy_faction", ":faction_no"),
(store_relation, ":relation", ":faction_no", ":enemy_faction"),
(lt, ":relation", 0),
(faction_get_slot, ":enemy_faction_leader", ":enemy_faction", slot_faction_leader),
(call_script, "script_lord_get_home_center", ":enemy_faction_leader"),
(gt, reg0, -1),
(assign, ":enemy_capital", reg0),
(assign, ":end_cond_2", 0),
(try_end),
(gt, ":enemy_capital", -1),
(try_for_range, ":troop_no", active_npcs_begin, active_npcs_end),
(store_troop_faction, ":troop_faction", ":troop_no"),
(eq, ":troop_faction", ":faction_no"),
(troop_slot_eq, ":troop_no", slot_troop_occupation, slto_kingdom_hero),
(neg|troop_slot_ge, ":troop_no", slot_troop_prisoner_of_party, 0),
(troop_get_slot, ":party_no", ":troop_no", slot_troop_leaded_party),
(gt, ":party_no", 0),
(party_is_active, ":party_no"),
(party_set_ai_behavior, ":party_no", ai_bhvr_escort_party),
(party_set_ai_object, ":party_no", ":enemy_capital"),
(party_set_flags, ":party_no", pf_default_behavior, 1),
(try_end),
(try_end),
]),
|
|