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

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

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

第40页:收割者

展开

四十.收割者(吹排箫一次采集周边所有植物)

  用记事本打开游戏目录\data\DLC0001\scripts\prefabs\panflute.lua文件,

  1.将下列内容:

  local function HearPanFlute(inst, musician, instrument)

  if inst.components.sleeper then

  inst.components.sleeper:AddSleepiness(10, TUNING.PANFLUTE_SLEEPTIME)

  end

  end

  替换为:

  local function HearPanFlute(inst, musician, instrument)

  local pos = Vector3(inst.Transform:GetWorldPosition())

  local ents = TheSim:FindEntities(pos.x,pos.y,pos.z, 30)

  for k,v in pairs(ents) do

  if v.components.pickable and v.prefab ~= "flower" then

  v.components.pickable:Pick(GetPlayer())

  end

  if v.components.crop then

  v.components.crop:Harvest(GetPlayer())

  end

  end

  end

  2.将下列内容:

  inst.components.instrument.range = TUNING.PANFLUTE_SLEEPRANGE

  inst.components.instrument:SetOnHeardFn(HearPanFlute)

  inst:AddComponent("tool")

  inst.components.tool:SetAction(ACTIONS.PLAY)

  inst:AddComponent("finiteuses")

  inst.components.finiteuses:SetMaxUses(TUNING.PANFLUTE_USES)

  inst.components.finiteuses:SetUses(TUNING.PANFLUTE_USES)

  inst.components.finiteuses:SetOnFinished( onfinished)

  inst.components.finiteuses:SetConsumption(ACTIONS.PLAY, 1)

  替换为:

  inst.components.instrument:SetOnHeardFn(HearPanFlute)

  inst:AddComponent("tool")

  inst.components.tool:SetAction(ACTIONS.PLAY)

  即可吹排箫一次采集周边所有植物(除了花),包括农田也可以收割,排箫原有催眠功能取消。排箫在魔法选项(画着红骷髅)下用5个芦苇、1个曼德拉草、1个绳子制造。如果觉得曼德拉草不好找,可以按本修改技巧“用便便种曼德拉草”修改一下

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

责任编辑:Shy夏夏

上一页 31 32 33 34 35 36 37 38 39 40 41 下一页
友情提示:支持键盘左右键“← →”翻页

本文是否解决了您的问题

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