Re: [問題] OR = 的事件寫法

看板Paradox (P社)作者 (貓拳四郎 ○(#‵︿′ㄨ))時間17年前 (2007/11/11 03:00), 編輯推噓11(11012)
留言23則, 5人參與, 最新討論串6/6 (看更多)

11/11 00:28,
所以我最之前的寫法沒錯啊! 應該是其他地方有問題 =.=
11/11 00:28

11/11 00:55,
OR沒排錯的話乾脆檢查大括號有沒有對應好了@_@
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
在你的觸發條件上加個rendom = 50如何XD
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
把兩個"owned"的省份用AND圈在一起
11/11 12:10, 4F

11/11 12:11, , 5F
Paradox寫事件習慣這樣 雖然語法上沒差別
11/11 12:11, 5F

11/11 12:11, , 6F
第二 offset天數不是從事件條件達成開始算
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
所以offset太短期幾乎沒有用
11/11 12:13, 9F

11/11 12:14, , 10F
一個是加"random" 一個是開始的日子往後延
11/11 12:14, 10F

11/11 12:14, , 11F
小聲說:要不要日本要亞洲殖民地事件在蘆溝橋事變和
11/11 12:14, 11F

11/11 12:15, , 12F
Vichy France成立割Indochina給日本後呢?
11/11 12:15, 12F

11/11 12:15, , 13F
除非玩家太遜 西班牙內戰打到1940年5月都還沒結束
11/11 12:15, 13F

11/11 12:16, , 14F
不然會到那時候才觸發 XD
11/11 12:16, 14F

11/11 12:44, , 15F
offset=3應該只代表三天檢查一次
11/11 12:44, 15F

11/11 12:45, , 16F
啊…euglena大大已經說過了@_@
11/11 12:45, 16F

11/11 12:45, , 17F
不...日本軍方喜歡"趁火打劫"而不是"事後討債":P
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
這"趁火打劫"真是深得我心 XD
11/11 14:01, 20F

11/11 14:21, , 21F
AND這個指令除了放在OR後面用我還真不知道有什麼意義 @.@
11/11 14:21, 21F

11/11 16:51, , 22F
我想那就是AND唯一的用途
11/11 16:51, 22F

11/11 19:58, , 23F
and主要加在or後面
11/11 19:58, 23F
文章代碼(AID): #17DV-qU- (Paradox)
討論串 (同標題文章)
文章代碼(AID): #17DV-qU- (Paradox)