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

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

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

一七七.活捉手杖(装备龙卷风魔杖,鼠标左键点鸟、鼹鼠等小动物,可远程活捉)

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

  local function canattack(inst, target)

  if target.prefab == "bee" or target.prefab == "killerbee" or target.prefab == "crow" or target.prefab == "robin" or target.prefab == "robin_winter" or target.prefab == "butterfly" or target.prefab == "mole" or target.prefab == "mosquito" or target.prefab == "rabbit" then

  return true

  end

  return false

  end

  local function onattack(inst, attacker, target)

  if target.prefab == "bee" then

  local prey = SpawnPrefab("bee")

  GetPlayer().components.inventory:GiveItem(prey)

  end

  if target.prefab == "killerbee" then

  local prey = SpawnPrefab("killerbee")

  GetPlayer().components.inventory:GiveItem(prey)

  end

  if target.prefab == "crow" then

  local prey = SpawnPrefab("crow")

  GetPlayer().components.inventory:GiveItem(prey)

  end

  if target.prefab == "robin" then

  local prey = SpawnPrefab("robin")

  GetPlayer().components.inventory:GiveItem(prey)

  end

  if target.prefab == "robin_winter" then

  local prey = SpawnPrefab("robin_winter")

  GetPlayer().components.inventory:GiveItem(prey)

  end

  if target.prefab == "butterfly" then

  local prey = SpawnPrefab("butterfly")

  GetPlayer().components.inventory:GiveItem(prey)

  end

  if target.prefab == "mole" then

  local prey = SpawnPrefab("mole")

  GetPlayer().components.inventory:GiveItem(prey)

  end

  if target.prefab == "mosquito" then

  local prey = SpawnPrefab("mosquito")

  GetPlayer().components.inventory:GiveItem(prey)

  end

  if target.prefab == "rabbit" then

  local prey = SpawnPrefab("rabbit")

  GetPlayer().components.inventory:GiveItem(prey)

  end

  target:Remove()

  end

  inst:AddComponent("weapon")

  inst.components.weapon:SetDamage(0)

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

  inst.components.weapon:SetOnAttack(onattack)

  inst.components.weapon:SetCanAttack(canattack)

  inst.components.weapon:SetProjectile("bishop_charge")

  即可将龙卷风魔杖升级为活捉手杖,装备活捉手杖,鼠标左键点小动物,可远距离活捉它们。可活捉的小动物包括蜜蜂、杀人蜂、鸟、蝴蝶、鼹鼠、蚊子、兔子。龙卷风魔杖右键召唤龙卷风的功能保留。龙卷风魔杖在战斗选项下,用10个鹿鸭羽毛、1个闪电羊角、1个齿轮制造

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

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

本文是否解决了您的问题

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

  • 同款onlyfans博主 拉开胸拍照才会冷的囧图
    同款onlyfans博主 拉开胸拍照才会冷的囧图

  • 三上悠亚发性感新照!大白美腿配超诱惑姿势
    三上悠亚发性感新照!大白美腿配超诱惑姿势

  • kun哥再发力!PS+3月会免领衔大作揭晓
    kun哥再发力!PS+3月会免领衔大作揭晓

攻略合集
人物图鉴

相关内容

在线玩推荐更多

游民星空

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

下载APP