is44 发表于 2013-8-31 21:37

这个碉堡了!Intact Magical: Opera/9.80 (Windows NT 5.2; U; Grim king; zh-cn) Presto/2.10.229 Version/11.64(zh-cn)          

spore~刘 发表于 2013-8-31 22:24

求金块种麦克斯物灯~{:3_90:}

yzzn2009 发表于 2013-8-31 22:45

本帖最后由 yzzn2009 于 2013-8-31 22:46 编辑

spore~刘 发表于 2013-8-31 22:24 static/image/common/back.gif
求金块种麦克斯物灯~
金块种麦克斯维尔灯:用记事本打开游戏目录\data\scripts\prefabs\goldnugget.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:

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

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

注意这不是游戏中标准物品,会有很多问题

spore~刘 发表于 2013-8-31 23:23

yzzn2009 发表于 2013-8-31 22:45 static/image/common/back.gif
金块种麦克斯维尔灯:用记事本打开游戏目录\data\scripts\prefabs\goldnugget.lua文件,在inst:AddCompone ...

哦,那能给一个影灯晚上自动亮的吗?

译心译意 发表于 2013-8-31 23:23

楼主很厉害 也很用心
我想问你一个代码    那个洞穴蜗牛掉的 装备可不可以用破碎的蜗牛背壳来修复?代码要怎么改才可以修复?

wojay3998833 发表于 2013-8-31 23:36

LZ加油 多更新点好玩的

yzzn2009 发表于 2013-9-1 01:22

译心译意 发表于 2013-8-31 23:23 static/image/common/back.gif
楼主很厉害 也很用心
我想问你一个代码    那个洞穴蜗牛掉的 装备可不可以用破碎的蜗牛背壳来修复?代 ...

你要的属于重新设计游戏,需要重写大量代码,我没法帮到你。但我可以给你一个简单的修改,同样可以修复蜗牛甲,就是当盔甲损坏后,脱下来再穿上,蜗牛甲就重新变成100%

蜗牛甲穿上就恢复100%:用记事本打开游戏目录\data\scripts\prefabs\armor_snurtleshell.lua文件,在inst:ListenForEvent("newstate", ProtectionLevels, owner)的下一行插入以下内容:

    inst.components.armor.condition = TUNING.ARMORMARBLE

王_者灬小ゝ邪 发表于 2013-9-1 01:32

yzzn2009 发表于 2013-8-29 13:33 static/image/common/back.gif
mermhouse(鱼人房)、deerclops(独眼巨鹿),另附部分物品名称




谢谢我一定会努力的:handshake:victory::handshake       支持易宁   支持易宁

译心译意 发表于 2013-9-1 01:59

yzzn2009 发表于 2013-9-1 01:22 static/image/common/back.gif
你要的属于重新设计游戏,需要重写大量代码,我没法帮到你。但我可以给你一个简单的修改,同样可以修复蜗 ...

都己经1点半了 你还上来帮我回答己经很感动了辛苦你了

yzzn2009 发表于 2013-9-1 02:45

spore~刘 发表于 2013-8-31 23:23 static/image/common/back.gif
哦,那能给一个影灯晚上自动亮的吗?

暗影灯夜晚点燃、白天熄灭

    用记事本打开游戏目录\data\scripts\prefabs\nightlight.lua文件,

    1.在下列内容:

local prefabs =
{
    "campfirefire",
}   

    的下一行插入以下内容:

local function LightsOn(inst)
    inst.components.burnable:Ignite()
inst.components.fueled:InitializeFuelLevel(TUNING.NIGHTLIGHT_FUEL_MAX)
end

local function LightsOff(inst)
    inst.components.burnable:Extinguish()
inst.components.fueled:InitializeFuelLevel(0)
end

    2.在MakeObstaclePhysics(inst, .1)的下一行插入以下内容:

    inst:ListenForEvent( "daytime", function() LightsOff(inst) end, GetWorld())
    inst:ListenForEvent( "dusktime", function() LightsOn(inst) end, GetWorld())   
    inst:ListenForEvent( "nighttime", function() LightsOn(inst) end, GetWorld())

    即可让暗影灯夜晚点燃、白天熄灭。暗影灯在魔法选项下用8个金块、2个噩梦燃料、1个红宝石制造

译心译意 发表于 2013-9-1 03:09

楼主不睡觉的吗 我还想问一个问题洞穴蜗牛 有两种 一种是掉头盔的 一种是掉蜗牛壳的   我打他们的家基本都是出来掉头盔的蜗牛 那种掉蜗牛壳的很少见
请问 怎样提高另一种蜗牛出现的几率

yzzn2009 发表于 2013-9-1 03:59

译心译意 发表于 2013-9-1 03:09 static/image/common/back.gif
楼主不睡觉的吗 我还想问一个问题洞穴蜗牛 有两种 一种是掉头盔的 一种是掉蜗牛壳的   我打他们的家基 ...

蜗牛洞两种蜗牛出现概率各半

    用记事本打开游戏目录\data\scripts\prefabs\slurtlehole.lua文件,将inst.components.childspawner:SetRareChild("snurtle", 0.1)替换为inst.components.childspawner:SetRareChild("snurtle", 0.5)

通过调整0.5这个数字,来决定罕见蜗牛出现概率,现在是50%

太晚了,你自己测试一下吧

渊小乖 发表于 2013-9-1 06:26

每天来顶一次!

ll1xx 发表于 2013-9-1 08:36

yzzn2009 发表于 2013-8-31 13:00 static/image/common/back.gif
你要的是这个意思吗

四十二.橙色护身符吸取物品加速、范围加大,不吸陷阱


呃。。。谢谢
我其实只是要个一键范围拾取的mod。。。以前18版的不能用了。
黄护符离我还远着呢。。

994274298 发表于 2013-9-1 11:18

楼主麻烦把种子种胡萝卜的也加进去 谢谢

译心译意 发表于 2013-9-1 12:03

yzzn2009 发表于 2013-9-1 03:59 static/image/common/back.gif
蜗牛洞两种蜗牛出现概率各半

    用记事本打开游戏目录\data\scripts\prefabs\slurtlehole.lua文件,将i ...

测试成功 大半夜的 谢谢你了

66698521 发表于 2013-9-1 12:15

yzzn2009 发表于 2013-8-31 14:49 static/image/common/back.gif
一.猪火炬不灭:用记事本打开游戏目录\data\scripts\prefabs\pigtorch.lua文件,将inst.components.fueled ...

感谢大神!!!就是这个!非常感谢!!!

1150863194 发表于 2013-9-1 12:43

求食人花不会主动攻击人

yzzn2009 发表于 2013-9-1 13:34

994274298 发表于 2013-9-1 11:18 static/image/common/back.gif
楼主麻烦把种子种胡萝卜的也加进去 谢谢

如果你觉得必要,我就在下期把它加进去




用普通种子种胡萝卜且一次采10个(胡萝卜田)

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

local function OnDeploy (inst, pt)
    local carrot_planted = SpawnPrefab("carrot_planted")
    if carrot_planted then
      carrot_planted:PushEvent("growfromseeds")
                carrot_planted.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\carrot.lua文件,将inst.components.pickable:SetUp("carrot", 10)替换为inst.components.pickable:SetUp("carrot", 10, 10)

    即可用普通种子种胡萝卜且一次采10个。好处是快坏的种子总算有销路了,而且地里的胡萝卜不摘就永远新鲜

yzzn2009 发表于 2013-9-1 13:37

1150863194 发表于 2013-9-1 12:43 static/image/common/back.gif
求食人花不会主动攻击人

食人花不攻击主角:用记事本打开游戏目录\data\scripts\prefabs\eyeplant.lua文件,将下列内容:

            return (guy:HasTag("character") or guy:HasTag("monster") or guy:HasTag("animal") or guy:HasTag("prey") or guy:HasTag("eyeplant") or guy:HasTag("lureplant")) and not checkmaster(guy, inst)

替换为:

return (guy:HasTag("character") or guy:HasTag("monster") or guy:HasTag("animal") or guy:HasTag("prey") or guy:HasTag("eyeplant") or guy:HasTag("lureplant")) and not guy:HasTag("player") and not checkmaster(guy, inst)

法国工会 发表于 2013-9-1 18:48

1                  

mysxxxx 发表于 2013-9-1 20:17

a45393 发表于 2013-8-23 16:02 static/image/common/back.gif
貌似成功了......蝙蝠lua里添加不攻击batt然后把麦克定义为batt测试发现仍然不受蝙蝠敌对 遇到兔人也 ...

哦,我知道你是谁了,饥荒mod吧的某某银~

打死、烤肉酱 发表于 2013-9-1 20:33

我也来一发

用记事本打开游戏目录\data\scripts\tuning.lua文件,将以下内容:
LEIF_PERCENT_CHANCE = 1/75改为LEIF_PERCENT_CHANCE = 75/75
其实1/75就是概率只是吧概率改为75/75就是100%也就是说你砍一颗树就出一个树人
记得改回来要不然会有一大群树人追你的

打死、烤肉酱 发表于 2013-9-1 21:43

打死、烤肉酱 发表于 2013-9-1 20:33 static/image/common/back.gif
我也来一发

用记事本打开游戏目录\data\scripts\tuning.lua文件,将以下内容:


希望下次更新可以加上,上面的树人的出现率的修改

spore~刘 发表于 2013-9-1 21:54

求噩梦燃料种三产荧光草,紫宝石种双产荧光草

yzzn2009 发表于 2013-9-1 22:24

spore~刘 发表于 2013-9-1 21:54 static/image/common/back.gif
求噩梦燃料种三产荧光草,紫宝石种双产荧光草

所有宝石都一个文件,所以只能改全部宝石都可以种双朵荧光草



一.宝石种双朵荧光草:用记事本打开游戏目录\data\scripts\prefabs\gem.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:

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

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




二.噩梦燃料种三朵荧光草:用记事本打开游戏目录\data\scripts\prefabs\nightmarefuel.lua文件,在inst:AddComponent("inventoryitem")的下一行插入以下内容:

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

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

fkufk 发表于 2013-9-1 22:43

见一次顶一次,厉害

66698521 发表于 2013-9-2 00:35

自从有了大神的修改,我都不用MOD了,所以必须感谢大神!支持大神!必须的,必须支持!!!

渊小乖 发表于 2013-9-2 08:20

每天来顶一次

fanjun17 发表于 2013-9-2 08:55

太给力,更新速度真快:lol
页: 20 21 22 23 24 25 26 27 28 29 [30] 31 32 33 34 35 36 37 38 39
查看完整版本: 易宁:饥荒游戏实用修改技巧(非MOD模式,请自行备份)支持海难版——6月6日更新:简化修船工具制作材料(只用木板和绳子)