Digital Watch: Difference between revisions

From PZwiki
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{languages|Digital Watch}}
{{languages|Digital Watch}}
{{header|The Game World|Items|Electricity and Engineering|type=Electric|version=Version 41|incver=50}}{{Infobox normal
{{header|The Game World|Items|Electricity and Engineering|type=Electric|version=Version 41|incver=73}}{{Infobox normal
|display_name = Digital Watch
|display_name = Digital Watch
|name_colour = Electric
|name_colour = Electric
Line 8: Line 8:
|primary_use = Display [[Controls#Time Controls|time]]
|primary_use = Display [[Controls#Time Controls|time]]
|secondary_use = Dismantle for [[Electronics Scrap|electronics scrap]]
|secondary_use = Dismantle for [[Electronics Scrap|electronics scrap]]
|class_name = Base.DigitalWatch2
|class_name = WristWatch_Right_DigitalBlack
}}A '''digital watch''' is an [[electrical]] [[item]].
}}A '''digital watch''' is an [[electrical]] [[item]].


Line 37: Line 37:


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
'''''From clothing_jewellery.txt (Project Zomboid directory/media/scripts/clothing)'''''
{{Retrieved|version=41|incver=50}}
{{Retrieved|version=41|incver=73}}
<pre> item DigitalWatch2
<pre>
 
--(OBSOLETE)--
 
item DigitalWatch2
Type = AlarmClock,
Type = AlarmClock,
DisplayName = Digital Watch,
DisplayName = Digital Watch,
Line 48: Line 52:
MetalValue = 3,
MetalValue = 3,
Obsolete = TRUE,
Obsolete = TRUE,
--(New Version)--
--(Black Variant)--
        item WristWatch_Right_DigitalBlack
{
        DisplayCategory = Accessory,
Type = AlarmClockClothing,
DisplayName = Black Digital Watch,
ClothingItem = WristWatch_Right_DigitalBlack,
BodyLocation = RightWrist,
Icon = DigitalWatch_Black,
Weight = 0.1,
                ClothingItemExtra = WristWatch_Left_DigitalBlack,
                ClothingItemExtraOption = LeftWrist,
                clothingExtraSubmenu = RightWrist,
Cosmetic = TRUE,
AlarmSound = WatchAlarmLoop,
SoundRadius = 7,
MetalValue = 3,
Tags = Digital,
WorldStaticModel = DigitalWatchBlack,
}
--(Red Variant)--
        item WristWatch_Right_DigitalRed
{
        DisplayCategory = Accessory,
Type = AlarmClockClothing,
DisplayName = Red Digital Watch,
ClothingItem = WristWatch_Right_DigitalRed,
BodyLocation = RightWrist,
Icon = DigitalWatch_Red,
Weight = 0.1,
                ClothingItemExtra = WristWatch_Left_DigitalRed,
                ClothingItemExtraOption = LeftWrist,
                clothingExtraSubmenu = RightWrist,
Cosmetic = TRUE,
AlarmSound = WatchAlarmLoop,
SoundRadius = 7,
MetalValue = 3,
Tags = Digital,
WorldStaticModel = DigitalWatchRed,
}
</pre>
</pre>



Revision as of 22:12, 15 August 2022

Digital Watch
Digital Watch
General
Category Item
Encumbrance
Heavy Load
0.3
Function Display time
Dismantle for electronics scrap
Technical details
Base ID WristWatch_Right_DigitalBlack

A digital watch is an electrical item.

Usage

Clock and alarm

Having a digital watch in the player's main inventory, or wearing one, enables the in-game clock being displayed on the HUD.

Digital watches have an alarm that can be set to go off at a specific time each day. When the alarm goes off, the player will wake up from sleep, preventing them from sleeping past a certain time of day. The chime from a digital watch's alarm can attract zombies. Some digital watches will be found with an alarm already set, and may go off without notice unless the alarm is turned off.

Unlike with classic watches, digital watches display the date and weather on the HUD. This also means that, in the info tab, the player can see how long their character has been alive for. The temperature reading will change dependent on the environment. This can allow the player to assess the indoor temperature when entering a building.

Dismantling

A digital watch can be dismantled if the player has a screwdriver, which will result in one electronics scrap.

Crafting

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
ElectronicsScrap.png
Scrap Electronics
0.5 Electrical none Screwdriver.png
Screwdriver
(keep)

(consumed)

Template:Crafting table footer

Distribution

The digital watch can be found on zombies and corpses.

Trivia

  • Digital watches in the mid-1990s were incredibly popular, with cutting-edge technology and functions, such as an LED display, calculator, data bank, games and more.
  • The watch can be worn on both wrists

Code

From clothing_jewellery.txt (Project Zomboid directory/media/scripts/clothing) Retrieved: Build 41.73


--(OBSOLETE)--

	item DigitalWatch2
		Type		= AlarmClock,
		DisplayName	= Digital Watch,
		Icon		= DigitalWatch,
		Weight		= 0.0,
		AlarmSound	= watchAlarmLooped,
		SoundRadius	= 7,
		MetalValue	= 3,
		Obsolete	= TRUE,


--(New Version)--
--(Black Variant)--

        item WristWatch_Right_DigitalBlack
	{
	        DisplayCategory = Accessory,
		Type = AlarmClockClothing,
		DisplayName = Black Digital Watch,
		ClothingItem = WristWatch_Right_DigitalBlack,
		BodyLocation = RightWrist,
		Icon = DigitalWatch_Black,
		Weight = 0.1,
                ClothingItemExtra = WristWatch_Left_DigitalBlack,
                ClothingItemExtraOption = LeftWrist,
                clothingExtraSubmenu = RightWrist,
		Cosmetic = TRUE,
		AlarmSound = WatchAlarmLoop,
		SoundRadius = 7,
		MetalValue = 3,
		Tags = Digital,
		WorldStaticModel = DigitalWatchBlack,
	}

--(Red Variant)--

        item WristWatch_Right_DigitalRed
	{
	        DisplayCategory = Accessory,
		Type = AlarmClockClothing,
		DisplayName = Red Digital Watch,
		ClothingItem = WristWatch_Right_DigitalRed,
		BodyLocation = RightWrist,
		Icon = DigitalWatch_Red,
		Weight = 0.1,
                ClothingItemExtra = WristWatch_Left_DigitalRed,
                ClothingItemExtraOption = LeftWrist,
                clothingExtraSubmenu = RightWrist,
		Cosmetic = TRUE,
		AlarmSound = WatchAlarmLoop,
		SoundRadius = 7,
		MetalValue = 3,
		Tags = Digital,
		WorldStaticModel = DigitalWatchRed,
	}

See also


Template:Navbox/Electricity and Engineering