注册 | 登录

游侠NETSHOW论坛





游侠NETSHOW论坛 游侠NETSHOW论坛 饥荒:巨人王朝+饥荒 阿比盖尔与更频繁的猎犬修改
查看: 7640|回复: 2
打印 上一主题 下一主题

[MOD] 阿比盖尔与更频繁的猎犬修改 [复制链接]

帖子
85
精华
0
积分
43
金钱
998
荣誉
0
人气
0
评议
0
跳转到指定楼层
楼主
发表于 2013-6-25 19:33:15 |只看该作者 |倒序浏览
小弟就一介弱弱的普通人,不会做MOD也不懂程式语言
在此仅分享一下自己这两日的研究抛砖引玉,欢迎大家分享讨论


1.更频繁的猎犬
关键字 don't starve Hound change mod 飢荒 猎犬 修改


一直觉得这游戏就是要保持手忙脚乱才好玩
可是心情上无法放弃超大格子和食物不坏的修改,因此就想到从怪物着手

改猎犬出现真是太乐了,三天两头一出,每次开新据点都要想办法防猎犬
享受怪物带来的生存压迫




首先找到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},
}

其中return 2 + math.random(2)表示每波出来的猎犬多寡,我自己是改成以下:

Hounded.attack_levels=
{
        intro={warnduration= function() return 120 end, numhounds = function() return 3 end},
        light={warnduration= function() return 60 end, numhounds = function() return 4 + math.random(3) end},
        med={warnduration= function() return 45 end, numhounds = function() return 6 + math.random(3) end},
        heavy={warnduration= function() return 30 end, numhounds = function() return 7 + math.random(3) end},
        crazy={warnduration= function() return 30 end, numhounds = function() return 8 + 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,
}




改成



Hounded.attack_delays=
{
        rare = function() return TUNING.TOTAL_DAY_TIME * 3 + math.random() * TUNING.TOTAL_DAY_TIME * 4 end,
        occasional = function() return TUNING.TOTAL_DAY_TIME * 3 + math.random() * TUNING.TOTAL_DAY_TIME * 4 end,
        frequent = function() return TUNING.TOTAL_DAY_TIME * 2 + math.random() * TUNING.TOTAL_DAY_TIME * 3 end,
}









2.Abigail = 阿比盖尔修改
关键字 Don't starve Abigail no hurts change mod 飢荒 阿比盖尔 无伤 修改

我自己看着以前旧版的Abigail buff mod V1.2研究了半天,怎麽改都没有用
原来是改到备份的Data去了

感谢隔壁论坛的< 1234gh >大大给我数据让我回头去看才发现自己的失误

搬运1234gh网友的文字,顺便再感谢他一次:

打开dont_starve\data\scripts\components\aura.lua
阿比盖尔的光环不攻击主角 (光环的目标不包括主角,就是无视主角的意思)
查找
        local hits = self.inst.components.combatoAreaAttack(self.inst, self.radius, nil, function(target) return not target:HasTag("noauradamage") end)
改为
        local hits = self.inst.components.combatoAreaAttack(self.inst, self.radius, nil, function(target) return not target:HasTag("noauradamage") and not target:HasTag("player") end)


打开dont_starve\data\scripts\tuning.lua
阿比盖尔的光环对主角造成百分之零的伤害 (光环对主角伤害力为0,从而不掉血)
查找
                ABIGAIL_SPEED = 4,
                ABIGAIL_HEALTH = wilson_health*2,
                ABIGAIL_DAMAGE = wilson_health*0.1,
                ABIGAIL_DMG_PERIOD = 0.5,
                ABIGAIL_DMG_PLAYER_PERCENT = 0.75,
改为               
                ABIGAIL_SPEED = 4,
                ABIGAIL_HEALTH = wilson_health*2,
                ABIGAIL_DAMAGE = wilson_health*0.1,
                ABIGAIL_DMG_PERIOD = 0.5,
                ABIGAIL_DMG_PLAYER_PERCENT = 0,

上面同时可以修改,阿比盖尔:速度 生命 伤害 对主角造成百分之几的伤害

打开dont_starve\data\scripts\prefabs\wendy.lua
阿比盖尔100%黄昏出现
    if inst.abigail_countdown < 1 then
改为
    if inst.abigail_countdown < 6 then

打开dont_starve\data\scripts\prefabs\abigail.lua
阿比盖尔照明能力增强,有夜间营火功能,范围10.5格
    light:SetRadius(.5)
改为
    light:SetRadius(10.5)

阿比盖尔白天不消失,但是白天被攻击消失
        instistenForEvent( "daytime", function(tgi, data) inst.components.health:SetVal(0) end, GetWorld())
改为
        instistenForEvent( "daytime", function(tgi, data) inst.components.health:SetVal(1) end, GetWorld())

取消阿比盖尔的声音
        inst.SoundEmitterlaySound("dontstarve/ghost/ghost_girl_howl_LP", "howl")
改为
        --inst.SoundEmitterlaySound("dontstarve/ghost/ghost_girl_howl_LP", "howl")

打开dont_starve\data\scripts\brains\abigailbrain.lua
阿比盖尔和主角距离
        local MIN_FOLLOW = 4
        local MAX_FOLLOW = 8
        local MED_FOLLOW = 6







3.进洞穴跳出存档损毁解决办法之一

虽然玩得16版,仍是会碰到进洞穴跳出的问题,但有时跳有时不跳很恼人
某次进去前忘了备份存档结果跳出了
幸好有救回来

首先在C槽裡找到
C:\Documents and Settings\Administrator.SPEED\Local Settings\Application Data\SKIDROW\219740\Storage
或者
C:\Documents and Settings\Administrator\Local Settings\Application Data\SKIDROW\219740\Storage

每个人存档位置不一定,上面是我的存档位置,提供给参考一下


然后在存档资料夹裡找到Cave开头的档案,例如:
Cave_1_1_3

删除之后重新进游戏,就会发现你退出洞穴了
但是此法存在一个缺陷

楼主本来都打到生存模式5-39了,结果退出洞穴之后竟然是从1-1重来,唯一好处只有身上东西还在
十分吐血




最后弱弱的说一下

1.陷阱可以用来抓蜘蛛、青蛙
2.开头画面按Backspace键可以看到版本号
3.怪物肉烤过喂鸟会出蛋




目前玩法:

长冬季
地形巨
所有怪物数量全都"较多"
(蜘蛛多到一个夸张,开头想找地方住要很大挑战)
恩赐较多
萝卜、浆果较少

改猎犬出没更多更频繁
改阿比盖尔没伤害只能用于夜间照明
出现机率不改,这样出现的时候才会有感动

身上是55+90格
打了食物不腐MOD,就这两个比较OP,其馀都是地图、状态显示之类的


这样玩起来也极为刺激,猎犬会掉一堆牙齿可以做陷阱
做了陷阱又是为了防猎犬

光是为了弄个没有蜘蛛,可以防猎犬的据点就要忙掉几个小时
已经死掉重来了三、四次
最后是开局有找到遍佈触手的回字迷宫,在旁边盖据点解决怪物
生猎犬就带进去裡面绕绕
已有 1 人评分金钱 收起 理由
xialei_026 + 20 感谢分享~

总评分: 金钱 + 20   查看全部评分

使用道具 举报

帖子
28
精华
0
积分
14
金钱
147
荣誉
0
人气
0
评议
0
沙发
发表于 2013-8-6 02:42:04 |只看该作者
感觉挺攒!~  试试!~

使用道具 举报

尚方令
熾天使

大头像勋章白金会员勋章活跃勋章荣誉勋章特色头衔勋章

帖子
42448
精华
0
积分
23806
金钱
91871
荣誉
254
人气
30
评议
0
板凳
发表于 2013-10-14 23:36:35 |只看该作者
不錯的教程

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

手机版|Archiver|游侠NETSHOW论坛 ( 苏ICP备2023007791号 )

GMT+8, 2024-4-26 23:47 , Processed in 0.328077 second(s), 12 queries , Gzip On, Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

分享到