yzzn2009 发表于 2013-10-25 12:04

189hx0q938 发表于 2013-10-25 06:40 static/image/common/back.gif
怎么让麦斯威尔的魔法书召唤分身不减精神上限啊

麦斯威尔的魔法书召唤分身不减精神上限

    1.用记事本打开游戏目录\data\scripts\prefabs\waxwelljournal.lua文件,将reader.components.sanity:RecalculatePenalty()替换为--reader.components.sanity:RecalculatePenalty()

    2.用记事本打开游戏目录\data\scripts\prefabs\shadowwaxwell.lua文件,将inst:ListenForEvent("death", ondeath)替换为--inst:ListenForEvent("death", ondeath)

    3.将以下内容:

    inst:AddComponent("sanityaura")
    inst.components.sanityaura.penalty = TUNING.SHADOWWAXWELL_SANITY_PENALTY

    替换为:

    --inst:AddComponent("sanityaura")
    --inst.components.sanityaura.penalty = TUNING.SHADOWWAXWELL_SANITY_PENALTY

yzzn2009 发表于 2013-10-25 12:23

994274298 发表于 2013-10-24 22:58 static/image/common/back.gif
想说新出的那个能不能分两个版本第2个就是单纯的同伴 不要那么不和谐 砍树 挖矿就够了   其余旁观 走的也 ...

有些行为受限于脑文件、运动文件和动画,修改太过繁琐,很难改动。我给你这条修改的具体参数,你可以自己调节到想要的伙伴

我的小伙伴(用火炬召唤其他主角一起工作战斗,22版使用)

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

local function cancreatelight(staff, caster, target, pos)
    local ground = GetWorld()
    if ground and pos then
      local tile = ground.Map:GetTileAtPoint(pos.x, pos.y, pos.z)
      return tile ~= GROUND.IMPASSIBLE and tile < GROUND.UNDERGROUND
    end
    return false
end

local function createlight(staff, target, pos)
    local light = SpawnPrefab("shadowwaxwell")
    light.Transform:SetPosition(pos.x, pos.y, pos.z)
    local caster = staff.components.inventoryitem.owner
    light.components.follower:SetLeader(caster)
end

    inst:AddComponent("spellcaster")
    inst.components.spellcaster:SetSpellFn(createlight)
    inst.components.spellcaster:SetSpellTestFn(cancreatelight)
    inst.components.spellcaster.canuseonpoint = true
    inst.components.spellcaster.canusefrominventory = false


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

        anim:SetBuild("waxwell_shadow_mod")
        anim:PlayAnimation("idle")

    anim:Hide("ARM_carry")
    anim:Hide("hat")
    anim:Hide("hat_hair")

    inst:AddTag("NOCLICK")

        inst:AddComponent("colourtweener")
        inst.components.colourtweener:StartTween({0,0,0,.5}, 0)

        inst:AddComponent("locomotor")
    inst.components.locomotor:SetSlowMultiplier( 0.6 )
    inst.components.locomotor.pathcaps = { ignorecreep = true }
    inst.components.locomotor.runspeed = TUNING.SHADOWWAXWELL_SPEED

    inst:AddComponent("combat")
    inst.components.combat.hiteffectsymbol = "torso"
    -- inst.components.combat:SetRetargetFunction(1, Retarget)
    inst.components.combat:SetKeepTargetFunction(KeepTarget)
    inst.components.combat:SetAttackPeriod(TUNING.SHADOWWAXWELL_ATTACK_PERIOD)
    inst.components.combat:SetRange(2, 3)
    inst.components.combat:SetDefaultDamage(TUNING.SHADOWWAXWELL_DAMAGE)

    inst:AddComponent("health")
    inst.components.health:SetMaxHealth(TUNING.SHADOWWAXWELL_LIFE)
    inst.components.health.nofadeout = true
    inst:ListenForEvent("death", ondeath)

        inst:AddComponent("inventory")
    inst.components.inventory.dropondeath = false

    inst:AddComponent("sanityaura")
    inst.components.sanityaura.penalty = TUNING.SHADOWWAXWELL_SANITY_PENALTY

    替换为:

        local names = {"wilson","wendy","wes","wickerbottom","willow","wolfgang","wx78"}
        inst.animname = names
        anim:SetBuild(inst.animname)
        anim:PlayAnimation("idle")
    anim:Hide("ARM_carry")
    anim:Hide("hat")
    anim:Hide("hat_hair")

        inst:AddComponent("locomotor")
    inst.components.locomotor.pathcaps = { ignorecreep = true }
    inst.components.locomotor.runspeed = TUNING.SHADOWWAXWELL_SPEED*2
    inst:AddComponent("combat")
    inst.components.combat.hiteffectsymbol = "torso"
    inst.components.combat:SetKeepTargetFunction(KeepTarget)
    inst.components.combat:SetAttackPeriod(TUNING.SHADOWWAXWELL_ATTACK_PERIOD*.1)
    inst.components.combat:SetRange(2, 3)
    inst.components.combat:SetDefaultDamage(TUNING.SHADOWWAXWELL_DAMAGE*10)
    inst:AddComponent("health")
    inst.components.health:SetMaxHealth(TUNING.SHADOWWAXWELL_LIFE*10)
    inst.components.health.nofadeout = true
        inst:AddComponent("inventory")
    inst.components.inventory.dropondeath = false

    3.将inst.lifetime = TUNING.SHADOWWAXWELL_LIFETIME替换为inst.lifetime = TUNING.SHADOWWAXWELL_LIFETIME*1000

    即可装备火炬在空地上点鼠标右键,随机召唤其他主角,一起砍树、开矿、战斗。不想要伙伴时,对其按Ctrl + 鼠标左键杀掉即可,不杀掉几天后其也会自然死去,想要就再召唤吧。不要与“火炬召唤亡灵”一同修改,使用麦斯维尔作主角时不要修改本条。

    1)其中"wilson","wendy","wes","wickerbottom","willow","wolfgang","wx78"为可召唤主角的名字,如果只想召唤某个人,比如温蒂(wendy),就只留下她的名字即可。

    2)其中inst.components.locomotor.runspeed = TUNING.SHADOWWAXWELL_SPEED*2为小伙伴的跑动速度,如果去掉*2就是1倍速度,*0.5就是一半的速度


    3)其中inst.components.combat:SetAttackPeriod(TUNING.SHADOWWAXWELL_ATTACK_PERIOD*.1)为攻击节奏,最后面*.1为加快10倍,数字越小攻击越快


    4)其中inst.components.combat:SetDefaultDamage(TUNING.SHADOWWAXWELL_DAMAGE*10)为攻击力,*10为10倍攻击力(1倍为40点),可自行调节


    5)其中inst.components.health:SetMaxHealth(TUNING.SHADOWWAXWELL_LIFE*10)为生命值,*10为10倍生命值(1倍为75点),可自行调节


    6)其中inst.lifetime = TUNING.SHADOWWAXWELL_LIFETIME*1000为生存时间,*1000为1000倍(2500天)

cws1017460382 发表于 2013-10-25 13:48

有22版中文的下载地址吗

yzzn2009 发表于 2013-10-25 13:53

cws1017460382 发表于 2013-10-25 13:48 static/image/common/back.gif
有22版中文的下载地址吗

22版目前还没有中文版或汉化补丁

1344152253 发表于 2013-10-25 16:20

可不可以让召唤出来的小伙伴可以拿斧子、铲子、长矛、铠甲、帽子之类的    之前我用鼠标点工具让后点召唤出来的小伙伴结果被其他小伙伴群殴死了

/xin大好人 发表于 2013-10-25 16:20

楼主我爱你

dongkunhe 发表于 2013-10-25 16:53

不得不顶了,哈哈哈

yzzn2009 发表于 2013-10-25 17:43

1344152253 发表于 2013-10-25 16:20 static/image/common/back.gif
可不可以让召唤出来的小伙伴可以拿斧子、铲子、长矛、铠甲、帽子之类的    之前我用鼠标点工具让后点召唤出 ...

斧子在砍树时会出现,其他工具、装备缺少相关动作、脑、和动画,难以达成。通过调节参数也可以达到攻击上升、血上升等效果,见2413楼的具体参数

yzzn2009 发表于 2013-10-25 17:46

本帖最后由 yzzn2009 于 2013-10-25 19:44 编辑

五彩木箱

189hx0q938 发表于 2013-10-25 17:56

感谢,顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶

cws1017460382 发表于 2013-10-25 19:01

英文看的我头疼死了

huangff 发表于 2013-10-25 23:10

yzzn2009 发表于 2013-10-25 17:46 static/image/common/back.gif
五彩木箱

这个的代码是什么?

淡忘雕刻心态___ 发表于 2013-10-26 01:02

可不可以让奴仆不死,死后就又变孤独了。

1750820466 发表于 2013-10-26 09:32

大神,能不能给我发个你已经修改好的(尤其是后一百多项,守卫不要,"我的小伙伴“要)谢了,我是22版的

994274298 发表于 2013-10-26 10:42

1750820466 发表于 2013-10-26 09:32 static/image/common/back.gif
大神,能不能给我发个你已经修改好的(尤其是后一百多项,守卫不要,"我的小伙伴“要)谢了,我是22版的 ...

我说      100多项......      你都玩的下去..      完全没平衡了

艾兰修斯 发表于 2013-10-26 11:40

大神,有种高鸟蛋得高鸟巢的修改吗?

艾兰修斯 发表于 2013-10-26 11:42

另外求杀怪掉物品的通用修改方法!!!如杀死高鸟掉高鸟蛋1个,2个。。。10个!!

yzzn2009 发表于 2013-10-26 12:43

huangff 发表于 2013-10-25 23:10 static/image/common/back.gif
这个的代码是什么?

活树(livingtree)

乱码、 发表于 2013-10-26 12:46

哈哈,我又来了,顶顶

yzzn2009 发表于 2013-10-26 12:50

1750820466 发表于 2013-10-26 09:32 static/image/common/back.gif
大神,能不能给我发个你已经修改好的(尤其是后一百多项,守卫不要,"我的小伙伴“要)谢了,我是22版的 ...
我的22版并没有都修改,你可以对照修改技巧试试哪些功能在,解压缩后复制到游戏目录下,替换原文件即可(先备份好你原来的文件)

http://pan.baidu.com/s/1mp9qA

yzzn2009 发表于 2013-10-26 13:17

艾兰修斯 发表于 2013-10-26 11:42 static/image/common/back.gif
另外求杀怪掉物品的通用修改方法!!!如杀死高鸟掉高鸟蛋1个,2个。。。10个!! ...

一.用高鸟蛋种高鸟巢

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

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

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




杀动物掉东西主要修改lootdropper标签的SetLoot参数,只举2个最常见的例子。

    例一:杀高鸟掉3个高鸟蛋

    用记事本打开游戏目录\data\scripts\prefabs\tallbird.lua文件,将local loot = { "meat", "meat" }替换为local loot = { "meat", "meat", "tallbirdegg", "tallbirdegg", "tallbirdegg" }

    即可杀高鸟掉3个高鸟蛋,这是在local loot的大括号中,在肉(meat)后面加入高鸟蛋(tallbirdegg),加几个就掉几个


    例二:杀树精掉远古守护者角

    用记事本打开游戏目录\data\scripts\prefabs\leif.lua文件,将inst.components.lootdropper:SetLoot({"livinglog", "livinglog", "livinglog", "livinglog", "livinglog", "livinglog", "monstermeat"})替换为inst.components.lootdropper:SetLoot({"livinglog", "livinglog", "livinglog", "livinglog", "livinglog", "livinglog", "monstermeat", "minotaurhorn"})

    即可杀树精掉远古守护者角,这是在标准SetLoot的大括号中,加入远古守护者角(minotaurhorn)

打死、烤肉酱 发表于 2013-10-26 13:30

全人物可建造麦斯威尔的魔法书

cws1017460382 发表于 2013-10-26 13:55

里面不是有吗

1750820466 发表于 2013-10-26 15:42

yzzn2009 发表于 2013-10-26 12:50 static/image/common/back.gif
我的22版并没有都修改,你可以对照修改技巧试试哪些功能在,解压缩后复制到游戏目录下,替换原文件即可( ...

又来麻烦大神了,能不能出个修改杀什么掉什么的,并加在下次的更新里(不加也可以,直接发给我)
还有,我的22版是刚下下的(英文的)按了开始,再按第一个(我的英语学的不好)先是黑屏,然后就到初始界面了,试了几次都如此。
你能解决上面的问题吗?但是我相信,你一定可以的!

yzzn2009 发表于 2013-10-26 15:47

打死、烤肉酱 发表于 2013-10-26 13:30 static/image/common/back.gif
全人物可建造麦斯威尔的魔法书

造魔法书不难,但如果主角不用麦斯维尔,则召唤的小人没有贴图,导致小人隐形。所以我才做了“一六九.我的小伙伴(用火炬召唤其他主角一起工作战斗,22版使用)”,等于全人物可以召唤砍树、开矿、战斗的帮手

yzzn2009 发表于 2013-10-26 15:53

1750820466 发表于 2013-10-26 15:42 static/image/common/back.gif
又来麻烦大神了,能不能出个修改杀什么掉什么的,并加在下次的更新里(不加也可以,直接发给我)
还有, ...

刚回答完杀动物掉东西的问题,见2432楼。你可以试试这个3DM的游戏版本http://dl.3dmgame.com/201310/39210.html,我用的就是这个

jayvscxx 发表于 2013-10-26 16:12

饥荒创建地图能更大吗?现在的设定下“最大”还是小了点啊。我想新开档,跑个几百天才跑完全图的那种大。

RK007BBC 发表于 2013-10-26 16:12

顶顶顶顶顶顶顶顶

RK007BBC 发表于 2013-10-26 16:13

顶顶顶顶顶顶顶顶

RK007BBC 发表于 2013-10-26 16:13

顶顶顶顶顶顶顶顶
页: 66 67 68 69 70 71 72 73 74 75 [76] 77 78 79 80 81 82 83 84 85
查看完整版本: 易宁:饥荒游戏实用修改技巧(非MOD模式,请自行备份)支持海难版——6月6日更新:简化修船工具制作材料(只用木板和绳子)