Re: [問題] OR = 的事件寫法
看板Paradox (P社)作者Connels (貓拳四郎 ○(#‵︿′ㄨ))時間17年前 (2007/11/11 03:00)推噓11(11推 0噓 12→)留言23則, 5人參與討論串6/6 (看更多)
→
11/11 00:28,
11/11 00:28
推
11/11 00:55,
11/11 00:55
推
11/11 01:28,
11/11 01:28
→
11/11 01:29,
11/11 01:29
肯!剛剛試過分成兩個事件來跑可以,現在又不行
該死的小日本! (中國鄉民化)
#########################################################################
# 日本要求東南亞殖民地
#########################################################################
event = {
id = 429005
random = no
country = SPA
trigger = {
event = 429003
exists = JAP
owned = { province = 1316 data = SPA }
owned = { province = 1658 data = SPA }
NOT = {
OR = {
alliance = { country = SPA country = JAP }
alliance = { country = ENG country = JAP }
# alliance = { country = SPA country = GER }
alliance = { country = SPA country = ENG }
puppet = { country = SPA country = JAP }
}
}
}
name = "日本要求東南亞殖民地"
desc = "趁著西葡剛合併的混亂,日本半強迫的提出購買澳門及東帝汶
的要求"
style = 0
picture = "japanese_officers"
date = { day = 18 month = july year = 1930 }
offset = 3
deathdate = { day = 12 month = march year = 1965 }
action_a = {
name = "屈服於日本的壓力"
ai_chance = 95
command = { type = dissent value = 2 }
command = { type = secedeprovince which = JAP value = 1316 }
command = { type = secedeprovince which = JAP value = 1658 }
command = { type = money value = 1000 }
command = { type = relation which = JAP value = 50 }
command = { type = sleepevent which = 429078 }
}
action_b = {
name = "東南亞殖民地對我們很重要!"
ai_chance = 5
command = { type = dissent value = -2 }
command = { type = relation which = JAP value = -100 }
command = { type = add_corps which = "遠東殖民地防衛軍" value = land when =
3411 where = 1316 } #澳門
command = { type = add_division which = "澳門警備師" value = infantry when
= 0 where = artillery }
command = { type = peacetime_ic_mod value = 10 }
command = { type = trigger which = 429055 } #JAP
command = { type = sleepevent which = 429078 }
}
}
###########################################################################
把owned那兩行去掉可以觸發,不知道為什麼?
而且很奇怪一觸發429003馬上觸發429005
offset設3不是要等三天才檢查?
不希望馬上觸發的原因是剛併吞的土地沒辦法在同一時間割讓給別人
而日本的事件同一時間就來了...就算選擇割地,澳門也會割不出去,這樣不可以... XD
所以才會希望設owned來限制觸發的時機是在吞掉葡萄牙之後
後來想到解決的方法,event = 429003刪除,改成:
exists = JAP
owned = { province = 1316 data = SPA }
owned = { province = 1658 data = SPA }
NOT = { exists = POR }
結果就OK了....
可是這樣有個缺點,如果葡萄牙是被別人滅的
只要我有澳門東帝汶還是照樣會觸發 XD
頭痛啊~
歸納以上我猜測:
trigger裡面有event = XXXX 時
會在event XXXX觸發時同時檢查其他trigger裡的條件
條件不能全部符合這個事件就不會觸發了
就算後來達到所有條件也不會觸發
設offset也無效
但是是是!!我其他的事件就算後來才補齊條件也是會觸發,例如:
event = {
id = 429056
random = no
country = SPA
trigger = {
event = 429055 random = 50
atwar = JAP
control = { province = 1316 data = JAP }
}
name = "澳門遭到日本佔領"
desc = "隨著澳門的失守,我們已經失去遠東的基地,是不是該承認失
敗,割讓澳門和東帝汶給日本人?"
style = 0
picture = "japan_celebrating"
date = { day = 18 month = july year = 1930 }
offset = 7
deathdate = { day = 12 month = march year = 1999 }
429055發生時還沒跟日本開打,也沒失去澳門
後來條件達到了,照樣會觸發這事件
還有為什麼會馬上就觸發不會等三天才檢查,誰能告訴我啊? XD
其它事件都是乖乖等到offset的日子後才檢查是否觸發,例如:
event = {
id = 429003
random = no
country = SPA
trigger = { event = 429002 random = 50
exists = POR
atwar = no
}
name = "與葡萄牙合併"
desc = "歷史上西班牙與葡萄牙曾經共組邦聯,現在西班牙政府再次與葡萄牙合併"
style = 0
picture = "SPA_fascist"
date = { day = 18 month = july year = 1930 }
offset = 30
deathdate = { day = 12 month = march year = 1954 }
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.117.179.169
※ 編輯: Connels 來自: 59.117.179.169 (11/11 03:48)
推
11/11 10:34, , 1F
11/11 10:34, 1F
推
11/11 10:37, , 2F
11/11 10:37, 2F
→
11/11 10:38, , 3F
11/11 10:38, 3F
推
11/11 12:10, , 4F
11/11 12:10, 4F
→
11/11 12:11, , 5F
11/11 12:11, 5F
→
11/11 12:11, , 6F
11/11 12:11, 6F
→
11/11 12:12, , 7F
11/11 12:12, 7F
→
11/11 12:12, , 8F
11/11 12:12, 8F
→
11/11 12:13, , 9F
11/11 12:13, 9F
→
11/11 12:14, , 10F
11/11 12:14, 10F
→
11/11 12:14, , 11F
11/11 12:14, 11F
→
11/11 12:15, , 12F
11/11 12:15, 12F
→
11/11 12:15, , 13F
11/11 12:15, 13F
→
11/11 12:16, , 14F
11/11 12:16, 14F
推
11/11 12:44, , 15F
11/11 12:44, 15F
→
11/11 12:45, , 16F
11/11 12:45, 16F
推
11/11 12:45, , 17F
11/11 12:45, 17F
推
11/11 13:29, , 18F
11/11 13:29, 18F
推
11/11 13:37, , 19F
11/11 13:37, 19F
推
11/11 14:01, , 20F
11/11 14:01, 20F
推
11/11 14:21, , 21F
11/11 14:21, 21F
推
11/11 16:51, , 22F
11/11 16:51, 22F
推
11/11 19:58, , 23F
11/11 19:58, 23F
討論串 (同標題文章)
Paradox 近期熱門文章
PTT遊戲區 即時熱門文章