Lunchbox: Difference between revisions

From PZwiki
m (Update links)
(→‎Trivia: more trivia)
Line 108: Line 108:
*Interestingly, the pink variant of the lunchbox appears to not make any sound when accessed, unlike the blue variant, which plays the generic bag sound.
*Interestingly, the pink variant of the lunchbox appears to not make any sound when accessed, unlike the blue variant, which plays the generic bag sound.
*The blue lunchbox model is a based on the logo from [[Wikipedia:Teenage Mutant Ninja Turtles (1987 TV series)|1987 TV series Teenage Mutant Ninja Turtles]].
*The blue lunchbox model is a based on the logo from [[Wikipedia:Teenage Mutant Ninja Turtles (1987 TV series)|1987 TV series Teenage Mutant Ninja Turtles]].
*The pink lunchbox model is an image of [[Will Porter]], a member of [[The Indie Stone]].
==Code==
==Code==
<div class="mw-collapsible-content">'''''From clothing_bags.txt (Project Zomboid directory/media/scripts/clothing)'''''
<div class="mw-collapsible-content">'''''From clothing_bags.txt (Project Zomboid directory/media/scripts/clothing)'''''

Revision as of 16:30, 28 July 2023

Template:Infobox containerA lunchbox is a container item. The lunchbox has blue and pink colour variants.

Usage

A lunchbox cannot be equipped on the player's back. It has the same capacity and weight reduction as the First Aid Kit. It must be equipped in one of the player's hands to be accessed.

Lunchboxes can spawn with (build 41):

Apple.png Apple Banana.png Banana
BeefJerky.png Beef Jerky Burrito.png Burrito
Sandwich cheese.png Cheese Sandwich Sandwich peanut.png Peanut Butter Sandwich
Chocolate.png Chocolate CinnamonRoll.png Cinnamon Roll
CookieChocolateChip.png Chocolate Chip Cookie DehydratedMeatStick.png Dehydrated Meat Stick
DoughnutPlain.png Doughnut GranolaBar.png Granola Bar
MuffinFruit.png Fruit Muffin Orange.png Orange
Pretzel.png Pretzel Yoghurt.png Yogurt

Distribution

Buildings

Building/Room Container Rolls Chance
Fire Department Locker 4 1
Break Room Fridge 4 10
Office Fridge 4 10
Hospital Locker 4 1
Janitorial Room Other 4 10
Police Department Locker 4 1
Prison Locker 4 1
School Locker 4 2

It is worth noting that the pink variant is significantly rarer, with a chance of 0.001 in all possible spawn locations

Gallery

Trivia

Code

From clothing_bags.txt (Project Zomboid directory/media/scripts/clothing)

Lunchbox (blue) Lunchbox (blue) Retrieved: Build 41.78.16

	    item Lunchbox
    {
        DisplayCategory = Container,
        WeightReduction    =    5,
        Weight    =    1,
        Type    =    Container,
        Capacity    =    4,
        DisplayName    =    Lunchbox,
        Icon    =    Lunchbox01,
        OpenSound   =   OpenBag,
        CloseSound   =   CloseBag,
        PutInSound   =   PutItemInBag,
        MetalValue = 15,
        ReplaceInSecondHand = Bag_Lunchbox_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_Lunchbox_RHand holdingbagright,
        WorldStaticModel = LunchBox_Ground,
    }

Lunchbox (pink) Lunchbox (pink) Retrieved: Build 41.78.16

	        item Lunchbox2
    {
        DisplayCategory = Container,
        WeightReduction    =    5,
        Weight    =    1,
        Type    =    Container,
        Capacity    =    4,
        DisplayName    =    Lunchbox,
        Icon    =    Lunchbox02,
        MetalValue = 15,
        ReplaceInSecondHand = Bag_Lunchbox2_LHand holdingbagleft,
        ReplaceInPrimaryHand = Bag_Lunchbox2_RHand holdingbagright,
        WorldStaticModel = LunchBox2_Ground,
    }

See also