Dice: Difference between revisions

From PZwiki
(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:
{{Notice|Future}}
{{Header|Project Zomboid|Items|Miscellaneous items|Junk}}
{{Notice|Improve}}
{{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
}}


<!--this section is for the infobox which will be positioned on the right of the page. Image.png is the default question mark image-->
'''Dice''' are a miscellaneous [[Items|item]] with very little use.
{{Items
|image = Dice.png
|weight = 0.2
}} <!--/infobox-->


A pair of dice. Not currently useable (2.9.10)
==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==
== Crafting ==
The loot distributions can be found in the table(s) below.


ITEM NAME can be used in the following recipes:
{| 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" width="550" style="text-align:center;"
|-
! 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
|-
|-
! Ingredients || Other Items || Output || Description
|[[crate]]
|4
|8
|-
|-
| Ingredient + [[Ingredient]] || None || [[What the recipe makes]] || Brief description of what it makes.
|generalstore
|[[shelves]]  
|4
|8
|}
|}
-->


[[Category:items]]
==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

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Dice
Dice Model.png
General
Category
Junk
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Function
Roll a random number
Technical
Item ID
Base.Dice

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

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Dice
	{
	    DisplayCategory = Junk,
		Weight	=	0.2,
		Type	=	Normal,
		DisplayName	=	Dice,
		Icon	=	Dice,
		WorldStaticModel = Dice,
	}

See also

Template:Navbox miscellaneous items