yzzn2009 发表于 2013-7-16 13:25

本帖最后由 yzzn2009 于 2013-7-16 13:38 编辑

℡雪花丶那个飘 发表于 2013-7-16 13:19 static/image/common/back.gif
麻烦楼主找一下南瓜灯不灭掉的修改方法,谢谢了!
我为你做了更新

二十一.南瓜灯永不坏(无限使用)

    用记事本打开游戏目录\data\scripts\prefabs\pumpkin_lantern.lua文件,将inst.components.perishable:StartPerishing()修改为inst.components.perishable:StopPerishing()即可

abc1074 发表于 2013-7-16 14:06

求17版可用移植芦苇

yzzn2009 发表于 2013-7-16 14:27

abc1074 发表于 2013-7-16 14:06 static/image/common/back.gif
求17版可用移植芦苇

我为你做了更新

三十三.用芦苇种植芦苇(分株种植)

    用记事本打开游戏目录\data\scripts\prefabs\cutreeds.lua文件,在inst:AddComponent("inspectable")的下一行插入下列内容:

local function OnDeploy (inst, pt)
    local reeds = SpawnPrefab("reeds")
    if reeds then
      reeds:PushEvent("growfromcutreeds")
                reeds.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-7-16 14:45

楼主大大,求问自动回血怎么改出来{:3_57:}

末日诗人 发表于 2013-7-16 15:17

爱死楼主了,真贴心。

yzzn2009 发表于 2013-7-16 15:18

本帖最后由 yzzn2009 于 2013-7-16 15:20 编辑

起个bb名 发表于 2013-7-16 14:45 static/image/common/back.gif
楼主大大,求问自动回血怎么改出来
我为你做了更新

二.主角自动回血

    用记事本打开游戏目录\data\scripts\prefabs\player_common.lua文件:在inst.components.health:SetMaxHealth(TUNING.WILSON_HEALTH)的下一行插入以下内容:

      inst.components.health:StartRegen(30, 10)

    即可让主角自动回血,其中30为血量,10为10秒回血一次,可自行调整

起个bb名 发表于 2013-7-16 17:48

yzzn2009 发表于 2013-7-16 15:18 static/image/common/back.gif
我为你做了更新

二.主角自动回血


多谢指教!!感激得一塌糊涂{:3_173:}

abc1074 发表于 2013-7-16 20:07

yzzn2009 发表于 2013-7-16 14:27 static/image/common/back.gif
我为你做了更新

三十三.用芦苇种植芦苇(分株种植)


谢谢。楼主高手

起个bb名 发表于 2013-7-16 20:40

yzzn2009 发表于 2013-7-16 12:31 static/image/common/back.gif
谢谢指出,修正一下。种浆果不用施肥,用记事本打开游戏目录\data\scripts\prefabs\berrybush.lua文 ...

大大,我用的这个版本http://bbs.3dmgame.com/thread-3915179-1-1.html

移植浆果后采收几次后还是枯萎了,求救{:3_172:}

abc1074 发表于 2013-7-16 23:07

我是笨人,不会自己做,求兔子堆叠方法

damngirl 发表于 2013-7-17 01:46

要成神了。。。饥荒啥子哦,丰衣足食。。

yzzn2009 发表于 2013-7-17 01:49

起个bb名 发表于 2013-7-16 20:40 static/image/common/back.gif
大大,我用的这个版本http://bbs.3dmgame.com/thread-3915179-1-1.html

移植浆果后采收几次后还是枯萎了 ...

   种浆果修改确实麻烦,换一个路线。种浆果不用施肥,用记事本打开游戏目录\data\scripts\prefabs\berrybush.lua文件,将以下内容:

      inst.components.pickable:MakeBarren()
                  inst.components.pickable.max_cycles = TUNING.BERRYBUSH_CYCLES + math.random(2)
    修改为:
      inst.components.pickable:MakeEmpty()
                  inst.components.pickable.max_cycles = TUNING.BERRYBUSH_CYCLES + 5000

    即可种浆果不用施肥,采摘5000次(大约1万多天)后才会枯黄

yzzn2009 发表于 2013-7-17 01:52

abc1074 发表于 2013-7-16 23:07 static/image/common/back.gif
我是笨人,不会自己做,求兔子堆叠方法

使兔子可堆叠,用记事本打开游戏目录\data\scripts\prefabs\rabbit.lua文件,在inst:AddComponent("lootdropper")的下一行插入以下内容:

    inst:AddComponent("stackable")
        inst.components.stackable.maxsize = TUNING.STACK_SIZE_SMALLITEM

    即可使兔子可堆叠

EricVisitor 发表于 2013-7-17 06:04

看见楼主如此诲人不倦,在一句楼主辛苦了之后,我不禁想继续学而不厌,恳请楼主大大传授种随便种个什么得蘑菇的方法,制造工具可以制造出打火机,露西斧子,魔法书大家都能造,而且我一直有个古怪的想法,要是在饥荒的世界可以遇到同伴多好啊,设想威尔逊带着机器人,图书管理员到处乱跑会不会很有趣……{:3_149:}

起个bb名 发表于 2013-7-17 08:24

yzzn2009 发表于 2013-7-17 01:49 static/image/common/back.gif
种浆果修改确实麻烦,换一个路线。种浆果不用施肥,用记事本打开游戏目录\data\scripts\prefabs\berry ...

感谢大大热心帮助{:3_110:}

19951008yhn 发表于 2013-7-17 14:06

强大            

yzzn2009 发表于 2013-7-17 14:16

EricVisitor 发表于 2013-7-17 06:04 static/image/common/back.gif
看见楼主如此诲人不倦,在一句楼主辛苦了之后,我不禁想继续学而不厌,恳请楼主大大传授种随便种个什么得蘑 ...

我为你做了更新

二十八.全人物可制造打火机(原来只有薇洛专用)

    1.用记事本打开游戏目录\data\scripts\recipes.lua文件,在Recipe("torch", {Ingredient("cutgrass", 2),Ingredient("twigs", 2)}, RECIPETABS.LIGHT, 0)的下一行插入Recipe("lighter", {Ingredient("goldnugget", 1),Ingredient("nitre", 1)}, RECIPETABS.LIGHT, 0)

    2.用记事本打开游戏目录\data\scripts\prefabs\lighter.lua文件,将inst:DoTaskInTime(0, function() if not GetPlayer() or GetPlayer().prefab ~= "willow" then inst:Remove() end end)修改为--inst:DoTaskInTime(0, function() if not GetPlayer() or GetPlayer().prefab ~= "willow" then inst:Remove() end end)

    即可用1个金块、1个硝石在照明选项里制造打火机




二十九.全人物可制造伍迪的斧子(8下砍倒1棵树,普通斧子15下)

    1.用记事本打开游戏目录\data\scripts\recipes.lua文件,在Recipe("razor", {Ingredient("twigs", 2), Ingredient("flint", 2)}, RECIPETABS.TOOLS,1)的下一行插入Recipe("Lucy", {Ingredient("twigs", 4), Ingredient("goldnugget", 4)}, RECIPETABS.TOOLS,1)

    2.用记事本打开游戏目录\data\scripts\prefabs\lucy.lua文件,将下列内容:

    inst:AddComponent("sentientaxe")
    inst:DoTaskInTime(0, function() if not GetPlayer() or GetPlayer().prefab ~= "woodie" then inst:Remove() end end)
修改为:
    --inst:AddComponent("sentientaxe")
    --inst:DoTaskInTime(0, function() if not GetPlayer() or GetPlayer().prefab ~= "woodie" then inst:Remove() end end)

    即可用4个树杈、4个金块在工具选项里制造伍迪的斧子




三十.全人物可制造魔法书

    1.用记事本打开游戏目录\data\scripts\recipes.lua文件,在Recipe("batbat", {Ingredient("batwing", 5), Ingredient("livinglog", 2), Ingredient("purplegem", 1)}, RECIPETABS.MAGIC, 3)的下一行插入以下内容:

Recipe("book_birds", {Ingredient("papyrus", 2), Ingredient("bird_egg", 2)}, RECIPETABS.MAGIC, 1)
Recipe("book_gardening", {Ingredient("papyrus", 2), Ingredient("seeds", 1), Ingredient("poop", 1)}, RECIPETABS.MAGIC, 1)
Recipe("book_sleep", {Ingredient("papyrus", 2), Ingredient("nightmarefuel", 2)}, RECIPETABS.MAGIC, 1)
Recipe("book_brimstone", {Ingredient("papyrus", 2), Ingredient("redgem", 1)}, RECIPETABS.MAGIC, 1)
Recipe("book_tentacles", {Ingredient("papyrus", 2), Ingredient("tentaclespots", 1)}, RECIPETABS.MAGIC, 1)

    2.用记事本打开游戏目录\data\scripts\prefabs\player_common.lua文件,在inst:AddComponent("temperature")的下一行插入inst:AddComponent("reader")

    即可在魔法选项里制造魔法书




另外.用木炭、木头、灰种出红、绿、蓝蘑菇

    1.用记事本打开游戏目录\data\scripts\prefabs\charcoal.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:

local function OnDeploy (inst, pt)
    local red_mushroom = SpawnPrefab("red_mushroom")
    if red_mushroom then
      red_mushroom:PushEvent("growfromcharcoal")
                red_mushroom.Transform:SetPosition(pt.x, pt.y, pt.z)
      inst.components.stackable:Get():Remove()
    end
end

    inst:AddComponent("deployable")
    inst.components.deployable.ondeploy = OnDeploy

    即可用木炭种红蘑菇


    2.用记事本打开游戏目录\data\scripts\prefabs\log.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:

local function OnDeploy (inst, pt)
    local green_mushroom = SpawnPrefab("green_mushroom")
    if green_mushroom then
      green_mushroom:PushEvent("growfromlog")
                green_mushroom.Transform:SetPosition(pt.x, pt.y, pt.z)
      inst.components.stackable:Get():Remove()
    end
end

    inst:AddComponent("deployable")
    inst.components.deployable.ondeploy = OnDeploy

    即可用木头种绿蘑菇


    3.用记事本打开游戏目录\data\scripts\prefabs\ash.lua文件,在inst.components.inspectable.getstatus = GetStatus的下一行插入以下内容:

local function OnDeploy (inst, pt)
    local blue_mushroom = SpawnPrefab("blue_mushroom")
    if blue_mushroom then
      blue_mushroom:PushEvent("growfromash")
                blue_mushroom.Transform:SetPosition(pt.x, pt.y, pt.z)
      inst.components.stackable:Get():Remove()
    end
end

    inst:AddComponent("deployable")
    inst.components.deployable.ondeploy = OnDeploy

    即可用灰种蓝蘑菇


关于同伴的问题,因为我没有时间了,等空闲了研究一下,我们再切磋吧

EricVisitor 发表于 2013-7-17 18:36

yzzn2009 发表于 2013-7-17 14:16 static/image/common/back.gif
我为你做了更新

二十八.全人物可制造打火机(原来只有薇洛专用)


你居然回我帖子了,我真是太感动了{:3_42:}发求助都没人理我,大大你人真是太好了……

起个bb名 发表于 2013-7-18 09:24

我又来麻烦楼主了{:3_110:}请问有没有叠放蜘蛛帽和用黏糊虫的破碎背壳种香蕉树的办法

yzzn2009 发表于 2013-7-18 12:44

本帖最后由 yzzn2009 于 2013-7-18 14:05 编辑

起个bb名 发表于 2013-7-18 09:24 static/image/common/back.gif
我又来麻烦楼主了请问有没有叠放蜘蛛帽和用黏糊虫的破碎背壳种香蕉树的办法 ...
    1.堆叠蜘蛛帽:用记事本打开游戏目录\data\scripts\prefabs\hats.lua文件,在inst.components.equippable:SetOnUnequip( spider_unequip )的下一行插入下列内容:

    inst:AddComponent("stackable")
      inst.components.stackable.maxsize = TUNING.STACK_SIZE_SMALLITEM

    即可堆叠蜘蛛帽




    2.用黏糊虫的破碎背壳种香蕉树:用记事本打开游戏目录\data\scripts\prefabs\slurtle_shellpieces.lua文件,在inst:AddComponent("inspectable")的下一行插入下列内容:

local function OnDeploy (inst, pt)
    local cave_banana_tree = SpawnPrefab("cave_banana_tree")
    if cave_banana_tree then
      cave_banana_tree:PushEvent("growfromslurtle_shellpieces")
                cave_banana_tree.Transform:SetPosition(pt.x, pt.y, pt.z)
      inst.components.stackable:Get():Remove()
    end
end

    inst:AddComponent("deployable")
    inst.components.deployable.ondeploy = OnDeploy

    即可用黏糊虫的破碎背壳种香蕉树

灬钱 发表于 2013-7-18 19:40

好东东顶顶顶顶顶顶顶顶顶

耀眼の晴空 发表于 2013-7-18 21:29

能在饥饿或脑残低的时候扣血吗?越低扣得的越强。

yzzn2009 发表于 2013-7-19 05:01

耀眼の晴空 发表于 2013-7-18 21:29 static/image/common/back.gif
能在饥饿或脑残低的时候扣血吗?越低扣得的越强。

游戏原始设置是在饥饿值为0后120秒杀死主角,要让生命值低于某个百分比后开始扣血,理论上并不难,大约在player_common.lua文件中加入自动回血语句inst.components.health:StartRegen(30, 10),并把其中30改为负数,当然前面需要加入条件语句。但个人觉得目前饥荒的设定已经让玩家很悲催了,如果再严苛一点,是不是太不人道了{:3_92:}

zhuang87 发表于 2013-7-19 15:01

支持了 绝对是技术贴啊

耀眼の晴空 发表于 2013-7-19 17:00

yzzn2009 发表于 2013-7-19 05:01 static/image/common/back.gif
游戏原始设置是在饥饿值为0后120秒杀死主角,要让生命值低于某个百分比后开始扣血,理论上并不难,大约在 ...

{:3_93:}对于我这种自虐玩家来说,很人道啊,
能讲详细点怎么改吗?

起个bb名 发表于 2013-7-20 12:28

还想求教一下大大{:3_110:},如果在一个新游戏中设置没有火鸡,再用上述方法羽毛种出火鸡不会使游戏bug吧?

yzzn2009 发表于 2013-7-20 15:24

起个bb名 发表于 2013-7-20 12:28 static/image/common/back.gif
还想求教一下大大,如果在一个新游戏中设置没有火鸡,再用上述方法羽毛种出火鸡不会使游戏bug吧? ...

应该不会的,游戏设置只是改变果树丛产生火鸡的几率,用羽毛种火鸡用的是其他语句

起个bb名 发表于 2013-7-20 16:35

yzzn2009 发表于 2013-7-20 15:24 static/image/common/back.gif
应该不会的,游戏设置只是改变果树丛产生火鸡的几率,用羽毛种火鸡用的是其他语句
...

兔子也没问题吧{:3_94:}【感觉自己很二

℡雪花丶那个飘 发表于 2013-7-21 18:35

请楼主找一下小高鸟不需要喂食的修改方法,谢谢了!

ll112332 发表于 2013-7-22 07:50

求个改贝雷帽的办法
页: 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15 16
查看完整版本: 易宁:饥荒游戏实用修改技巧(非MOD模式,请自行备份)支持海难版——6月6日更新:简化修船工具制作材料(只用木板和绳子)