Playing Cards: Difference between revisions

From PZwiki
m (→‎top: Replace "Infobox_normal" with "Infobox_item")
(added to infobox changes)
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|type=Default|version=Version 40|incver=5}}{{Infobox item
{{Languages}}{{Header|The Game World|Items|type=Default|version=Version 41|incver=78.16}}{{Infobox item
|display_name=Playing Cards
|display_name=Playing Cards
|model=CardDeck.png
|model= <!-- model image to go here: CardDeck_Model.png -->
|icon=CardDeck.png
|category=Junk
|weight=0.2
|weight=0.2
|primary_use=Draw a random card
|function=Draw a random card
|class_name=Base.CardDeck
|class_name=Base.CardDeck
}}'''Playing cards''' are a miscellaneous [[items|item]] with very little use.
}}'''Playing cards''' are a miscellaneous [[items|item]] with very little use.
Line 17: Line 19:
==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 CardDeck
<pre> item CardDeck
Weight = 0.2,
{
Type = Normal,
    DisplayCategory = Junk,
DisplayName = Playing Cards,
Weight = 0.2,
Icon = CardDeck,</pre>
Type = Normal,
DisplayName = Playing Cards,
Icon = CardDeck,
WorldStaticModel = CardDeck,
}
</pre>


==See also==
==See also==

Revision as of 06:44, 24 September 2023

The Game WorldItemsPlaying Cards
Playing Cards
[[File:||200px|class=pixelart]]
General
Category
Junk
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Function
Draw a random card
Technical
Item ID
Base.CardDeck

Playing cards are a miscellaneous item with very little use.

Usage

The only use of the playing cards is in using multiplayer commands. If the player has playing cards in their inventory, they can use the command /card, which will draw a random card (using the modern English deck format). The uses of this mechanic are up to the player's imagination.

Note that the playing cards cannot be used to improve the player's mood.

Distribution

Playing cards can be found in desks, wardrobes, library counters, or toy store shelves and in bars.

Code

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

	item CardDeck
	{
	    DisplayCategory = Junk,
		Weight	=	0.2,
		Type	=	Normal,
		DisplayName	=	Playing Cards,
		Icon	=	CardDeck,
		WorldStaticModel = CardDeck,
	}

See also