[跪求] Don't starve怪物周期修改

看板Little-Games (小遊戲)作者 (李沛特)時間13年前 (2013/06/28 06:05), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
最近在研究Don't Starve的MOD Hound出現的數量和頻繁程度可以從: data\scripts\components裡面的Hounded.lua 找到紅色字樣的兩個段落 Hounded.attack_levels= { intro={warnduration= function() return 120 end, numhounds = function() return 2 end}, light={warnduration= function() return 60 end, numhounds = function() return 2 + math.random(2) end}, med={warnduration= function() return 45 end, numhounds = function() return 3 + math.random(3) end}, heavy={warnduration= function() return 30 end, numhounds = function() return 4 + math.random(3) end}, crazy={warnduration= function() return 30 end, numhounds = function() return 6 + math.random(4) end}, } Hounded.attack_delays= { rare = function() return TUNING.TOTAL_DAY_TIME * 6 + math.random() * TUNING.TOTAL_DAY_TIME * 7 end, occasional = function() return TUNING.TOTAL_DAY_TIME * 4 + math.random() * TUNING.TOTAL_DAY_TIME * 7 end, frequent = function() return TUNING.TOTAL_DAY_TIME * 3 + math.random() * TUNING.TOTAL_DAY_TIME * 5 end, } 第一段的return 2 + math.random(2)應該是不同程度的周期獵犬出沒數目 第二段則是幾天之內會出 然後我又看了兩個MOD,Zombies和HordcodeImpoibssible 裡面的components資料夾也有類似的段落 但畢竟不是本科出身 看了老半天還是看不出端倪 還是改失敗 我想改成周期會有野豬、蝙蝠之類的怪物來襲擊玩家 不知道怎麼改 另外我覺得Zombies這個MOD其實不錯 但怪物會拆豬舍不太能接受,有沒有辦法可以把中立生物的建築從殭屍的目標中移除? 也就是只會拆玩家的東西和攻擊玩家? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.134.158.219
文章代碼(AID): #1HpBSbRL (Little-Games)
文章代碼(AID): #1HpBSbRL (Little-Games)