饥荒 全人物解锁及主角自动回血等实用修改教程

《饥荒》这款生存游戏,很多玩家都想觉得游戏有些难,就想修改一些内容,比如解锁全人物,主角自动回血,主角不会饿之类的,下面小编为大家奉上最全的修改教程,内容简单易懂,希望各位玩家喜欢。目录

饥荒 全人物解锁及主角自动回血等实用修改教程

一六二.萌时代(扔蜂蜜将怪物变回童年)

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

  local function onhit(inst, attacker, target)

  inst:Remove()

  SpawnPrefab("collapse_small").Transform:SetPosition(target.Transform:GetWorldPosition())

  target.Transform:SetScale(0.7, 0.7, 0.7)

  if target.components.health then

  target.components.health.currenthealth = 1

  target.components.health.maxhealth = 1

  end

  if target.components.combat then

  target.components.combat:SetDefaultDamage(0)

  target.components.combat.target = nil

  end

  if target.components.locomotor then

  target.components.locomotor.runspeed = 1

  target.components.locomotor.walkspeed = 1

  end

  end

  local function onthrown(inst, data)

  inst.AnimState:SetOrientation( ANIM_ORIENTATION.OnGround )

  end

  inst:AddComponent("weapon")

  inst.components.weapon:SetDamage(0)

  inst.components.weapon:SetRange(20, 25)

  inst:AddComponent("equippable")

  inst.components.equippable.equipstack = true

  inst:AddComponent("projectile")

  inst.components.projectile:SetSpeed(60)

  inst.components.projectile:SetOnHitFn(onhit)

  inst:ListenForEvent("onthrown", onthrown)

  即可扔蜂蜜将怪物变成无害的童年怪物,怪物体型变小、生命值为1、没有攻击力、行走缓慢。因为蜂蜜可装备,如果主角也想吃蜂蜜,请拿起蜂蜜对主角按鼠标右键

相关内容请关注:饥荒专区

作者:易宁     责任编辑:Shy夏夏

本文是否解决了您的问题

APP精彩推荐打开游民APP查看更多

  • 腾讯关闭天美蒙特利尔工作室!成立5年没有自己作品
    腾讯关闭天美蒙特利尔工作室!成立5年没有自己作品

  • 36斤活羊烤完只剩6.9斤引争议 商家称属正常损耗
    36斤活羊烤完只剩6.9斤引争议 商家称属正常损耗

  • 《夜王》女神黄洁琪试镜超低胸战衣:大雷浑圆饱满
    《夜王》女神黄洁琪试镜超低胸战衣:大雷浑圆饱满

攻略合集
近期更新
人物图鉴

相关内容

在线玩推荐更多

游民星空

打开App阅读体验更佳,攻略、资讯实时更新

下载APP