明輝手游網(wǎng)唯一官網(wǎng):m.79things.com

本站App下載  |  

首頁 > 游戲資訊 > 單機游戲

饑荒背包如何修改_饑荒普通背包數(shù)據(jù)修改心得

作者:佚名   來源:本站   時間:2024-09-29  點擊:

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

下面是原始數(shù)據(jù):

for y = 0, 3 do

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

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

一、每列(豎)格數(shù)的修改

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

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

(數(shù)字可以是負數(shù),一下通用)

二、列數(shù)及列距修改

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,這個數(shù)字的正號代表下一列在位置參考列的右邊

三、行距

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

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

中-y*75的75代表行距

四、位置

這個位置雖然每一行數(shù)據(jù)都修改,但是都代表第一列的參考位置

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

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

-162代表水平位置,負是左,這個值一般不設(shè)正值,因為-50左右就是右邊邊界了

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

覺得我講的不清楚的可以直接看數(shù)據(jù)對應(yīng)圖片,理解起來應(yīng)該是十分容易的

數(shù)據(jù)

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

《饑荒》普通背包數(shù)據(jù)修改心得

饑荒海難 食譜大全
鯊魚翅湯 咖啡 海的味道 龍蝦正餐 龍蝦湯
香蕉凍 水母膠凍 酸橘汁腌魚 法式濃湯 加利福尼亞卷
饑荒海難 BOSS怪物
虎鯊boss打法視頻 冬季熊BOSS 虎鯊boss最佳擊殺 虎鯊代碼分享 --
饑荒海難 物品獲得方法
狼牙棒獲得方法 蝴蝶黃油獲得方法 樺木樹精利用方法 龍蝦抓方法 刷木頭方法
饑荒海難熱門推薦
新道具使用技巧 果醬蜜餞制作 Steam版MOD安裝 T鍵刷物品MOD 常用控制臺代碼
海難MOD使用方法 瓶子MOD使用方法 貝殼在哪里找 利用猴子的方法 馬達獲得方法
饑荒海難 mod推薦
制作齒輪MOD 麥麗素MOD 高清材質(zhì)包MOD 佐助人物MOD 月影刺客MOD

更多資訊

推薦游戲

換一換