求大神新17版小地图全开的方法最好能像以前一样不要加MOD修改游戏文件。
MOD极度影响平衡,只要能小地图全开就行,以前16版游戏自带的ctrl+1开地图非常方便,别的都不想要。谢谢了问心地说一句,本身生存模式后就是冒险模式,那是跑图找零件,开全地图开启比一般MOD都要影响游戏乐趣,而且那代码加入法还可以让你瞬间移动。 打开dont_starve\data\scripts\main.lua
ModManager: LoadMods()——这一行前面)添加以下代码,保存,进游戏后ctrl+1地图全开,ctrl+2瞬移到鼠标所在位置。
--地图全开
TheInput:AddKeyUpHandler(KEY_1, function()
if TheInput:IsKeyDown(KEY_CTRL) then
local MainCharacter = TheSim:FindFirstEntityWithTag("player")
local map = TheSim:FindFirstEntityWithTag("minimap")
if MainCharacter and map then
local x, y, z = MainCharacter.Transform:GetWorldPosition()
map.MiniMap:ShowArea(x, y, z, 10000)
end
end
end
);
--传送
TheInput:AddKeyUpHandler(KEY_2, function()
if TheInput:IsKeyDown(KEY_CTRL) then
local player = TheSim:FindFirstEntityWithTag("player");
player.Transform:SetPosition(TheInput:GetMouseWorldPos():Get())
end
end
)
最好别用
页:
[1]