Lunchbox: Difference between revisions

From PZwiki
m (Replaced mislabeled Item IDs)
(Added code section, and trivia)
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|Baggage|type=Baggage|version=Version 41|incver=78}}{{Infobox container
{{Languages}}{{Header|The Game World|Items|Baggage|type=Baggage|version=Version 41|incver=78}}{{Infobox container
|display_name=Lunchbox
| display_name=Lunchbox
|name_colour=Container
| name_colour=Container
|name_text_colour=Container
| name_text_colour=Container
|image=Lunchbox01.png
| image = Lunchbox01.png
|alternate_image=Lunchbox01.png
| alternate_image = Lunchbox01.png
|alternate_name=Lunchbox (blue)
| alternate_name = Lunchbox (blue)
|alternate_link=
| alternate_image2 = Lunchbox02.png
|alternate_image2=Lunchbox02.png
| alternate_name2 = Lunchbox (pink)
|alternate_name2=Lunchbox (pink)
| category = Container
|alternate_link2=
| weight = 1
|category=Container
| equipped = One-handed
|weight=1
| capacity = 5
|equipped=One-handed
| weight_reduction = 5
|capacity=5
| class_name = Base.Lunchbox Base.Lunchbox2
|weight_reduction=5
}}A '''lunchbox''' is a container [[item]]. The lunchbox has blue and pink colour variants.
|class_name=''See [[#Item IDs|Item IDs]]''
}}A '''lunchbox''' is a container [[item]]. The lunchbox has blue and pink colour variants, the difference is purely visual.


==Usage==
==Usage==
Line 109: Line 107:
It is worth noting that the pink variant is significantly rarer, with a chance of 0.001 in all possible spawn locations
It is worth noting that the pink variant is significantly rarer, with a chance of 0.001 in all possible spawn locations


==Item IDs==
==Trivia==
{| class="pztable" style="width:30%; text-align:center;"
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.
! style="width:25%" | Name
==Code==
! style="width:25%" | Icon
<div class="mw-collapsible-content">'''''From clothing_bags.txt (Project Zomboid directory/media/scripts/clothing)'''''
! style="width:50%" | Base ID
[[File:Lunchbox01.png|Lunchbox (blue)]] ''Lunchbox (blue)''
|-
{{Retrieved|version=41|incver=78}}
| Lunchbox
<pre>     item Lunchbox
| [[File:Lunchbox01.png]]
    {
| {{ID|Base.Lunchbox}}
        DisplayCategory = Container,
|-
        WeightReduction    =    5,
| Lunchbox
        Weight    =    1,
| [[File:Lunchbox02.png]]
        Type    =    Container,
| {{ID|Base.Lunchbox2}}
        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,
    }
</pre>
[[File:Lunchbox02.png|Lunchbox (pink)]] ''Lunchbox (pink)''
{{Retrieved|version=41|incver=78}}
<pre>         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,
    }
</pre>


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

Revision as of 23:33, 23 March 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

Trivia

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.

Code

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

Lunchbox (blue) Lunchbox (blue) Retrieved: Build 41.78

	    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

	        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