《饥荒》地图全开MOD方法

时间:2013/05/02 14:47:08 编辑:Ocean

看到不少人求地图全开MOD,分享个方法,理论全版本通用,至少从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

  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

)

《饥荒》地图全开MOD方法

饥荒联机版
最新版下载 全版本下载 攻略教程 联机教程
饥荒新手攻略
食谱大全 BOSS打法 安家位置 联机教程 全人物详解
各季节必备物品 武器装备介绍 快速砍树方法 查看版本方法 所有材料介绍
饥荒热门攻略
击杀小偷方法 利用巨鹿方法 洞穴怪物详解 冒险速通攻略 脑残值补充方法
陷阱布置技巧 牦牛详细介绍 坎普斯背包出处 危险生物排名 新手百日入门
正版资料整理 装备道具汇总 蜘蛛巢穴养殖心得 存档位置介绍 增加生存时间方法
游戏聚合
  • 饥荒
  • Don't Starve
  • 游戏类型:动作冒险
  • 游戏大小:53.49 MB
  • 游戏语言:简体中文
  • 上市日期:2013-04-23
  • 标签: 刺激 战斗 穿越 解谜
9.3
  • 好玩

    2227+1
  • 不好玩

    342+1
相关攻略
相关游戏