Playing Cards: Difference between revisions

From PZwiki
(Updated info, added new infobox and header)
m (Automated Formatting)
(31 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{languages|Playing Cards}}
{{Header|Project Zomboid|Items|Miscellaneous items|Junk}}
{{header|The Game World|Items|type=Default|version=Version 40|incver=5}}{{Infobox normal
{{Page version|41.78.16}}
|display_name = Playing Cards
{{Infobox item
|image = CardDeck.png
|name=Playing Cards
|weight = 0.2
|model=CardDeck_Model.png
|primary_use = Draw a random card
|icon=CardDeck.png
|class_name = Base.CardDeck
|category=Junk
}}'''Playing cards''' are a miscellaneous [[items|item]] with very little use.
|weight=0.2
|function=Draw a random card
|item_id=Base.CardDeck
}}
'''Playing cards''' are a miscellaneous [[Items|item]] with very little use.


==Usage==
==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 <code>/card</code>, which will draw a random card (using the modern English deck format). The uses of this mechanic are up to the player's imagination.  
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 <code>/card</code>, 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 [[moodles|mood]].
Note that the playing cards cannot be used to improve the player's [[moodles|mood]].


==Distribution==
==Distribution==
Playing cards can be found in [[Containers#Desks|desks]], [[Containers#Bedroom Storage|wardrobes]], library [[Containers#Counters|counters]], or toy store [[Containers#Shelves|shelves]].
The loot distributions can be found in the table(s) below.


== Code ==
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
! colspan="4" | Containers
{{Retrieved|version=40|incver=5}}
|-
<pre> item CardDeck
! Building/Room
Weight = 0.2,
! Container
Type = Normal,
! style="width: 3.2em;" | Rolls
DisplayName = Playing Cards,
! style="width: 3.2em;" | Chance
Icon = CardDeck,</pre>
|-
|bar
|[[counter]]
|4
|6
|-
|rowspan="3"|bedroom
|[[desk]]
|4
|1
|-
|[[desk]]
|4
|1
|-
|[[wardrobe]]
|4
|2
|-
|rowspan="3"|closet
|[[crate]]
|4
|8
|-
|[[crate]]
|4
|8
|-
|[[crate]]
|4
|8
|-
|garagestorage
|[[crate]]
|4
|1
|-
|generalstore
|[[shelves]]
|4
|8
|-
|office
|[[desk]]
|4
|1
|}
 
==Code==
{{CodeBox |
 
===Item===
[[File:CardDeck.png]] {{ID|Base.CardDeck}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 1746
  | source = newitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item CardDeck
{
    DisplayCategory = Junk,
Weight = 0.2,
Type = Normal,
DisplayName = Playing Cards,
Icon = CardDeck,
WorldStaticModel = CardDeck,
}
}}
}}


==See also==
==See also==
*[[Dice]]
*[[Dice]]
 
{{Navbox items|junk}}
[[Category:items]]

Revision as of 11:06, 14 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
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

The loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
bar counter 4 6
bedroom desk 4 1
desk 4 1
wardrobe 4 2
closet crate 4 8
crate 4 8
crate 4 8
garagestorage crate 4 1
generalstore shelves 4 8
office desk 4 1

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
item CardDeck
	{
	    DisplayCategory = Junk,
		Weight	=	0.2,
		Type	=	Normal,
		DisplayName	=	Playing Cards,
		Icon	=	CardDeck,
		WorldStaticModel = CardDeck,
	}

See also