Dice: Difference between revisions

From PZwiki
m (Remove 120px, minor fixes)
(added model to infobox + update to 41.78.16 (assuming function is unchanged))
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|type=Default|version=Version 40|incver=5}}{{Infobox normal
{{Languages}}{{Header|The Game World|Items|type=Default|version=Version 41|incver=78.16}}{{Infobox normal
|display_name = Dice
|display_name = Dice
|image = Dice.png
|image = Dice_Model.png
|image_width=200px
|alternate_image=Dice.png
|alternate_name=Dice
|alternate_link=
|category=Junk
|weight = 0.2
|weight = 0.2
|primary_use = Roll a random number
|function = Roll a random number
|class_name = Base.Dice
|class_name = Base.Dice
}}'''Dice''' are a miscellaneous [[items|item]] with very little use.
}}'''Dice''' are a miscellaneous [[items|item]] with very little use.
Line 15: Line 20:
==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=5}}
{{Retrieved|version=41|incver=78.16}}
<pre> item Dice
<pre> item Dice
Weight = 0.2,
{
Type = Normal,
    DisplayCategory = Junk,
DisplayName = Dice,
Weight = 0.2,
Icon = Dice,</pre>
Type = Normal,
DisplayName = Dice,
Icon = Dice,
WorldStaticModel = Dice,
}</pre>


==See also==
==See also==
*[[Playing Cards]]
*[[Playing Cards]]

Revision as of 08:15, 25 June 2023

Dice
Dice
Dice
General
Category Junk
Encumbrance
Heavy Load
0.2
Function Roll a random number
Technical details
Base 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

Dice can only be found in a vehicle's glove box.

Code

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.78.16

	item Dice
	{
	    DisplayCategory = Junk,
		Weight	=	0.2,
		Type	=	Normal,
		DisplayName	=	Dice,
		Icon	=	Dice,
		WorldStaticModel = Dice,
	}

See also