Difference between revisions of "Apport"

From NetHackWiki
Jump to navigation Jump to search
(missing parentheses added)
(adjust heavily-qualified statement (some people are fine tanking the penalties for killing shopkeepers or letting pets do it))
 
(19 intermediate revisions by 16 users not shown)
Line 1: Line 1:
To '''apport''' something is to ''bring'' it.  In [[NetHack]], APPORT<ref>{{sourcecode|dogmove.c|174}}</ref> is a statistic that represents how likely a [[pet]] is to 'fetch' items and bring them to [[you]].  Pets with high apport tend to follow you more reliably as well.
+
{{distinguish|tameness}}
 +
In ''[[NetHack]]'', '''apport''' is a statistic that represents how likely a [[pet]] is to 'fetch' items and bring them to [[you]].
  
Apport can be increased by feeding your pet a [[treat]] (corpses do not count) shortly after it has dropped an item near you. You do not necessarily have to throw the treat to the pet, as long as you have handled it recently. For this reason, it is a good practice to pick up [[tripe]] in a [[shop]] before your carnivorous pet can reach it, then drop it again once your pet has picked something up.  When the pet drops the item and then later eats the tripe, you won't be charged for it, and apport should be increased somewhat. Most pets start with an apport of 10.
+
==Description==
 +
"Apport" is the name of a variable field in <tt>struct edog</tt> that governs the chances of a pet picking up an item and dropping it on a square next to you.{{refsrc|include/mextra.h|162|version=NetHack 3.6.6}} The higher the apport stat is, the more likely a pet is to bring you an item.{{refsrc|src/dogmove.c|446|version=NetHack 3.6.6|comment=chance of picking up an object depends on distance and apport}}{{refsrc|src/dogmove.c|421|version=NetHack 3.6.6|chance of dropping a carried object}} New pets start with an apport equal to your current [[charisma]].{{refsrc|src/dog.c|42|version=NetHack 3.6.6}}
  
The exact formula for apport gain (calculated when the pet receives a treat) is:
+
Apport can be increased by feeding your pet any [[comestible]] that qualifies as a [[treat]] shortly after it has dropped an item near you. While this is commonly done by throwing the treat to the pet, the only requirement for treats to increase apport is that it has been in your inventory previously.
  200 / ((distance from you to pet when the last item was dropped) + (# of turns since item was dropped))
+
 
 +
Apport is decremented by 1 each time the pet drops an item, to a minimum of 1.{{refsrc|src/dogmove.c|423|version=NetHack 3.6.6}}
 +
 
 +
The exact formula for apport gain (calculated when the pet receives a treat) is:{{refsrc|src/dogmove.c|295|version=NetHack 3.6.6}}
 +
200 / ((distance from you to pet when the last item was dropped) + (# of turns since item was dropped))
  
 
Ideally, if a pet drops an item right next to you, and you immediately throw it a treat, the calculation would be:
 
Ideally, if a pet drops an item right next to you, and you immediately throw it a treat, the calculation would be:
 
  200 / (1 [[square]] + 1 [[turn]]) =  200/2  = +100 apport
 
  200 / (1 [[square]] + 1 [[turn]]) =  200/2  = +100 apport
  
Therefore to maximize apport gain, wait for your pet to drop an item at your feet, then reward it immediately.
+
==Strategy==
 
+
Apport is best raised and maintained by immediately rewarding a pet for dropping an item at your feet; this will raise initial apport high enough for the pet to start seeking you out, after which you should treat your pet from time to time after it drops something to keep apport high. [[Knight]]s start with a [[pony]] and many [[carrot]]s and [[apple]]s, and [[Healer]]s can turn [[rock]]s into [[meatball]]s via [[stone to flesh]], making them the most immediately prepared roles to handle this kind of training. Training apport is also a solid method of preparing a [et to [[stealing from shops|steal from shops]].
Apport is decreased by 1 every time your pet drops an item, so you need to treat your pet from time to time after it drops something, in order to keep apport high. Theoretically, this should be quite easy if you have enough treats, as your pet should be doing a lot more fetching once you have trained it to realize that dropping stuff near you equals a reward.  However, it may be helpful to reward your pet immediately once it drops an item anywhere, to raise initial apport high enough for the pet to start seeking you out.
 
 
 
[[Knight]]s (who start with a [[pony]] and many [[carrot]]s & [[apple]]s) or [[Healer]]s (who can turn [[rock]]s in to [[meatball]]s) should be able to train their pets to fetch quite well.
 
  
 
==Etymology==
 
==Etymology==
The verb "apport" typically [http://www.dict.org/bin/Dict?Form=Dict2&Database=*&Query=apport does not appear] in dictionaries of the English language. The French language has a verb "[[Wiktionary:apporter|apporter]]"; this word becomes "to apport" in English, and is synonym for "to bring".
+
The term "apport" is derived from the archaic English word "[[Wiktionary:apporter|apporter]]" and the much more common French ''apporter'' of the same spelling; their common root is the Latin ''apportō'' (“I carry in”). The former refers to an importer, while the latter is a verb that can mean "to bring (in)".
 
 
In a sentence: My dog apports blessed and uncursed objects.
 
 
 
Because "apport" appears so rarely in English, one may interpret its meaning as more specific than "bring". For example, Wikipedia has an [[Wikipedia:Apport|entry for "apport"]], but only for when a [[ghost]] does the apporting!
 
  
In the [[source code]] of NetHack, <tt>apport</tt> is the name of a variable field in <tt>struct edog</tt><ref>{{sourcecode|edog.h|19}}</ref>. Thus we use "apport" as a noun to refer to the integer in that field. A pet with high apport, performs better to apport objects to you.
+
In many languages, "apport" is a widely used command in dog training, equivalent to "fetch".<ref>https://www4.uwsp.edu/psych/dog/languag1.htm</ref><ref>https://en.wiktionary.org/wiki/apport#Swedish</ref>
  
 
==See also==
 
==See also==
Eva Myers' excellent spoiler for [http://www.statslab.cam.ac.uk/~eva/nethack/pets2.html Keeping and Training Pets in NetHack and SLASH'EM]
+
* Eva Myers' excellent spoiler for [http://www.statslab.cam.ac.uk/~eva/nethack/pets2.html Keeping and Training Pets in NetHack and SLASH'EM]
 +
* [[Tameness]]
 +
* [[Monster carrying capacity]]
  
 
==References==
 
==References==
 
<references/>
 
<references/>
  
{{stub}}
+
{{nethack-366}}
 
[[Category:Pets]]
 
[[Category:Pets]]
 +
[[Category:Annotations]]

Latest revision as of 00:38, 31 January 2024

Not to be confused with tameness.

In NetHack, apport is a statistic that represents how likely a pet is to 'fetch' items and bring them to you.

Description

"Apport" is the name of a variable field in struct edog that governs the chances of a pet picking up an item and dropping it on a square next to you.[1] The higher the apport stat is, the more likely a pet is to bring you an item.[2][3] New pets start with an apport equal to your current charisma.[4]

Apport can be increased by feeding your pet any comestible that qualifies as a treat shortly after it has dropped an item near you. While this is commonly done by throwing the treat to the pet, the only requirement for treats to increase apport is that it has been in your inventory previously.

Apport is decremented by 1 each time the pet drops an item, to a minimum of 1.[5]

The exact formula for apport gain (calculated when the pet receives a treat) is:[6]

200 / ((distance from you to pet when the last item was dropped) + (# of turns since item was dropped))

Ideally, if a pet drops an item right next to you, and you immediately throw it a treat, the calculation would be:

200 / (1 square + 1 turn) =  200/2  = +100 apport

Strategy

Apport is best raised and maintained by immediately rewarding a pet for dropping an item at your feet; this will raise initial apport high enough for the pet to start seeking you out, after which you should treat your pet from time to time after it drops something to keep apport high. Knights start with a pony and many carrots and apples, and Healers can turn rocks into meatballs via stone to flesh, making them the most immediately prepared roles to handle this kind of training. Training apport is also a solid method of preparing a [et to steal from shops.

Etymology

The term "apport" is derived from the archaic English word "apporter" and the much more common French apporter of the same spelling; their common root is the Latin apportō (“I carry in”). The former refers to an importer, while the latter is a verb that can mean "to bring (in)".

In many languages, "apport" is a widely used command in dog training, equivalent to "fetch".[7][8]

See also

References