更多
网页游戏
当前位置:攻略首页 > 单机游戏攻略 > 饥荒 > 正文

《饥荒》普通背包数据修改心得攻略 背包如何修改

2014-12-25 10:14:11 冒险游戏AVG 人气值:加载中...

  首先是大家都知道的,文件位置:data\DLC0001\scripts\prefabs\backpack.lua,不开DLC则是data\scripts\prefabs\backpack.lua

  下面是原始数据:

for y = 0, 3 do

table.insert(slotpos,Vector3(-162, -y*75 + 114 ,0))

table.insert(slotpos,Vector3(-162 +75, -y*75 + 114 ,0))

  一、每列(竖)格数的修改

for y = 0, 3 do 代表 3+1-0=4格

for y = 1, 5 do 代表 5+1-1=5格

(数字可以是负数,一下通用)

  二、列数及列距修改

table.insert(slotpos, Vector3(-162, -y*75 +114 ,0))

table.insert(slotpos, Vector3(-162 +75,-y*75 + 114 ,0))

  代表两列

table.insert(slotpos, Vector3(-162, -y*75 +114 ,0))

table.insert(slotpos, Vector3(-162 +75,-y*75 + 114 ,0))

table.insert(slotpos, Vector3(-162 +150,-y*75 + 114 ,0))

table.insert(slotpos, Vector3(-162 +225,-y*75 + 114 ,0))

代表四列,几列就几行,列距是+75,这个数字的正号代表下一列在位置参考列的右边

  三、行距

table.insert(slotpos, Vector3(-162, -y*75 +114 ,0))

table.insert(slotpos, Vector3(-162 +75,-y*75 + 114 ,0))

  中-y*75的75代表行距

  四、位置

  这个位置虽然每一行数据都修改,但是都代表第一列的参考位置

table.insert(slotpos, Vector3(-162, -y*75 +114 ,0))

table.insert(slotpos, Vector3(-162 +75,-y*75 + 114 ,0))

  -162代表水平位置,负是左,这个值一般不设正值,因为-50左右就是右边边界了

  + 114代表垂直位置,正是上负是下。

  觉得我讲的不清楚的可以直接看数据对应图片,理解起来应该是十分容易的

  数据

for y = 1, 3 do

table.insert(slotpos, Vector3(-600, -y*78 + 100 ,0))

table.insert(slotpos, Vector3(-600 -75, -y*78 + 200 ,0))

table.insert(slotpos, Vector3(-600 -150, -y*78 + 300 ,0))

table.insert(slotpos, Vector3(-600 -225, -y*78 + 400 ,0))

table.insert(slotpos, Vector3(-600 -300, -y*78 + -100 ,0))

table.insert(slotpos, Vector3(-600 -375, -y*78 + -200 ,0))

table.insert(slotpos, Vector3(-600 -450, -y*50 + 100 ,0))

table.insert(slotpos, Vector3(-600 -525, -y*50 + 100 ,0))

table.insert(slotpos, Vector3(-600 -600, -y*100 + 200 ,0))

table.insert(slotpos, Vector3(-600 -675, -y*100 + 200 ,0))

end

游侠网

更多相关资讯请关注:饥荒专题

查看饥荒攻略大全

分享至
扫描关注游侠网
饥荒Don’t Starve
上市时间:2013年04月23日
游戏平台:PC PS4
游戏类型:冒险游戏AVG
制作公司:Klei Entertainment Inc.
游戏语言:英文,日文,中文
发行公司:Klei Entertainment
单人单机2D画面支持手柄中级水平不支持VR
关于游侠 | 广告合作 | 人才招聘 | 联系我们 | 网站地图 | 投诉建议 | 版权保护投诉指引
CopyRight © 1999-2023 ALi213.Net All Right Reserved 游侠网 版权所有 | 苏ICP备2023007791号