Dice

From PZwiki
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.

Dice distribution Show / Hide
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.
Containers
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

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