- 积分
- 372
- 威望
- 372
- 金圆券
- 1247 PB
- 小红花
- 3
- 臭鸡蛋
- 0
- 法币
- 0 FB
中尉
- 积分
- 372
- 威望
- 372
- 金圆券
- 1247 PB
- 小红花
- 3
- 臭鸡蛋
- 0
- 法币
- 0 FB
|
character_events.35 = { #add bloodline traits. this has to be an event, don't put it in OA effects.
type = character_event
hidden = yes
immediate = {
if = {
limit = { #第一層條件
exists = father
father = {
OR = {
has_trait = alcimachid
has_trait = antigonids
has_trait = bawang
has_trait = lagids
has_trait = seleucids
has_trait = argeads
}
}
}
if = {
limit = { #第二層條件
father = { #父親有特性
has_trait = alcimachid
}
NOT = { #兒子沒特性
has_trait = alcimachid
}
}
#幫兒子新增特性
add_trait = alcimachid
}
#下面重複判定其他遺傳特性
else_if = { #else if, 排除了其他同層的血派增添指令
limit = {
father = {
has_trait = antigonids
}
NOT = {
has_trait = antigonids
}
}
add_trait = antigonids
}
else_if = {
limit = {
father = {
has_trait = bwang
}
NOT = {
has_trait = bwang
}
}
add_trait = bwang
character_events.35 = { #add bloodline traits. this has to be an event, don't put it in OA effects.
type = character_event
hidden = yes
immediate = {
if = {
limit = { #第一層條件
exists = father
father = {
OR = {
has_trait = alcimachid
has_trait = antigonids
has_trait = bawang
has_trait = lagids
has_trait = seleucids
has_trait = argeads
}
}
}
if = {
limit = { #第二層條件
father = { #父親有特性
has_trait = alcimachid
}
NOT = { #兒子沒特性
has_trait = alcimachid
}
}
#幫兒子新增特性
add_trait = alcimachid
}
#下面重複判定其他遺傳特性
else_if = { #else if, 排除了其他同層的血派增添指令
limit = {
father = {
has_trait = antigonids
}
NOT = {
has_trait = antigonids
}
}
add_trait = antigonids
}
else_if = {
limit = {
father = {
has_trait = antipatrid
}
NOT = {
has_trait = antipatrid
}
}
add_trait = antipatrid
}
else_if = {
limit = {
father = {
has_trait = lagids
}
NOT = {
has_trait = lagids
}
}
add_trait = lagids
}
else_if = {
limit = {
father = {
has_trait = seleucids
}
NOT = {
has_trait = seleucids
}
}
add_trait = seleucids
}
if = { #使用if 不跟其他血脈增添指令互斥
limit = {
father = {
has_trait = argeads
}
NOT = {
has_trait = argeads
}
}
add_trait = argeads
}
}
if = { #跟其他血脈指令不同層,所以不互斥
limit = {
exists = mother
mother = {
has_trait = argeads
}
NOT = {
has_trait = argeads
}
}
add_trait = argeads
}
}
}
-------------------------------------------------------------------------------------------------
由此可見,在原生的血脈哩,alcimachid antigonids antipatrid lagids seleucids彼此之間是互斥的,只能存在一個,而argeads是可以跟其他血脈共存的,
所以只要把所有 else if 改成 if,就能達成全血脈繼承,然後把
limit = {
father = {
has_trait = #自訂血脈
}
NOT = {
has_trait = #自訂血脈
}
}
改成
limit = {
father = {
has_trait = #自訂血脈
}
mother = {
has_trait = #自訂血脈
}
NOT = {
has_trait = #自訂血脈
}
就能達成 血脈近親通婚繼承
改成
limit = {
OR = {
father = {
has_trait = #自訂血脈
}
mother = {
has_trait = #自訂血脈
}
}
NOT = {
has_trait = #自訂血脈
}
就能達成 父系或母系都能繼承血脈 但是可能數百年後全國都有這血脈
理論上應該是這樣啦。
|
|