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

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

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

一九三.我的小伙伴(用火炬召唤其他主角一起工作战斗)

  1.用记事本打开游戏目录\data\DLC0001\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("scarytoprey")

  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[math.random(#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

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

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

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

本文是否解决了您的问题

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

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

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

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

攻略合集
人物图鉴

相关内容

在线玩推荐更多

游民星空

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

下载APP