ucbug軟件站:安全、綠色、放心的專業(yè)下載站!首頁|最近更新|專題集合|標(biāo)簽云|站內(nèi)導(dǎo)航|加入收藏

《大將軍羅馬》自建血脈遺傳事件代碼一覽

時(shí)間:2019-05-11 17:41:42人氣:0

《大將軍羅馬》中玩家可以通過修改代碼來調(diào)整一些系統(tǒng)方面的內(nèi)容,包括遺傳事件也是可以自己寫的,下面就帶來《大將軍羅馬》自建血脈遺傳事

《大將軍羅馬》中玩家可以通過修改代碼來調(diào)整一些系統(tǒng)方面的內(nèi)容,包括遺傳事件也是可以自己寫的,下面就帶來《大將軍羅馬》自建血脈遺傳事件代碼與效果,感興趣的可以來看看。

效果

效果是母親觸發(fā)一個(gè)窗口事件,給新生兒添加一個(gè)幸運(yùn)兒的特質(zhì)。

要求父親或者母親之一有幸運(yùn)兒特質(zhì)。

如圖所示:

代碼

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

}

}

}

}

標(biāo)簽大將軍羅馬