Project Zomboid

Project Zomboid

65 ratings
Loot Box - Making probabilistic items
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
131.184 KB
15 Jul, 2022 @ 1:10pm
17 Jul, 2022 @ 9:28am
2 Change Notes ( view )

Subscribe to download
Loot Box - Making probabilistic items

In 1 collection by 서논(Sunon)
Sunon's Collection
3 items
Description

This is a mod to create a box that randomly acquires items with a certain probability.


There are 4 loot boxes in the form of items.

The item.id of each box is
lootBox.lootBox_Random
lootBox.lootBox_Bronze
lootBox.lootBox_Silver
lootBox.lootBox_Gold


You can easily specify which items will appear in the sandbox settings.
The rule is "item.id/naturalNumber/item.id/naturalNumber..."
A natural number is a value to control the probability.
The concept is to put as many items as the input natural number into the box and take out one of them.
For example, if you enter "Base.Axe/999/Base.Crowbar/1"
When you open the box, there is a chance of "Axe 99.9%" and "Crowbar 0.1%".

By default, if you open "Loot Box(Random)"

"Loot Box(Bronze) 60%", "Loot Box(Silver) 30%", "Loot Box(Gold) 10%"
You get one of them, and in each box, a rare melee weapon that matches the grade will appear randomly.

Also, there is no path to obtain the loot box item in this mode other than taking it out with the admin.


https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2832260390
If you use this mod to set that chest to appear, you have a chance to get it from zombies.


https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2825127488
This mod allows you to directly specify the timeframes in which zombies can acquire.

It also supports real-time control. It recognizes sandbox settings changed every 10 minutes for game time and applies them in real time.

! Copy or modify this mode arbitrarily or
It cannot be added to the server pack.

[toon.at]
Donate (helps maintain and update the mod)

Workshop ID: 2835681621
Mod ID: LootBox
42 Comments
七夜向日葵 4 Jun @ 10:51pm 
Hello, can you add a function to get the number of items?
Solo Leveling 26 Mar @ 8:35pm 
혹시 빌드 42와도 호환이 되는지 궁금합니다.
700$ For Desert Eagle 30 Jan @ 10:21am 
It is possible to add vehicle into the loot box?
서논(Sunon)  [author] 28 Nov, 2024 @ 2:08pm 
@XiaZia
Thank you for your report.
XiaZia 26 Nov, 2024 @ 4:02pm 
@서논(Sunon) a user named "Franek" has completely copied your mod.
BOKHAK14 16 Nov, 2024 @ 4:46am 
0.1보다 더 낮은 확률 설정이 가능한가요?
서논(Sunon)  [author] 30 Sep, 2024 @ 4:42pm 
@G.Scvanger
이 모드는 기본적으로 드랍되는 아이템은 아니고
설명란에 기입된 것과 같이 디버그 상태 및 치트 상태에서
아이템을 소환 하시거나 설명에 기입된
좀비 드랍 모드를 활용해서 나오게 해야합니다.

굳이 기본적으로 드랍되지 않게한 이유는
이 모드는 멀티 서버를 위한 모드라서 그렇습니다.
(우측에 통계를 보시면 서버에서 구독하기 떄문에
구독자 수가 방문 수 보다 많은 것을 볼 수 있죠.)

본문을 자세 확인한 후 다시 시도해보시기 바랍니다.
G.Scvanger 28 Sep, 2024 @ 5:28pm 
방금, 본 애드온을 적용하여 사용해봤는데 싱글모드에서 별 짓을 다했는데 랜덤박스가 등장하지 않았습니다. 설명에 나와있는 그대로 했음에도 랜덤 박스가 적용되지 않았습니다. 코드를 다시 확인해 주시겠습니까?
서논(Sunon)  [author] 5 Sep, 2024 @ 7:43am 
@Piang
Yes, you can add it by entering the ID of the mod item in the sandbox menu.
If you want to know the item ID, I personally recommend using debug mode to find the ID of the mod item or opening the item script directly.
Peachy 5 Sep, 2024 @ 4:36am 
is it possible to add modded items?
like i want to add ammo and gun from brita's weapon pack