Dice: Difference between revisions
mNo edit summary |
(Update distribution file) |
||
(28 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Miscellaneous items|Junk}} | ||
{{ | {{Page version|41.78.16}} | ||
| | {{Infobox item | ||
| | |name=Dice | ||
|weight = 0.2 | |model=Dice_Model.png | ||
| | |model_width=200px | ||
| | |icon=Dice.png | ||
}}'''Dice''' are a miscellaneous [[ | |icon_name=Dice | ||
|category=Junk | |||
|weight=0.2 | |||
|function=Roll a random number | |||
|item_id=Base.Dice | |||
}} | |||
'''Dice''' are a miscellaneous [[Items|item]] with very little use. | |||
==Usage== | ==Usage== | ||
Line 12: | Line 18: | ||
==Distribution== | ==Distribution== | ||
The loot distributions can be found in the table(s) below. | |||
== | <!--BOT FLAG|Dice|41.78.16--> | ||
{{Clear}} | |||
{{ | <div class="togglebox theme-red"> | ||
< | <div>Dice distribution | ||
Weight | <span class="mw-customtoggle-togglebox-Dice" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div> | ||
Type | <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Dice"> | ||
DisplayName = Dice, | Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits. <div class="toggle-content"> | ||
Icon | <div class="pz-container"> | ||
<div id="containers" style="flex-basis:30%"> | |||
{| class="wikitable theme-red" style="margin-right: 15px; width: 95%;" | |||
|+ {{ll|Containers}} | |||
! Building/Room | |||
! Container | |||
! Effective chance | |||
|- | |||
| bar | |||
| {{ll|counter}} | |||
| 15.1% | |||
|- | |||
| barkitchen | |||
| {{ll|counter}} | |||
| 15.1% | |||
|- | |||
| barstorage | |||
| {{ll|counter}} | |||
| 15.1% | |||
|- | |||
| beergarden | |||
| {{ll|counter}} | |||
| 15.1% | |||
|- | |||
| closet | |||
| {{ll|crate}} | |||
| 19.27% | |||
|- | |||
| garagestorage | |||
| {{ll|crate}} | |||
| 19.27% | |||
|- | |||
| generalstore | |||
| {{ll|shelves}} | |||
| 19.27% | |||
|- | |||
| generalstorestorage | |||
| {{ll|shelves}} | |||
| 19.27% | |||
|- | |||
| giftstorage | |||
| {{ll|crate}} | |||
| 19.27% | |||
|- | |||
| giftstore | |||
| {{ll|counter}} | |||
| 19.27% | |||
|- | |||
| giftstore | |||
| {{ll|shelves}} | |||
| 19.27% | |||
|- | |||
| gigamart | |||
| {{ll|shelves}} | |||
| 19.27% | |||
|- | |||
| livingroom | |||
| {{ll|wardrobe}} | |||
| 19.27% | |||
|- | |||
| storageunit | |||
| {{ll|crate}} | |||
| 19.27% | |||
|- | |||
| toystore | |||
| {{ll|counter}} | |||
| 19.27% | |||
|- | |||
| toystore | |||
| {{ll|shelves}} | |||
| 19.27% | |||
|- | |||
| toystorestorage | |||
| {{ll|crate}} | |||
| 19.27% | |||
|- | |||
| toystorestorage | |||
| {{ll|shelves}} | |||
| 19.27% | |||
|} | |||
</div> | |||
</div><div style="clear: both;"></div> | |||
</div></div><div class="toggle large mw-customtoggle-togglebox-Dice" title="{{int:show}}/{{int:hide}}"></div></div> | |||
<!--END BOT FLAG|Dice|41.78.16--> | |||
==Code== | |||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = true | |||
| start = 1766 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item Dice | |||
{ | |||
DisplayCategory = Junk, | |||
Weight = 0.2, | |||
Type = Normal, | |||
DisplayName = Dice, | |||
Icon = Dice, | |||
WorldStaticModel = Dice, | |||
} | |||
}} | |||
}} | |||
==See also== | ==See also== | ||
*[[Playing Cards]] | *[[Playing Cards]] | ||
{{Navbox items|junk}} |
Latest revision as of 12:35, 30 April 2024
Dice are a miscellaneous item with very little use.
Usage
The only use of the dice is in using multiplayer commands. If the player has a dice in their inventory, they can use the command /roll #
, where #
is a number up to 100. This can be used as a random number generator by hardcore role-players to, for example, decide who will perform a particular task. Otherwise it can be used in conjunction with a pencil and notepad to play games such as Yahtzee, although it should be noted that this will not award the player with any mood benefits.
Distribution
The loot distributions can be found in the table(s) below.
Building/Room | Container | Effective chance |
---|---|---|
bar | counter | 15.1% |
barkitchen | counter | 15.1% |
barstorage | counter | 15.1% |
beergarden | counter | 15.1% |
closet | crate | 19.27% |
garagestorage | crate | 19.27% |
generalstore | shelves | 19.27% |
generalstorestorage | shelves | 19.27% |
giftstorage | crate | 19.27% |
giftstore | counter | 19.27% |
giftstore | shelves | 19.27% |
gigamart | shelves | 19.27% |
livingroom | wardrobe | 19.27% |
storageunit | crate | 19.27% |
toystore | counter | 19.27% |
toystore | shelves | 19.27% |
toystorestorage | crate | 19.27% |
toystorestorage | shelves | 19.27% |
Code
Source: ProjectZomboid\media\scripts\newitems.txt
item Dice
{
DisplayCategory = Junk,
Weight = 0.2,
Type = Normal,
DisplayName = Dice,
Icon = Dice,
WorldStaticModel = Dice,
}