骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
购买霸主CDKEY 购买战帆CDKEY
查看: 4446|回复: 3

[求助] 怎么修改物品栏容量啊,就是背包格子,有大哥会的吗

[复制链接]

1

主题

3

回帖

1

积分

平民

Rank: 1

UID
3818636
第纳尔
0
精华
0
互助
0
荣誉
0
贡献
0
魅力
0
注册时间
2025-10-27
鲜花(0) 鸡蛋(0)
发表于 2025-10-28 17:43:38 | 显示全部楼层 |阅读模式
战团版本1.174

29

主题

817

回帖

594

积分

骑士

Rank: 4Rank: 4

UID
3322408
第纳尔
1773
精华
0
互助
68
荣誉
0
贡献
0
魅力
16
注册时间
2022-2-3
鲜花(60) 鸡蛋(0)
发表于 2025-10-30 18:10:54 来自手机 | 显示全部楼层
要么多点物品管理,要么就只能整个界面换掉了。来自: Android客户端

5

主题

185

回帖

67

积分

扈从

Rank: 2Rank: 2

UID
1109837
第纳尔
735
精华
0
互助
2
荣誉
0
贡献
0
魅力
1
注册时间
2012-12-8
鲜花(4) 鸡蛋(0)
发表于 2025-12-29 10:37:51 | 显示全部楼层
只能mod大佬制作一个扎营里面可以打开无限宝箱的功能了,物品栏那个是设计定了的,无法改

1

主题

31

回帖

10

积分

随仆

Rank: 1

UID
3840361
第纳尔
0
精华
0
互助
0
荣誉
0
贡献
0
魅力
0
注册时间
2026-1-13
鲜花(0) 鸡蛋(0)
发表于 2026-1-14 19:24:18 | 显示全部楼层
If YOU are the modder this is done indirectly:
  at header_operations.py  notice  
(troop_get_inventory_capacity, <destination>, <troop_id>),
  and
(store_free_inventory_capacity, <destination>, [troop_id]),

  These are indirectly linked to skill "inventory_management"     which gives 6 per skill point plus a base of 30
    the first 10 inventory slots are items you wear or equip, your horse, and an optional food slot, meaning effectively 20 + (6*inventory management)

   notice   header_items.py   sets a maximum inventory count     max_inventory_items
This is important because if troops all are assumed to have an inventory this number sets the number of inventory slots to reserve at every troop line - and you may have 1000s of troops defined.

  I like the suggestion of "unlimited chests" but every chest needs to be defined in module_troops, and changing the troops defined will blow away the savegame (been, did that).  So best to add the chests early, before anyone wants to keep the savegame they are building, especially if they are not using my Phantasy Calradia (2024) lua assisted intermediate export to skip past save game breaking changes at mods.

  Other than this, you could also silently pump all your troops (or just the player) with a boost to inventory management skill.
look up the skill id at   ID_skills.py  after your last compile and see which skill number to use.  
then for example
  (troop_raise_skill, "trp_player", skl_inventory_management, 4),
I usually place a menu option such as  "Lua test 1"  to manually run some one off script fragment like that that I can call later from in the game  under the camp menu (and probably several menus under that as menus are limited to 15 choices maximum by Warband)
and at module_scripts.py   add a simple script like
("mysimple_script_35", [
     (troop_raise_skill, "trp_player", skl_inventory_management, 4),
]),

  and I am off with 20 more inventory slots per press of that menu item, except once I hit the maximum I defined any others get clipped.  You should make SURE they get clipped so you don't overflow your inventory items and walk all over the rest of your savegame, by the way.  Ooops!

  But I digress.
  Enjoy modding - once you start, you will never see reality the same way (or at least you start appreciating "life" a little more once you see how difficult it is to be "God" for a few minutes).   I suck at it, but don't tell anyone -- we all do.  That's why mods need more people as they get more complex.

  - GS
您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2026-2-1 22:47 , Processed in 0.083433 second(s), 24 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表