当前位置: 18183首页 > 专区新闻资讯 >

《大将军:罗马》自建血脉遗传事件代码

来源:网络

责任编辑:兰斯级一号舰

发布时间:2019-05-13

0

0

第1页:

展开

大将军罗马》中玩家可以通过修改代码来调整一些系统方面的内容,包括遗传事件也是可以自己写的,下面就带来《大将军罗马》自建血脉遗传事件代码与效果,感兴趣的可以来看看。

效果

效果是母亲触发一个窗口事件,给新生儿添加一个幸运儿的特质。

要求父亲或者母亲之一有幸运儿特质。

如图所示:

代码

blood_trait_test.100 = {

type = character_event

title = "blood_trait_test.100.t"

desc = "blood_trait_test.100.desc"

picture = greek_court

left_portrait = scope:the_mother_for_child

left_portrait = scope:the_target_child

right_portrait = scope:the_father_for_child

trigger = {

is_alive = yes

exists = employer

}

immediate = {

hidden_effect = {

root = {

save_scope_as = the_mother_for_child

}

scope:newborn = {

save_scope_as = the_target_child

}

employer = {

if = {

limit = {

any_character = {

is_spouse_of = root

is_alive = yes

}

}

random_character = {

limit = {

is_spouse_of = root

is_alive = yes

}

save_scope_as = the_father_for_child

}

}

}

}

}

option = {

name = "blood_trait_test.100.a"

custom_tooltip = "blood_trait_test.100.a.custom"

if = {

limit = {

OR = {

AND = {

exists = scope:the_father_for_child

scope:the_father_for_child = {

has_trait = luckyone

}

}

scope:the_mother_for_child = {

has_trait = luckyone

}

}

scope:the_target_child = {

is_alive = yes

NOT = { has_trait = luckyone }

}

}

scope:the_target_child = {

add_trait = luckyone

}

}

}

}

更多相关内容请关注:大将军:罗马专区

责任编辑:西雅图潜逃

本文是否解决了您的问题

已解决0 未解决0

大将军

官网 礼包

游戏类型:策略战棋

游戏平台:安卓

游戏特征:科幻

更新时间:1970-01-01

6 热游榜

热门游戏

关于我们 | 联系我们| 加入我们 | 网站地图| 自助投稿