Dice: Difference between revisions

From PZwiki
m (→‎top: Replace "Infobox_normal" with "Infobox_item")
(→‎Code: code box update)
Line 19: Line 19:


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
item Dice
{{Retrieved|version=41|incver=78.16}}
{
<pre> item Dice
    DisplayCategory = Junk,
{
    Weight = 0.2,
    DisplayCategory = Junk,
    Type = Normal,
Weight = 0.2,
    DisplayName = Dice,
Type = Normal,
    Icon = Dice,
DisplayName = Dice,
    WorldStaticModel = Dice,
Icon = Dice,
}
WorldStaticModel = Dice,
}</pre>


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

Revision as of 08:36, 8 January 2024

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

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

Code

item Dice {

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

}

See also