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

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

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

二四零.完好如初(红色魔杖可修复物品、回复新鲜度、补充燃料及治愈同伴)

  用记事本打开游戏目录\data\DLC0001\scripts\prefabs\staff.lua文件,在local inst = commonfn("red")的下一行插入以下内容:

  local function canbeback(staff, caster, target, pos)

  if caster.components.inventory:Has("goldnugget", 1) then

  return true

  end

  return false

  end

  local function beback(staff, target, pos)

  local player = GetPlayer()

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

  if target.components.fueled then

  target.components.fueled.currentfuel = target.components.fueled.maxfuel

  player.components.inventory:ConsumeByName("goldnugget", 1)

  end

  if target.components.finiteuses then

  target.components.finiteuses.current = target.components.finiteuses.total

  player.components.inventory:ConsumeByName("goldnugget", 1)

  end

  if target.components.armor then

  target.components.armor.condition = target.components.armor.maxcondition

  player.components.inventory:ConsumeByName("goldnugget", 1)

  end

  if target.components.perishable then

  target.components.perishable.perishremainingtime = target.components.perishable.perishtime

  player.components.inventory:ConsumeByName("goldnugget", 1)

  end

  if target.components.health then

  target.components.health.currenthealth = target.components.health.maxhealth

  player.components.inventory:ConsumeByName("goldnugget", 1)

  end

  end

  inst:AddComponent("spellcaster")

  inst.components.spellcaster:SetSpellFn(beback)

  inst.components.spellcaster:SetSpellTestFn(canbeback)

  inst.components.spellcaster.canuseontargets = true

  inst.components.spellcaster.canusefrominventory = false

  即可将想要修复的物品放在地上,装备红色魔杖右键点地上的物品,可修复武器装备使用百分比,回复食物新鲜度,为照明物品补充燃料,也可用于治疗同伴。每次使用须支付1个黄金,身上没有黄金时无法使用。可堆叠的物品尽量堆在一起修复,这样只要花费1个黄金即可

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

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

本文是否解决了您的问题

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

  • 阿曼达塞弗里德自曝 她在新片裸戏中戴了
    阿曼达塞弗里德自曝 她在新片裸戏中戴了"假体肛门"

  • 网上擦边不用露脸 缺乏性资源遂成为性资源的囧图
    网上擦边不用露脸 缺乏性资源遂成为性资源的囧图

  • 韩国22岁“蛇蝎美人”诱杀三名男性 粉丝暴涨50倍
    韩国22岁“蛇蝎美人”诱杀三名男性 粉丝暴涨50倍

攻略合集
人物图鉴

相关内容

在线玩推荐更多

游民星空

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

下载APP