Playing Cards: Difference between revisions

From PZwiki
(+3d model request tag)
(Added model. Added CodeBox.)
Line 1: Line 1:
{{Languages}}
{{Languages}}
{{Header|The Game World|Items|type=Default|version=Version 41|incver=78.16}}
{{Header|The Game World|Items|type=Default|version=Version 41|incver=78.16}}
{{Reupload}} <!-- Needs model image in infobox along with variants in a <gallery> section-->
{{Infobox item
{{Infobox item
|display_name=Playing Cards
|display_name=Playing Cards
|model= <!-- model image to go here: CardDeck_Model.png -->
|model=CardDeck_Model.png
|icon=CardDeck.png
|icon=CardDeck.png
|category=Junk
|category=Junk
Line 22: Line 21:


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox |
{{Retrieved|version=41|incver=78.16}}
===Item===
<pre>
[[File:CardDeck.png]] {{ID|Base.CardDeck}}<br>
item CardDeck
{{CodeSnip
{
  | lang = java
    DisplayCategory = Junk,
  | line = true
Weight = 0.2,
  | start = 1746
Type = Normal,
  | source = newitems.txt
DisplayName = Playing Cards,
  | retrieved = true
Icon = CardDeck,
  | version = 41
WorldStaticModel = CardDeck,
  | incver = 78.16
}
  | date = 1 jan 2024
</pre>
  | code =
item CardDeck
{
DisplayCategory = Junk,
Weight = 0.2,
Type = Normal,
DisplayName = Playing Cards,
Icon = CardDeck,
WorldStaticModel = CardDeck,
}
}}
}}


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

Revision as of 15:28, 1 January 2024

The Game WorldItemsPlaying Cards
Playing Cards
CardDeck Model.png
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

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

Item

CardDeck.png Base.CardDeck
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16 (1 January 2024)
item CardDeck
{
	DisplayCategory = Junk,
	Weight	=	0.2,
	Type	=	Normal,
	DisplayName	=	Playing Cards,
	Icon	=	CardDeck,
	WorldStaticModel = CardDeck,
}

See also