看到很多人要求饥荒地图的全开方法,蟹吗?我想和大家分享一个方法。理论全版通用,至少适用于4.10开始后的中英文版。
在游戏中找到main.lua,地址在dont__starve\data\scripts,打开记事本,拖到最后一行(即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 endend);
--TheInput传输:AddKeyUpHandler(KEY_2, function() if TheInput:IsKeyDown(KEY_CTRL) then local player = TheSim:FindFirstEntityWithTag("player"); player.Transform:SetPosition(TheInput:GetMouseWorldPos():Get()) endend)
以上是螃蟹带来的饥荒地图全开的方法。我希望它能帮助你。如果您有任何问题,欢迎您向勤劳能干的螃蟹提问!