原地址:https://hub.sp-tarkov.com/files/file/1010-enhanced-loot-bags-api/#overview
Replaces default “openRandomLootContainer” function to allow for more in depth customization of loot bag/container loot and its amount.
替换了原版”openRandomLootContainer”增加了深度编辑各种容器的选择。
各位大佬不要再摸鱼了,我希望明早起来就看到大家的盲盒作业。
求求了,求求了。孩子最喜欢抽奖了。
Explanation of new data format for modders
3.5.0正式版新格式解释(后面内容懂得都懂不翻译了)
You need to load your loot bag loot info into AKI's inventory config under randomLootContainer, DO IT VIA MODS ONLY, TAKE A LOOK AT MOD EXAMPLES IF YOU DON'T KNOW HOW
Don't forget to make sure your loot bag item has random container parent ID in the item database
customReward entry is required and should always be true
You can have multiple loot pools with different set of loot that you can receive in a single loot bag
nValue is a rarity system, with 1 being fully random and values higher making valuable loot rarer
举一个栗子
再举一个栗子:http://jsfiddle.net/e08cumyx/
6666666666666666666
没看懂加一
我是憨批,昨天忘记传附件了。。。
这个是干嘛用的