- 好友
- 2
- 在线时间
- 56 小时
- 最后登录
- 2024-7-17
扈从
- UID
- 2806395
- 第纳尔
- 150
- 精华
- 0
- 互助
- 0
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 0
- 注册时间
- 2017-2-11
鲜花( 0) 鸡蛋( 0)
|
楼主 |
发表于 2024-6-9 09:55:39
|
显示全部楼层
本帖最后由 dadad543455345 于 2024-6-9 10:45 编辑
请问这段代码是不是分配家族关系的,如果我自己给每个NPC定义是否要注释掉这些代码,我发现我在没修改之前家族关系就是乱的,只有前20多个国家是正常的,我给大明添加了新的领主之后这些领主家族关系都是和自己国家的人是一个家族,而30之后的国家家族关系全是乱的。我想把这些国家同一阵营的人改成亲戚关系,
(try_begin),
(lt, ":npc_seed", 6), #NPC seed is the order in the faction ## yifeng change from 8 to 6
(assign, ":reputation", ":npc_seed"),
(store_random_in_range, ":age", 45, 64),
(store_random_in_range, ":father", 0, 6), #six possible fathers
(val_add, ":father", ":ancestor_seed"),
(troop_set_slot, ":cur_troop", slot_troop_father, ":father"),
#wife
(troop_set_slot, ":cur_troop", slot_troop_spouse, ":cur_lady"),
(troop_set_slot, ":cur_lady", slot_troop_spouse, ":cur_troop"),
(store_random_in_range, ":wife_reputation", 20, 26),
(try_begin),
(eq, ":wife_reputation", 20),
(assign, ":wife_reputation", lrep_conventional),
(try_end),
(troop_set_slot, ":cur_lady", slot_lord_reputation_type, ":wife_reputation"),
(call_script, "script_init_troop_age", ":cur_lady", 49),
(call_script, "script_add_lady_items", ":cur_lady"),
(val_add, ":cur_lady", 1),
#daughter
|
|