Dice: Difference between revisions
(Created page with "{{Notice|Future}} {{Notice|Improve}} <!--this section is for the infobox which will be positioned on the right of the page. Image.png is the default question mark image--> {{Ite...") |
m (Automated CodeBox update) |
||
(31 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Miscellaneous items|Junk}} | ||
{{ | {{Page version|41.78.16}} | ||
{{Infobox item | |||
|name=Dice | |||
|model=Dice_Model.png | |||
|model_width=200px | |||
|icon=Dice.png | |||
|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== | |||
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 <code>/roll #</code>, where <code>#</code> 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 [[wikipedia:Yahtzee|Yahtzee]], although it should be noted that this will ''not'' award the player with any [[Moodles|mood]] benefits. | |||
==Distribution== | |||
== | The loot distributions can be found in the table(s) below. | ||
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;" | |||
! colspan="4" | Containers | |||
{| class="wikitable" | |- | ||
! Building/Room | |||
! Container | |||
! style="width: 3.2em;" | Rolls | |||
! style="width: 3.2em;" | Chance | |||
|- | |||
|bar | |||
|[[counter]] | |||
|4 | |||
|6 | |||
|- | |||
|rowspan="3"|closet | |||
|[[crate]] | |||
|4 | |||
|8 | |||
|- | |||
|[[crate]] | |||
|4 | |||
|8 | |||
|- | |- | ||
|[[crate]] | |||
|4 | |||
|8 | |||
|- | |- | ||
| | |generalstore | ||
|[[shelves]] | |||
|4 | |||
|8 | |||
|} | |} | ||
[[ | ==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== | |||
*[[Playing Cards]] | |||
{{Navbox miscellaneous items|junk}} |
Revision as of 10:33, 26 March 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.
Containers | |||
---|---|---|---|
Building/Room | Container | Rolls | Chance |
bar | counter | 4 | 6 |
closet | crate | 4 | 8 |
crate | 4 | 8 | |
crate | 4 | 8 | |
generalstore | shelves | 4 | 8 |
Code
Source: ProjectZomboid\media\scripts\newitems.txt
item Dice
{
DisplayCategory = Junk,
Weight = 0.2,
Type = Normal,
DisplayName = Dice,
Icon = Dice,
WorldStaticModel = Dice,
}