软件风向标,重度软件行业发展门户!

文章更新 | 热门文章
您的位置: 首页  →  攻略 → 《饥荒普通背包数据修改心得攻略 背包如何修改

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

2023-06-12 17:11:25      小编:      我要评论

  首先是大家都知道的,文件位置: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

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

背包[共1081款]

饥荒[共3385款]

心得[共14750款]

普通[共1178款]

  • 发表评论
资讯排行 资讯中心 热门专区 软件评测
软件排行榜 软件攻略 软件下载 软件开测表
软件排行榜 软件礼包 软件下载 新软件测表
安卓排行榜 软件视频 软件下载
苹果排行榜