yzzn2009
发表于 2013-8-2 12:15
本帖最后由 yzzn2009 于 2013-8-2 12:20 编辑
thm154188 发表于 2013-8-2 05:04 static/image/common/back.gif
這遊戲裝MOD會有BUG嗎?
我0702版本下洞穴~有個好像石頭的蝦?的怪物~怎麼打都打不死啊~ ...
如果mod没有bug,就没问题,你用的是17版,需要下载17版对应的mod。打石头虾,你可以用http://bbs.3dmgame.com/thread-3937701-1-1.html这个mod,是我参与制作的,因为石头虾蹲下变石头时,需要很高的伤害值才打得死。
棱角怀念
发表于 2013-8-2 13:14
:loveliness::loveliness::loveliness:谢谢LZ
wuzihang101
发表于 2013-8-2 14:30
yzzn2009 发表于 2013-8-1 15:13 static/image/common/back.gif
一.“让牙齿陷阱与麦斯威尔的陷阱的攻击力划分开比较麻烦,但可以让麦斯威尔的陷阱不伤害主角。
麦斯韦尔 ...
那能不能让海象一家遇到角色不会主动攻击呢!帮帮忙。还有怎样修改使黄金与猪王交换有30%能换到紫宝石,70%换到大理石。
QQ???
发表于 2013-8-2 21:28
请问怎么改“五十.种腐烂食物得高鸟,高鸟无攻击行为、下高鸟蛋”中下高鸟蛋的时间呢?
yzzn2009
发表于 2013-8-2 22:00
QQ??? 发表于 2013-8-2 21:28 static/image/common/back.gif
请问怎么改“五十.种腐烂食物得高鸟,高鸟无攻击行为、下高鸟蛋”中下高鸟蛋的时间呢?
...
插入语句中inst.components.periodicspawner:SetRandomTimes(80, 110)的80,110就是时间,意思是80到110间的随机数,如果想让高鸟下蛋间隔延长1倍,就改成160,220
QQ???
发表于 2013-8-3 08:09
yzzn2009 发表于 2013-8-2 22:00 static/image/common/back.gif
插入语句中inst.components.periodicspawner:SetRandomTimes(80, 110)的80,110就是时间,意思是80到110间 ...
大神,请问插入语句中inst.components.periodicspawner:SetRandomTimes(80, 110)的80或110在饥荒中所代表的时间是多少?
棱角怀念
发表于 2013-8-3 09:55
LZ再弄个可建造哈姆鱼人房子的修改?:$:$
wuzihang101
发表于 2013-8-3 11:20
麻烦大神,帮我看一下这个猪王与东西交换的几率好吗?我找不到这个是别人的mod,交换几率是 elseif randomnum >=3 and randomnum <5 then
aim = 6
elseif randomnum >=5 and randomnum <7 then
aim = 7
elseif randomnum >=7 and randomnum <13 then
aim = 8
elseif randomnum >=13 and randomnum <23 then
aim = 9
elseif randomnum >=23 and randomnum <38 then
aim = 10
elseif randomnum >=38 and randomnum <53 then
aim = 11
elseif randomnum >=53 and randomnum <63 then
aim = 12
elseif randomnum >=63 and randomnum <73 then
aim = 13
elseif randomnum >=73 and randomnum <93 then
aim = 14 是这些内容吗?
起个bb名
发表于 2013-8-3 13:07
大神可以把Leafy Meat弄成不会腐烂的吗?我搜索不到这个文件{:3_93:}另求用它种曼德拉
huiinguin
发表于 2013-8-3 15:44
大神~請問一下~能做個修改小高鳥的饑餓速度~或者不吃東西~一直偷吃肉~打到的肉都被吃光
yzzn2009
发表于 2013-8-3 16:02
huiinguin 发表于 2013-8-3 15:44 static/image/common/back.gif
大神~請問一下~能做個修改小高鳥的饑餓速度~或者不吃東西~一直偷吃肉~打到的肉都被吃光 ...
小高鸟、青年高鸟不需喂食:用记事本打开游戏目录\data\scripts\prefabs\smallbird.lua文件,将下列内容:
inst:AddComponent("hunger")
inst.components.hunger:SetMax(TUNING.SMALLBIRD_HUNGER)
inst.components.hunger:SetRate(TUNING.SMALLBIRD_HUNGER/TUNING.SMALLBIRD_STARVE_TIME)
inst.components.hunger:SetKillRate(TUNING.SMALLBIRD_HEALTH/TUNING.SMALLBIRD_STARVE_KILL_TIME)
inst.components.hunger:SetMax(TUNING.TEENBIRD_HUNGER)
inst.components.hunger:SetRate(TUNING.TEENBIRD_HUNGER/TUNING.TEENBIRD_STARVE_TIME)
inst.components.hunger:SetKillRate(TUNING.TEENBIRD_HEALTH/TUNING.TEENBIRD_STARVE_KILL_TIME)
修改为:
--inst:AddComponent("hunger")
--inst.components.hunger:SetMax(TUNING.SMALLBIRD_HUNGER)
--inst.components.hunger:SetRate(TUNING.SMALLBIRD_HUNGER/TUNING.SMALLBIRD_STARVE_TIME)
--inst.components.hunger:SetKillRate(TUNING.SMALLBIRD_HEALTH/TUNING.SMALLBIRD_STARVE_KILL_TIME)
--inst.components.hunger:SetMax(TUNING.TEENBIRD_HUNGER)
--inst.components.hunger:SetRate(TUNING.TEENBIRD_HUNGER/TUNING.TEENBIRD_STARVE_TIME)
--inst.components.hunger:SetKillRate(TUNING.TEENBIRD_HEALTH/TUNING.TEENBIRD_STARVE_KILL_TIME)
即可让小高鸟、青年高鸟不需喂食。
yzzn2009
发表于 2013-8-3 16:11
wuzihang101 发表于 2013-8-3 11:20 static/image/common/back.gif
麻烦大神,帮我看一下这个猪王与东西交换的几率好吗?我找不到这个是别人的mod,交换几率是 elseif randomn ...
这就是交换物品的几率,例如:
elseif randomnum >=3 and randomnum <5 then aim = 6
如果你想让aim = 6出现的几率变大,就将elseif randomnum >=3 and randomnum <5 then中的3和5间的距离拉大,比如修改为0和100,则必出aim = 6
yzzn2009
发表于 2013-8-3 16:23
棱角怀念 发表于 2013-8-3 09:55 static/image/common/back.gif
LZ再弄个可建造哈姆鱼人房子的修改?
用树杈种鱼人房:用记事本打开游戏目录\data\scripts\prefabs\twigs.lua文件,在inst:AddComponent("inspectable")的下一行插入下列内容:
local function OnDeploy (inst, pt)
local mermhouse = SpawnPrefab("mermhouse")
if mermhouse then
mermhouse:PushEvent("growfromtwigs")
mermhouse.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
起个bb名
发表于 2013-8-3 18:27
就是plantmeat,在meats.lua里,大神帮忙看看能不能改吧,我一看代码就眼晕{:3_91:}
local function plantmeat()
local inst = common()
inst.AnimState:SetBank("plant_meat")
inst.AnimState:SetBuild("plant_meat")
inst.AnimState:PlayAnimation("raw")
inst.components.edible.healthvalue = 0
inst.components.edible.hungervalue = TUNING.CALORIES_SMALL
inst.components.edible.sanityvalue = -TUNING.SANITY_SMALL
inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
inst:AddComponent:("cookable")
inst.components.cookable.product = "plantmeat_cooked"
return inst
end
local function plantmeat_cooked()
local inst = common()
inst.AnimState:SetBank("plant_meat")
inst.AnimState:SetBuild("plant_meat")
inst.AnimState:PlayAnimation("cooked")
inst.components.edible.healthvalue = TUNING.HEALING_TINY
inst.components.edible.hungervalue = TUNING.CALORIES_MEDSMALL
inst.components.perishable:SetPerishTime(TUNING.PERISH_MED)
return inst
end
yzzn2009
发表于 2013-8-3 18:54
起个bb名 发表于 2013-8-3 18:27 static/image/common/back.gif
就是plantmeat,在meats.lua里,大神帮忙看看能不能改吧,我一看代码就眼晕
local function plantmeat ...
1.让食人花肉不腐烂:用记事本打开游戏目录\data\scripts\prefabs\meats.lua文件,将下列19条语句:
inst:AddComponent("perishable")
inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
inst.components.perishable:StartPerishing()
inst.components.perishable.onperishreplacement = "spoiled_food"
inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
inst.components.perishable:SetPerishTime(TUNING.PERISH_SLOW)
inst.components.perishable:SetPerishTime(TUNING.PERISH_PRESERVED)
inst.components.perishable:SetPerishTime(TUNING.PERISH_MED)
inst.components.perishable:SetPerishTime
(TUNING.PERISH_PRESERVED)
inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
inst.components.perishable:SetPerishTime(TUNING.PERISH_MED)
inst.components.perishable:SetPerishTime(TUNING.PERISH_PRESERVED)
inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
inst.components.perishable:SetPerishTime(TUNING.PERISH_MED)
inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
inst.components.perishable:SetPerishTime(TUNING.PERISH_MED)
inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
inst.components.perishable:SetPerishTime(TUNING.PERISH_MED)
替换为(即在所有包含perishable的语句前加--):
--inst:AddComponent("perishable")
--inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
--inst.components.perishable:StartPerishing()
--inst.components.perishable.onperishreplacement = "spoiled_food"
--inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
--inst.components.perishable:SetPerishTime(TUNING.PERISH_SLOW)
--inst.components.perishable:SetPerishTime(TUNING.PERISH_PRESERVED)
--inst.components.perishable:SetPerishTime(TUNING.PERISH_MED)
--inst.components.perishable:SetPerishTime
(TUNING.PERISH_PRESERVED)
--inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
--inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
--inst.components.perishable:SetPerishTime(TUNING.PERISH_MED)
--inst.components.perishable:SetPerishTime(TUNING.PERISH_PRESERVED)
--inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
--inst.components.perishable:SetPerishTime(TUNING.PERISH_MED)
--inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
--inst.components.perishable:SetPerishTime(TUNING.PERISH_MED)
--inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)
--inst.components.perishable:SetPerishTime(TUNING.PERISH_MED)
注意:这样是让全部肉类都不腐烂,因为不能单独修改食人花肉不腐烂。又因为肉类不再腐烂,也无法放入冰箱,只能放在箱子里(已放入冰箱的会掉在地上)
2.用食人花肉种曼德拉草:用记事本打开游戏目录\data\scripts\prefabs\meats.lua文件,先查找local function plantmeat(),再在下面inst.AnimState:PlayAnimation("raw")的下一行插入以下内容:
local function OnDeploy (inst, pt)
local mandrake = SpawnPrefab("mandrake")
if mandrake then
mandrake:PushEvent("growfromplantmeat")
mandrake.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
thm154188
发表于 2013-8-4 07:53
yzzn2009 发表于 2013-8-2 12:15 static/image/common/back.gif
如果mod没有bug,就没问题,你用的是17版,需要下载17版对应的mod。打石头虾,你可以用http://bbs.3dmgame ...
感謝回覆~原來是攻擊不夠~我換了狼牙棒打到快爛了終於打死他了~鬼魂妹子的攻擊真弱~
今天裝了個物品重疊99的MOD和衣服包包一起裝備的2的MOD終於把冒險模型打通了~恩~這是個好遊戲~但是怎麼救了那傢伙後自己成苦主了~
wuzihang101
发表于 2013-8-4 11:08
yzzn2009 发表于 2013-8-3 16:11 static/image/common/back.gif
这就是交换物品的几率,例如:
elseif randomnum >=3 and randomnum =3 and randomnum
可是aim6代表什么?,我不知道啊!难道按物品顺序来?
棱角怀念
发表于 2013-8-4 13:41
lz抱歉,我今天才发现这贴吧有15业。
顺便请LZ发一张LZ饥荒自家的图片 ,小弟好观摩学习。
yzzn2009
发表于 2013-8-4 16:03
棱角怀念 发表于 2013-8-4 13:41 static/image/common/back.gif
lz抱歉,我今天才发现这贴吧有15业。
顺便请LZ发一张LZ饥荒自家的图片 ,小弟好观摩学习。 ...
棱角怀念
发表于 2013-8-4 16:17
LZ你主角咋那么大呢?
:P
棱角怀念
发表于 2013-8-4 16:24
LZ我又问问题了:
怎么让兔人看见我身上有肉也不打我?
yzzn2009
发表于 2013-8-4 16:25
棱角怀念 发表于 2013-8-4 16:17 static/image/common/back.gif
LZ你主角咋那么大呢?
在你用的主角名字.lua文件中,在local fn = function(inst)的下一行插入inst.Transform:SetScale(3, 3, 3),你也可以这么大,其中(3, 3, 3)是长宽高都是3倍,这只是个噱头,没什么实际用处
yzzn2009
发表于 2013-8-4 16:44
本帖最后由 yzzn2009 于 2013-8-4 16:48 编辑
棱角怀念 发表于 2013-8-4 16:24 static/image/common/back.gif
LZ我又问问题了:
怎么让兔人看见我身上有肉也不打我?
主角带肉不被兔人攻击:用记事本打开游戏目录\data\scripts\prefabs\bunnyman.lua文件,将if guy:HasTag("player") and guy.components.inventory and guy:GetDistanceSqToInst(inst) < TUNING.BUNNYMAN_SEE_MEAT_DIST*TUNING.BUNNYMAN_SEE_MEAT_DIST and guy.components.inventory:FindItem(function(item) return item.components.edible and item.components.edible.foodtype == "MEAT" end ) then return guy end替换为下列内容:
if guy:HasTag("monster") and guy.components.inventory and guy:GetDistanceSqToInst(inst) < TUNING.BUNNYMAN_SEE_MEAT_DIST*TUNING.BUNNYMAN_SEE_MEAT_DIST and guy.components.inventory:FindItem(function(item) return item.components.edible and item.components.edible.foodtype == "MEAT" end ) then return guy end
就是把guy:HasTag("player")中的player替换成了monster
棱角怀念
发表于 2013-8-4 16:52
thank you LZ:$:$
棱角怀念
发表于 2013-8-4 16:57
LZ 好人那
我就想弄个猪 兔 鱼人三方大战
然后猪兔联军打败鱼人
kklyh
发表于 2013-8-4 18:25
网上找来的,望加到修改大全中:)
所有墙体自动回血
此修改代码的效果作用于所有墙!
打开\dont_starve\data\scripts\prefabs\walls.lua
搜索inst.components.health.nofadeout = true
在这行的下面加上一句(是在下面加,不是替换.)
inst.components.health:StartRegen(50, 10)
括号里意思是每10秒回复50耐久.可自行修改
墙会自动升级为最高级墙。
墙会自动修复!锤子拆墙依旧3下!
yzzn2009
发表于 2013-8-4 19:48
kklyh 发表于 2013-8-4 18:25 static/image/common/back.gif
网上找来的,望加到修改大全中
所有墙体自动回血
inst.components.health:StartRegen语句已经在“二.主角自动回血”中介绍过了,用它还可以形成高鸟自动回血等功能。修改技巧采用了许多实用的例子,其实背后都是在挖掘不同语句的功能,让大家能够触类旁通,让每个玩家都成为饥荒世界的神{:3_167:}。感谢你对修改技巧的热情,让我们一起让它更加完善吧{:3_121:}
艾沃克阿龙
发表于 2013-8-4 23:38
我找不到鬼女的姐姐,阿比盖尔的复活时间是文档的什么数值,我想吧复活时间弄短一点,现在感觉是3天左右才复活,我想设置成1天
yzzn2009
发表于 2013-8-5 01:04
本帖最后由 yzzn2009 于 2013-8-5 01:06 编辑
艾沃克阿龙 发表于 2013-8-4 23:38 static/image/common/back.gif
我找不到鬼女的姐姐,阿比盖尔的复活时间是文档的什么数值,我想吧复活时间弄短一点,现在感觉是3天左右才 ...
阿比盖尔之花一天充能满:用记事本打开游戏目录\data\scripts\prefabs\abigail_flower.lua文件,将inst.components.cooldown.cooldown_duration = TUNING.TOTAL_DAY_TIME + math.random()*TUNING.TOTAL_DAY_TIME*2替换为inst.components.cooldown.cooldown_duration = TUNING.TOTAL_DAY_TIME
这样就可以1天复活阿比盖尔了
2013qianjin
发表于 2013-8-5 08:35
搞得就是等你的这个