怎样修改饥荒的actions文件
发布网友
发布时间:2022-04-22 09:42
我来回答
共2个回答
热心网友
时间:2023-10-09 04:12
1.主角自动回血
用记事本打开游戏目录\data\DLC0001\scripts\prefabs\player_common.lua文件,在inst.components.health:SetMaxHealth(TUNING.WILSON_HEALTH)的下一行插入以下内容:
inst.components.health:StartRegen(30, 10)
即可让主角自动回血,其中30为血量,10为10秒回血一次,可自行调整
2.
主角自动回复san
用记事本打开游戏目录\data\DLC0001\scripts\tuning.lua文件,将下列内容:
SANITY_DAY_GAIN = 0,--100/(day_time*32),
SANITY_NIGHT_LIGHT = -100/(night_time*20),
SANITY_NIGHT_MID = -100/(night_time*20),
SANITY_NIGHT_DARK = -100/(night_time*2),
替换为:
SANITY_DAY_GAIN = 100/(day_time),
SANITY_NIGHT_LIGHT = 100/(night_time),
SANITY_NIGHT_MID = 100/(night_time),
SANITY_NIGHT_DARK = 100/(night_time),
3.
1.用记事本打开游戏目录\data\scripts\prefabs\axe.lua文件,将inst.components.tool:SetAction(ACTIONS.CHOP)替换为inst.components.tool:SetAction(ACTIONS.CHOP, 15)
2.用记事本打开游戏目录\data\scripts\prefabs\pickaxe.lua文件,将inst.components.tool:SetAction(ACTIONS.MINE)替换为inst.components.tool:SetAction(ACTIONS.MINE, 15)
即可一斧砍倒一棵树、一镐开掉一块石
4.
砍树掉落
用记事本打开游戏目录\data\DLC0001\scripts\prefabs\evergreens.lua文件,
1.将下列内容:
normal_loot = {"log", "log", "pinecone"},
short_loot = {"log"},
tall_loot = {"log", "log", "log", "pinecone", "pinecone"},
替换为:
normal_loot = {"log", "log", "log", "log", "log", "log", "pinecone"},
short_loot = {"log", "log", "log"},
tall_loot = {"log", "log", "log", "log", "log", "log", "log", "log", "log", "pinecone", "pinecone"},
2.将下列内容:
normal_loot = {"log","log"},
short_loot = {"log"},
tall_loot = {"log", "log","log"},
替换为:
normal_loot = {"log","log","log","log", "log", "log"},
short_loot = {"log","log", "log"},
tall_loot = {"log", "log","log","log","log","log", "log", "log", "log"},
5.
用记事本打开游戏目录\data\DLC0001\scripts\prefabs\player_common.lua文件,在inst:AddComponent("resurrectable")下一行插入以下内容:
TheInput:AddKeyUpHandler(KEY_1, function()
if TheInput:IsKeyDown(KEY_CTRL) then
local map = TheSim:FindFirstEntityWithTag("minimap")
local x,y,z = GetPlayer().Transform:GetWorldPosition()
map.MiniMap:ShowArea(x, y, z, 10000)
end
end)
即可在游戏中按Ctrl + 1使地图全开
热心网友
时间:2023-10-09 04:12
雨i风度人过分挺好v