您的位置: 單機(jī) > 攻略 > 游戲秘籍 > 攻略詳情

饑荒 海難DLC作弊碼修改方法 控制臺(tái)代碼怎么用

時(shí)間:2016-01-07 09:01:50
  • 來源:Leeds我去我去
  • 作者:vincent
  • 編輯:ChunTian
0

背包可冷藏食品

1.普通背包可冷藏食品:用記事本打開游戲目錄\data\DLC0002\scripts\prefabs\backpack.lua文件,在inst:AddComponent("inspectable")的下一行插入inst:AddTag("fridge")

2.小豬包可冷藏食品:用記事本打開游戲目錄\data\DLC0002\scripts\prefabs\piggyback.lua文件,在inst:AddComponent("inspectable")的下一行插入inst:AddTag("fridge")

花瓣種花(花可移植)

用記事本打開游戲目錄\data\DLC0002\scripts\prefabs\petals.lua文件,在inst:AddComponent("inspectable")的下一行插入以下內(nèi)容:

local function OnDeploy (inst, pt)

SpawnPrefab("flower").Transform:SetPosition(pt.x, pt.y, pt.z)

inst.components.stackable:Get():Remove()

end

inst:AddComponent("deployable")

inst.components.deployable.ondeploy = OnDeploy

即可用花瓣種花,使花可方便移植

用蘑菇種蘑菇(蘑菇可移植)

用記事本打開游戲目錄\data\DLC0002\scripts\prefabs\mushrooms.lua文件,inst.AnimState:PlayAnimation(data.animname.."_cap")的下一行插入以下內(nèi)容:

local function OnDeploy (inst, pt)

SpawnPrefab(data.animname.."_mushroom").Transform:SetPosition(pt.x, pt.y, pt.z) inst.components.stackable:Get():Remove()

end

inst:AddComponent("deployable")

inst.components.deployable.ondeploy = OnDeploy

即可用紅蘑菇種紅蘑菇,用藍(lán)蘑菇種藍(lán)蘑菇,用綠蘑菇種綠蘑菇,即蘑菇可移植

同時(shí)攜帶多個(gè)背包(背包可庫(kù)存)

1.同時(shí)攜帶多個(gè)普通背包:用記事本打開游戲目錄\data\DLC0002\scripts\prefabs\backpack.lua文件,將inst.components.inventoryitem.cangoincontainer = false替換為inst.components.inventoryitem.cangoincontainer = true

2.同時(shí)攜帶多個(gè)小豬包:用記事本打開游戲目錄\data\DLC0002\scripts\prefabs\piggyback.lua文件,將inst.components.inventoryitem.cangoincontainer = false替換為inst.components.inventoryitem.cangoincontainer = true

如果游戲崩潰了,就修改回去就行。

復(fù)活石無限使用(主角永生)

用記事本打開游戲目錄\data\DLC0002\scripts\prefabs\resurrectionstone.lua文件,在inst:Remove()的下一行插入以下內(nèi)容:

SpawnPrefab("resurrectionstone").Transform:SetPosition(inst.Transform:GetWorldPosition())

主角復(fù)活后,再點(diǎn)身下的復(fù)活石,可使復(fù)活石再次完整

提高主角攻擊力

用記事本打開游戲目錄\data\DLC0002\scripts\tuning.lua文件,將local wilson_attack = 34替換為local wilson_attack = 500

即可將主角攻擊力由34提高到500,數(shù)字可自行調(diào)整

快速制造物品

用記事本打開游戲目錄\data\DLC0002\scripts\actions.lua文件,將BUILD = Action(),替換為BUILD = Action(0, true),

即可跳過制造物品的動(dòng)畫,快速制造物品

主角自動(dòng)回血

用記事本打開游戲目錄\data\DLC0002\scripts\prefabs\player_common.lua文件,在inst.components.health:SetMaxHealth(TUNING.WILSON_HEALTH)的下一行插入以下內(nèi)容:

inst.components.health:StartRegen(30, 10)

即可讓主角自動(dòng)回血,其中30為血量,10為10秒回血一次,可自行調(diào)整

全部物品無限使用(工具、武器、盔甲、魔杖、護(hù)身符、衣服、帽子、照明物品等全部無限使用)

1.用記事本打開游戲目錄\data\DLC0002\scripts\widgets\itemtile.lua文件,將下列內(nèi)容:

if invitem.components.fueled then

self:SetPercent(invitem.components.fueled:GetPercent())

end

if invitem.components.finiteuses then

self:SetPercent(invitem.components.finiteuses:GetPercent())

end

if invitem.components.perishable then

if self:HasSpoilage() then

self:SetPerishPercent(invitem.components.perishable:GetPercent())

else

self:SetPercent(invitem.components.perishable:GetPercent())

end

end

if invitem.components.armor then

self:SetPercent(invitem.components.armor:GetPercent())

end

替換為:

--if invitem.components.fueled then

--self:SetPercent(invitem.components.fueled:GetPercent())

--end

--if invitem.components.finiteuses then

--self:SetPercent(invitem.components.finiteuses:GetPercent())

--end

if invitem.components.perishable then

if self:HasSpoilage() then

self:SetPerishPercent(invitem.components.perishable:GetPercent())

else

self:SetPercent(invitem.components.perishable:GetPercent())

end

end

--if invitem.components.armor then

--self:SetPercent(invitem.components.armor:GetPercent())

--end

2.用記事本打開游戲目錄\data\scripts\components\finiteuses.lua文件,將self:SetUses(self.current - (num or 1))替換為self:SetUses(self.current - 0)

3.用記事本打開游戲目錄\data\DLC0002\scripts\components\fueled.lua文件,將self.consuming = true替換為self.consuming = false

4.用記事本打開游戲目錄\data\scripts\components\armor.lua文件,將下列內(nèi)容:

function Armor:SetCondition(amount)

self.condition = amount

替換為:

function Armor:SetCondition(amount)

self.condition = self.maxcondition

即可讓全部物品無限使用。其中火堆和石頭營(yíng)火會(huì)無限燃燒,直到睡過帳篷或下地洞后熄滅。


點(diǎn)擊進(jìn)入3DMGAME《饑 荒》游戲論壇專區(qū)

友情提示:支持鍵盤左右鍵"←""→"翻頁(yè)
8.9
已有1190人評(píng)分 您還未評(píng)分!

玩家點(diǎn)評(píng) 0人參與,0條評(píng)論)

收藏
違法和不良信息舉報(bào)
分享:

熱門評(píng)論

全部評(píng)論

3DM自運(yùn)營(yíng)游戲推薦 更多+