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

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

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

第157页:全民吹气球

展开

一五七.全民吹气球(气球威力大、不伤主角、不降脑、彩色光、分散怪物注意力)

  1.用记事本打开游戏目录\data\DLC0001\scripts\recipes.lua文件,在Recipe("heatrock", {Ingredient("rocks", 10),Ingredient("pickaxe", 1),Ingredient("flint", 3)}, RECIPETABS.SURVIVAL, TECH.SCIENCE_TWO)的下一行插入以下内容:

  Recipe("balloons_empty", {Ingredient("cutgrass", 1)}, RECIPETABS.SURVIVAL, TECH.NONE)

  2.用记事本打开游戏目录\data\DLC0001\scripts\actions.lua文件,将act.doer.components.sanity:DoDelta(-TUNING.SANITY_TINY)替换为act.doer.components.sanity:DoDelta(TUNING.SANITY_TINY)

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

  inst:AddComponent("characterspecific")

  inst.components.characterspecific:SetOwner("wes")

  替换为:

  --inst:AddComponent("characterspecific")

  --inst.components.characterspecific:SetOwner("wes")

  4.将inst:DoTaskInTime(0, function() if not GetPlayer() or GetPlayer().prefab ~= "wes" then inst:Remove() end end)替换为以下内容:

  --inst:DoTaskInTime(0, function() if not GetPlayer() or GetPlayer().prefab ~= "wes" then inst:Remove() end end)

  5.用记事本打开游戏目录\data\DLC0001\scripts\prefabs\balloon.lua文件,将inst.components.combat:DoAreaAttack(inst, 2)替换为inst.components.combat:DoAreaAttack(inst, 8)

  6.将inst.components.combat:SetDefaultDamage(5)替换为以下内容:

  inst.components.combat.playerdamagepercent = 0

  inst.components.combat:SetDefaultDamage(500)

  local light = inst.entity:AddLight()

  light:SetIntensity(.8)

  light:SetRadius(2)

  light:SetFalloff(.6)

  light:Enable(true)

  light:SetColour(colours[inst.colour_idx][1],colours[inst.colour_idx][2],colours[inst.colour_idx][3])

  inst:AddTag("character")

  即可让全部主角吹进化版气球,空气球在生存选项(画着绳套)下,用1个草制造。官方原本的气球只有wes有,且功能很烂,所以我改造了一下

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

责任编辑:Shy夏夏

上一页 151 152 153 154 155 156 157 158 159 160 161 下一页
友情提示:支持键盘左右键“← →”翻页

本文是否解决了您的问题

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