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

发布时间:2023-05-12 06:40:04 来源:互联网

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

效果

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

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

如图所示:

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

代码

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

}

}

}

}

国旅手游网怨言小编为大家介绍的关于【《大将军罗马》自建血脉遗传事件代码一览】内容不知道各位玩家是否喜欢。如果您还对其他内容感兴趣,请持续关注我们的手游攻略栏目。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如果发现本站有涉嫌抄袭侵权/违法违规的内容,欢迎发送邮件至【1047436850@qq.com】举报,并提供相关证据及涉嫌侵权链接,一经查实,本站将在14个工作日内删除涉嫌侵权内容。

本文标题:【《大将军罗马》自建血脉遗传事件代码一览】

本文链接:http://m.citshb.com/class191045.html

相关新闻
相关攻略
最新手游