用记事本打开游戏目录\data\DLC0001\scripts\prefabs\player_common.lua文件,将下列内容:
inst:AddComponent("grue")
ponents.grue:SetSounds("dontstarve/charlie/warn","dontstarve/charlie/attack")
替换为:
local function OnAttacked(inst, data)
ponents.health:DoDelta(ponents.health.maxhealth) ponents.sanity:DoDelta(ponents.sanity.max) if ponents.health then
ponents.health:DoDelta(-3000) end end
inst:ListenForEvent("attacked", OnAttacked)
即可让主角受攻击时不掉血、不伤脑,怪物反暴毙,并且主角在黑暗中不会被杀死。这是献给不杀生派玩家的礼物,慈悲也是一种力量。不要与“近卫军”一同修改
六.复活石无限使用(主角永生)
用记事本打开游戏目录\data\DLC0001\scripts\prefabs\resurrectionstone.lua文件,在inst:Remove()的下一行插入以下内容:
SpawnPrefab("resurrectionstone").Transform:SetPosition(inst.Transform:GetWorldPosition())
主角复活后,再点身下的复活石,可使复活石再次完整
搜索“diyifanwen.net”或“第一范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,第一范文网,提供最新外语学习饥荒游戏修改技巧大全(17)全文阅读和word下载服务。
相关推荐: