游民星空 > 攻略秘籍 > 攻略 > 正文

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

2015-01-21 11:28:46 来源:互联网 作者:易宁 我要投稿

第183页:迷魂花阵

展开

一八三.迷魂花阵(戴花环周围出现食人花眼睛保护主角)

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

  inst:AddComponent("perishable")

  inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST)

  inst.components.perishable:StartPerishing()

  inst.components.perishable:SetOnPerishFn(generic_perish)

  inst.components.equippable:SetOnEquip( opentop_onequip )

  替换为:

  local function flower_equip(inst, owner)

  opentop_onequip(inst, owner)

  inst:AddComponent("minionspawner")

  inst.components.minionspawner.miniontype = "eyeplant"

  inst.components.minionspawner.maxminions = 27

  inst.components.minionspawner.minionspawntime = {min = 0.01, max = 0.01}

  inst.components.minionspawner.numminions = 10

  inst.components.minionspawner.shouldspawn = true

  inst.components.minionspawner:StartNextSpawn()

  end

  local function flower_unequip(inst, owner)

  onunequip(inst, owner)

  inst.components.minionspawner.shouldspawn = false

  inst.components.minionspawner:KillAllMinions()

  inst:RemoveComponent("minionspawner")

  end

  inst.components.equippable:SetOnEquip( flower_equip )

  inst.components.equippable:SetOnUnequip( flower_unequip )

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

  return (guy:HasTag("character") or guy:HasTag("monster") or guy:HasTag("animal") or guy:HasTag("prey") or guy:HasTag("eyeplant") or guy:HasTag("lureplant")) and not checkmaster(guy, inst)

  替换为:

  return (guy:HasTag("character") or guy:HasTag("monster") or guy:HasTag("animal") or guy:HasTag("prey") or guy:HasTag("eyeplant") or guy:HasTag("lureplant")) and not guy:HasTag("player") and not checkmaster(guy, inst)

  即可戴花环周围出现食人花眼睛保护主角,食人花眼睛被敌人打死一个又会再生一个。摘下花环,食人花眼睛立即消失

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

责任编辑:Shy夏夏

上一页 181 182 183 184 185 186 187 188 189 190 191 下一页
友情提示:支持键盘左右键“← →”翻页

本文是否解决了您的问题

文章内容导航
游民星空APP
随手浏览游戏攻略
code
攻略合集
单机游戏下载
休闲娱乐
综合热点资讯
游民星空联运游戏