Difference between revisions of "Occupation"

From NetHackWiki
Jump to navigation Jump to search
(create page, will need to study the source code to write more details)
 
m (references section)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
An occupation is an action that takes multiple turns to finish.
+
In ''[[NetHack]]'', an '''occupation''' is an interruptible action that takes multiple turns to finish.
  
You may be interrupted during an occupation, and resume an occupation after being interrupted.
+
You may resume an occupation after being interrupted.{{refsrc|src/cmd.c|230|version=NetHack 3.6.6}}
  
{{todo|precise mechanics of occupation, interruption, and resumption}}
+
{{todo|Precise mechanics of occupation, interruption, and resumption: Whether progress of the occupation after resumption is preserved or discarded depending on other actions.  Also, does it take a turn (during which you make no progress) when you start/resume/get interrupted?  Also, what events interrupt you?
{{refsrc|src/cmd.c|230|version=NetHack 3.6.6}}
+
}}
  
 
== List of occupations ==
 
== List of occupations ==
Line 10: Line 10:
 
* [[Dig]]ging{{refsrc|src/dig.c|1160|version=NetHack 3.6.6}}{{refsrc|src/dig.c|1202|version=NetHack 3.6.6}}
 
* [[Dig]]ging{{refsrc|src/dig.c|1160|version=NetHack 3.6.6}}{{refsrc|src/dig.c|1202|version=NetHack 3.6.6}}
 
* Setting a trap ([[beartrap]] or [[land mine]]){{refsrc|src/apply.c|2540|version=NetHack 3.6.6}}{{refsrc|src/apply.c|2589|version=NetHack 3.6.6}}
 
* Setting a trap ([[beartrap]] or [[land mine]]){{refsrc|src/apply.c|2540|version=NetHack 3.6.6}}{{refsrc|src/apply.c|2589|version=NetHack 3.6.6}}
* [[Read]]ing a [[spellbook]]{{refsrc|src/spell.c|2540|version=NetHack 3.6.6}}
+
* [[Read]]ing a [[spellbook]]{{refsrc|src/spell.c|591|version=NetHack 3.6.6}}
 
* Picking or [[forcing]] a [[lock]]{{refsrc|src/lock.c|338|version=NetHack 3.6.6}}{{refsrc|src/lock.c|525|version=NetHack 3.6.6}}{{refsrc|src/lock.c|562|version=NetHack 3.6.6}}{{refsrc|src/lock.c|604|version=NetHack 3.6.6}}
 
* Picking or [[forcing]] a [[lock]]{{refsrc|src/lock.c|338|version=NetHack 3.6.6}}{{refsrc|src/lock.c|525|version=NetHack 3.6.6}}{{refsrc|src/lock.c|562|version=NetHack 3.6.6}}{{refsrc|src/lock.c|604|version=NetHack 3.6.6}}
 
* Putting on or taking off [[armor]]{{refsrc|src/do_wear.c|2596|version=NetHack 3.6.6}}{{refsrc|src/do_wear.c|2616|version=NetHack 3.6.6}}
 
* Putting on or taking off [[armor]]{{refsrc|src/do_wear.c|2596|version=NetHack 3.6.6}}{{refsrc|src/do_wear.c|2616|version=NetHack 3.6.6}}
Line 17: Line 17:
  
 
{{upcoming|NetHack 3.7.0|[[Engraving]] is an occupation}}
 
{{upcoming|NetHack 3.7.0|[[Engraving]] is an occupation}}
 +
 +
== See also ==
 +
* [[Helpless]], for multi-turn conditions that can't be interrupted
 +
 +
== References ==
 +
<references/>
  
 
{{stub}}
 
{{stub}}
 
{{nethack-366}}
 
{{nethack-366}}

Latest revision as of 03:51, 3 November 2021

In NetHack, an occupation is an interruptible action that takes multiple turns to finish.

You may resume an occupation after being interrupted.[1]

A user has suggested improving this page or section as follows:

"Precise mechanics of occupation, interruption, and resumption: Whether progress of the occupation after resumption is preserved or discarded depending on other actions. Also, does it take a turn (during which you make no progress) when you start/resume/get interrupted? Also, what events interrupt you? "

List of occupations

The following information pertains to an upcoming version (NetHack 3.7.0). If this version is now released, please verify that it is still accurate, then update the page to incorporate this information.

Engraving is an occupation

See also

  • Helpless, for multi-turn conditions that can't be interrupted

References

This page is a stub. Should you wish to do so, you can contribute by expanding this page.