《饑荒》揹包資料修改方法

發佈日期

饑荒揹包資料修改方法,玩家在遊戲中有沒有感覺揹包不夠用,其實只需要修改一些簡單的揹包資料,那麼在遊戲中怎麼修改揹包資料呢?就隨著筆者一起來看看饑荒揹包資料修改方法。

首先是大家都知道的,檔案位置:dataDLC0001scriptsprefabsackpack.lua,不開DLC則是data scriptsprefabsackpack.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代表垂直位置,正是上負是下。

覺得我講的不清楚的可以直接看資料對應圖片,理解起來應該是十分容易的

資料

fory=1,3do

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

相關攻略文章

最新攻略