Sleeping Tablets: Difference between revisions

From PZwiki
m (character→player)
m (Distribution table fix)
 
(4 intermediate revisions by the same user not shown)
Line 15: Line 15:


==Usage==
==Usage==
Sleeping tablets are used to induce [[Tired|drowsiness]], allowing the player to sleep earlier, therefore getting them into a different [[sleep]]ing schedule. They are more useful when the player is [[Pain|in pain]] or [[Anxious|anxious]], as sleeping pills will allow them to fall asleep regardless of their level of pain or anxiety.
Sleeping tablets are used to induce [[Tired|drowsiness]], allowing the player to sleep earlier, therefore getting them into a different [[sleep]]ing schedule. They are more useful when the player is [[Pain|in pain]] or [[anxious]], as sleeping pills will allow them to fall asleep regardless of their level of pain or anxiety.
Each packet can be used 10 times before exhausting them.
Each packet can be used 10 times before exhausting them.


Line 29: Line 29:


===Death===
===Death===
It is possible to overdose on sleeping tablets, being [[Drunk|drunk]] reduces the number of tablets required to do that. Therefore, they should be used with care:
It is possible to overdose on sleeping tablets, being [[drunk]] reduces the number of tablets required to do that. Therefore, they should be used with care:
*Sober
*Sober
**Taking 10 tablets will cripple player's health by 40%.
**Taking 10 tablets will cripple player's health by 40%.
Line 42: Line 42:
The loot distributions can be found in the table(s) below.
The loot distributions can be found in the table(s) below.


{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
<!--BOT FLAG|PillsSleepingTablets|41.78.16-->
! colspan="4" | Containers
{{Clear}}
|-
<div class="togglebox theme-red">
! Building/Room
    <div>PillsSleepingTablets distribution
! Container
        <span class="mw-customtoggle-togglebox-PillsSleepingTablets" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
! style="width: 3.2em;" | Rolls
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-PillsSleepingTablets">
! style="width: 3.2em;" | Chance
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
|-
<div class="pz-container">
|MedicalCache1
<div id="containers" style="flex-basis:30%">
|[[MedicalBox]]
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
|4
    |+ {{ll|Containers}}
|1
    ! Building/Room
|-
    ! Container
|all
    ! Effective chance
|[[militarycrate]]
    |-
|4
    | Bag_DoctorBag
|2
    | {{ll|Bag_DoctorBag}}
|-
    | 6.41%
|rowspan="3"|bathroom
    |-
|[[counter]]
    | Bag_MedicalBag
|4
    | {{ll|Bag_MedicalBag}}
|1
    | 12.41%
|-
    |-
|[[medicine]]
    | MedicalCache1
|4
    | {{ll|MedicalBox}}
|1
    | 23.28%
|-
    |-
|[[shelves]]
    | Nurse
|4
    | {{ll|crate}}
|1
    | 23.28%
|-
    |-
|rowspan="2"|bedroom
    | Nurse
|[[dresser]]
    | {{ll|crate}}
|4
    | 41.14%
|1
    |-
|-
    | Nurse
|[[sidetable]]
    | {{ll|metal_shelves}}
|4
    | 23.28%
|2
    |-
|-
    | Nurse
|rowspan="2"|dentiststorage
    | {{ll|metal_shelves}}
|[[metal_shelves]]
    | 41.14%
|4
    |-
|1
    | SafehouseLoot
|-
    | {{ll|counter}}
|[[metal_shelves]]
    | 23.28%
|4
    |-
|2
    | SafehouseLoot
|-
    | {{ll|medicine}}
|rowspan="2"|kennels
    | 23.28%
|[[counter]]
    |-
|4
    | all
|1
    | {{ll|medicine}}
|-
    | 3.98%
|[[counter]]
    |-
|4
    | all
|2
    | {{ll|militarycrate}}
|-
    | 6.29%
|laboratory
    |-
|[[crate]]
    | bathroom
|4
    | {{ll|counter}}
|1
    | 3.98%
|}
    |-
    | bathroom
    | {{ll|medicine}}
    | 3.98%
    |-
    | bathroom
    | {{ll|shelves}}
    | 3.98%
    |-
    | bedroom
    | {{ll|dresser}}
    | 3.98%
    |-
    | bedroom
    | {{ll|sidetable}}
    | 6.29%
    |-
    | dentiststorage
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | dentiststorage
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | hospitalstorage
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | hospitalstorage
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | kennels
    | {{ll|counter}}
    | 23.28%
    |-
    | kennels
    | {{ll|counter}}
    | 41.14%
    |-
    | kennels
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | kennels
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | laboratory
    | {{ll|crate}}
    | 23.28%
    |-
    | laboratory
    | {{ll|desk}}
    | 23.28%
    |-
    | laboratory
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | medical
    | {{ll|counter}}
    | 23.28%
    |-
    | medical
    | {{ll|counter}}
    | 41.14%
    |-
    | medical
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | medical
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | medicalstorage
    | {{ll|counter}}
    | 23.28%
    |-
    | medicalstorage
    | {{ll|counter}}
    | 41.14%
    |-
    | medicalstorage
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | medicalstorage
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | pharmacy
    | {{ll|counter}}
    | 23.28%
    |-
    | pharmacy
    | {{ll|counter}}
    | 41.14%
    |-
    | pharmacy
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | pharmacy
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | pharmacystorage
    | {{ll|counter}}
    | 23.28%
    |-
    | pharmacystorage
    | {{ll|counter}}
    | 41.14%
    |-
    | pharmacystorage
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | pharmacystorage
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | pharmacystorage
    | {{ll|shelves}}
    | 23.28%
    |-
    | pharmacystorage
    | {{ll|shelves}}
    | 41.14%
    |}
</div>
<div id="vehicles" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Vehicles}}
    ! Type
    ! Container
    ! Effective chance
    |-
    | Ambulance
    | {{ll|Truck Bed}}
    | 23.28%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-PillsSleepingTablets" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|PillsSleepingTablets|41.78.16-->


==Code==
==Code==

Latest revision as of 19:42, 30 April 2024

Project ZomboidItemsMedical itemsSleeping Tablets
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Sleeping Tablets
PillsSleeping Model.png
General
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Function
Induce drowsiness
Properties
Capacity
10 units
Technical
Item ID
Base.PillsSleepingTablets
Helps in getting to sleep. Useful when anxious or in pain.
— In-game tooltip.

Sleeping tablets are a drainable item used in first aid.

Usage

Sleeping tablets are used to induce drowsiness, allowing the player to sleep earlier, therefore getting them into a different sleeping schedule. They are more useful when the player is in pain or anxious, as sleeping pills will allow them to fall asleep regardless of their level of pain or anxiety. Each packet can be used 10 times before exhausting them.

Sleeping

Main article: Sleep

Taking one sleeping tablet causes the first level of tiredness (drowsy) in around six in-game hours. Each subsequent level of tiredness (tired, very tired, exhausted) occurs shortly after.

Taking two sleeping tablets causes the second level of sleepiness (tired) in around four in-game hours. Each subsequent level of sleepiness (very tired, then exhausted) occurs shortly after.

Taking three or more sleeping tablets causes the third level of sleepiness (very tired) in around two in-game hours. The final level of sleepiness (exhausted) occurs shortly after.

Sleeping for any amount removes the fatigue boost from tablets, but not the fatigue itself.

Death

It is possible to overdose on sleeping tablets, being drunk reduces the number of tablets required to do that. Therefore, they should be used with care:

  • Sober
    • Taking 10 tablets will cripple player's health by 40%.
    • Taking 11 tablets will cripple player's health by 80%.
    • Taking 12 tablets will lead to imminent death.
  • Drunk
    • Taking 5 tablets while being drunk will cripple player's health by 40%.
    • Taking 6 tablets while being drunk will lead to imminent death.

It is an alternative to drinking bleach as a way of committing suicide.

Distribution

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

PillsSleepingTablets distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
Bag_DoctorBag Bag_DoctorBag 6.41%
Bag_MedicalBag Bag_MedicalBag 12.41%
MedicalCache1 MedicalBox 23.28%
Nurse crate 23.28%
Nurse crate 41.14%
Nurse metal_shelves 23.28%
Nurse metal_shelves 41.14%
SafehouseLoot counter 23.28%
SafehouseLoot medicine 23.28%
all medicine 3.98%
all militarycrate 6.29%
bathroom counter 3.98%
bathroom medicine 3.98%
bathroom shelves 3.98%
bedroom dresser 3.98%
bedroom sidetable 6.29%
dentiststorage metal_shelves 23.28%
dentiststorage metal_shelves 41.14%
hospitalstorage metal_shelves 23.28%
hospitalstorage metal_shelves 41.14%
kennels counter 23.28%
kennels counter 41.14%
kennels metal_shelves 23.28%
kennels metal_shelves 41.14%
laboratory crate 23.28%
laboratory desk 23.28%
laboratory metal_shelves 23.28%
medical counter 23.28%
medical counter 41.14%
medical metal_shelves 23.28%
medical metal_shelves 41.14%
medicalstorage counter 23.28%
medicalstorage counter 41.14%
medicalstorage metal_shelves 23.28%
medicalstorage metal_shelves 41.14%
pharmacy counter 23.28%
pharmacy counter 41.14%
pharmacy metal_shelves 23.28%
pharmacy metal_shelves 41.14%
pharmacystorage counter 23.28%
pharmacystorage counter 41.14%
pharmacystorage metal_shelves 23.28%
pharmacystorage metal_shelves 41.14%
pharmacystorage shelves 23.28%
pharmacystorage shelves 41.14%
Vehicles
Type Container Effective chance
Ambulance Trunk 23.28%

Code

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

Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item PillsSleepingTablets
	{
	    DisplayCategory = FirstAid,
		Weight	=	0.2,
		Type	=	Drainable,
        UseDelta	=	0.1,
		UseWhileEquipped	=	FALSE,
		DisplayName	=	Sleeping Tablets,
		Icon	=	PillsSleeping,
		Tooltip = Tooltip_PillsSleeping,
		StaticModel = PillBottle,
		WorldStaticModel = SleepingTablets_Ground,
		Medical = TRUE,
	}

See also