游戏狂人
 
- 贡献度
- 109
- 金元
- 8565
- 积分
- 1323
- 精华
- 3
- 注册时间
- 2012-1-30
|
本帖最后由 Imca 于 2020-2-2 00:35 编辑
-- 首先在 dlc04_campaign_global_events.lua 中的关张刷新事件“桃园三结义”的代码下get刘弘,先在character_generation_templates_tables中找到先祖分类中刘弘的代码:3k_main_template_ancestral_liu_hong,随后在事件代码后方添加刘弘的字符串。
-- #region Minor chains
function dlc04_global_events:the_peach_garden()
local local_faction_key = "3k_main_faction_liu_bei";
local peach_garden_00 = global_event:new("peach_garden_00", "WorldStartOfRoundEvent",
function(context)
return cdir_mission_manager:get_turn_number() >= 8 and not cm:query_faction(local_faction_key):is_dead();
end);
etc……中间的其他代码略过……
local m_char_zhang_fei = m_faction:create_character_from_template("general", "3k_general_fire", "3k_main_template_historical_zhang_fei_hero_fire", true);
local m_char_guan_yu = m_faction:create_character_from_template("general", "3k_general_wood", "3k_main_template_historical_guan_yu_hero_wood", true);
local q_char_liu_hong = cm:query_model():character_for_template("3k_main_template_ancestral_liu_hong");
m_char_liu_hong = cm:modify_character(q_char_liu_hong);
-- 随后加入以下代码,使得关张二人成为刘备的兄弟,并在家谱中显示。
m_char_zhang_fei:make_child_of(m_char_liu_hong);
m_char_guan_yu:make_child_of(m_char_liu_hong);
保存dlc04_campaign_global_events.lua并设置成mod。
重新开档游玩天命dlc的刘备,直至触发桃园三结义刷新关张。
随后我们点开刘备的家谱。
大功告成,再也不用收养关羽张飞当义子了。
mod地址:
https://steamcommunity.com/sharedfiles/filedetails/?id=1985628820 原版
https://steamcommunity.com/sharedfiles/filedetails/?id=1985610438 名将复兴兼容版
|
评分
-
1
查看全部评分
-
|