<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nethackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Teleport_region</id>
	<title>Teleport region - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nethackwiki.com/index.php?action=history&amp;feed=atom&amp;title=Teleport_region"/>
	<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Teleport_region&amp;action=history"/>
	<updated>2026-07-21T12:56:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.5</generator>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=176479&amp;oldid=prev</id>
		<title>Cathartes: document exclusion areas: this is the part that actually restricts within-level teleport; destination areas still control level arrival</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=176479&amp;oldid=prev"/>
		<updated>2024-08-13T03:36:37Z</updated>

		<summary type="html">&lt;p&gt;document exclusion areas: this is the part that actually restricts within-level teleport; destination areas still control level arrival&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 03:36, 13 August 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A '''teleport region''' is a region on a level that controls the possible locations of [[teleport]]s, and random placement when arriving to a level via [[hole]], [[trap door]], [[levelport]], and [[branchport]].  Teleport regions are defined in level definition files using the [[Des-file_format#TELEPORT_REGION|TELEPORT_REGION]] directive.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A '''teleport region''' is a region on a level that controls the possible locations of [[teleport]]s, and random placement when arriving to a level via [[hole]], [[trap door]], [[levelport]], and [[branchport]].  Teleport regions are defined in level definition files using the [[Des-file_format#TELEPORT_REGION|TELEPORT_REGION]] directive.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is not possible to teleport from inside to outside, or from outside to inside, a teleport region.{{refsrc|src/teleport.c|222|nethack=3.6.7|comment=&amp;lt;code&amp;gt;tele_jump_ok()&amp;lt;/code&amp;gt; prevents teleporting across a &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; region boundary}}{{refsrc|util/lev_comp.y|1820-L1833|nethack=3.6.7|comment=The DES file parser converts the &amp;lt;code&amp;gt;TELEPORT_REGION&amp;lt;/code&amp;gt; directive into a &amp;lt;code&amp;gt;LR_TELE&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LR_UPTELE&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;LR_DOWNTELE&amp;lt;/code&amp;gt; value}}{{refsrc|src/mkmaze.c|505-L530|nethack=3.6.7|comment=&amp;lt;code&amp;gt;fixup_special()&amp;lt;/code&amp;gt; converts the &amp;lt;code&amp;gt;LR_*TELE&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; regions}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Each teleport region may define two rectangular areas:{{refsrc|include/dungeon.h|49|nethack=3.6.7}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* An destination area, defining the possible locations when arriving to the level by means other than staircase.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* An exclusion area, defining an area that is invalid for level arrival.  Not all teleport regions define an exclusion area.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is not possible to teleport from inside to outside, or from outside to inside, a teleport region&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'s exclusion area&lt;/ins&gt;.{{refsrc|src/teleport.c|222|nethack=3.6.7|comment=&amp;lt;code&amp;gt;tele_jump_ok()&amp;lt;/code&amp;gt; prevents teleporting across a &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;exclusion &lt;/ins&gt;region boundary}}{{refsrc|util/lev_comp.y|1820-L1833|nethack=3.6.7|comment=The DES file parser converts the &amp;lt;code&amp;gt;TELEPORT_REGION&amp;lt;/code&amp;gt; directive into a &amp;lt;code&amp;gt;LR_TELE&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LR_UPTELE&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;LR_DOWNTELE&amp;lt;/code&amp;gt; value}}{{refsrc|src/mkmaze.c|505-L530|nethack=3.6.7|comment=&amp;lt;code&amp;gt;fixup_special()&amp;lt;/code&amp;gt; converts the &amp;lt;code&amp;gt;LR_*TELE&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; regions}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Teleport regions may specify whether they are possible arrival destinations for a particular direction of arrival (upwards, downwards, or both).  When arriving at a level via hole, trap door, levelport, or branchport, the hero is randomly placed, and will be subject to the teleport region of their arrival direction.{{refsrc|src/dungeon.c|1214|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; is called when hero is randomly placed while entering a level}}{{refsrc|src/do.c|1540|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; call from &amp;lt;code&amp;gt;goto_level()&amp;lt;/code&amp;gt;}}  Monsters and objects are also subject to the teleport region when arriving.{{refsrc|src/teleport.c|1132|nethack=3.6.7|comment=monster arrival}}{{refsrc|src/teleport.c|1446|nethack=3.6.7|comment=object arrival}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Teleport regions may specify whether they are possible arrival destinations for a particular direction of arrival (upwards, downwards, or both).  When arriving at a level via hole, trap door, levelport, or branchport, the hero is randomly placed, and will be subject to the teleport region of their arrival direction.{{refsrc|src/dungeon.c|1214|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; is called when hero is randomly placed while entering a level}}{{refsrc|src/do.c|1540|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; call from &amp;lt;code&amp;gt;goto_level()&amp;lt;/code&amp;gt;}}  Monsters and objects are also subject to the teleport region when arriving.{{refsrc|src/teleport.c|1132|nethack=3.6.7|comment=monster arrival}}{{refsrc|src/teleport.c|1446|nethack=3.6.7|comment=object arrival}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l22&quot; &gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Orctown]], to prevent arriving inside the town when being randomly placed on the level.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Orctown]], to prevent arriving inside the town when being randomly placed on the level.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{upcoming|NetHack 3.7.0|As of {{commit|c4c31ae6a8cdab60b319cc8b355445968e8ec286}}, [[Mines' End#The Gnome King's Wine Cellar|the wine cellar]] version of Mines' End has a teleport region to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;exclude &lt;/del&gt;the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;treasure chamber as an arrival location&lt;/del&gt;.}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{upcoming|NetHack 3.7.0|As of {{commit|c4c31ae6a8cdab60b319cc8b355445968e8ec286}}, [[Mines' End#The Gnome King's Wine Cellar|the wine cellar]] version of Mines' End has a teleport region to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;force arrival in &lt;/ins&gt;the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;room containing the stairs&lt;/ins&gt;.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cathartes</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=171539&amp;oldid=prev</id>
		<title>Cathartes: castle region description</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=171539&amp;oldid=prev"/>
		<updated>2024-06-22T04:47:26Z</updated>

		<summary type="html">&lt;p&gt;castle region description&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:47, 22 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot; &gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following special levels contain teleport regions:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following special levels contain teleport regions:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{todo|Add the missing boundary descriptions}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{todo|Add the missing boundary descriptions}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The [[Castle]] has &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;2 &lt;/del&gt;teleport regions, one each for upward and downward arrival.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The [[Castle]] has &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;two &lt;/ins&gt;teleport regions, one each for upward and downward &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;arrival. The maze containing the upstair is for downward arrival, while the opposite-side maze is for upward &lt;/ins&gt;arrival.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Medusa's Island]], all four versions, in order to place arrival locations near the appropriate stairs.  The third version only has a teleport region for &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;downwards &lt;/del&gt;arrival, while the others have both upward and downward regions.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Medusa's Island]], all four versions, in order to place arrival locations near the appropriate stairs.  The third version only has a teleport region for &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;downward &lt;/ins&gt;arrival, while the others have both upward and downward regions.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Big Room#Big_Room_.2310|Big Room #10]], preventing downwards arrival into the fog maze.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Big Room#Big_Room_.2310|Big Room #10]], preventing downwards arrival into the fog maze.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Endgame]] levels, controlling arrival location.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Endgame]] levels, controlling arrival location.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cathartes</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=171537&amp;oldid=prev</id>
		<title>Cathartes: fix grammar</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=171537&amp;oldid=prev"/>
		<updated>2024-06-22T04:40:18Z</updated>

		<summary type="html">&lt;p&gt;fix grammar&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:40, 22 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot; &gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is not possible to teleport from inside to outside, or from outside to inside, a teleport region.{{refsrc|src/teleport.c|222|nethack=3.6.7|comment=&amp;lt;code&amp;gt;tele_jump_ok()&amp;lt;/code&amp;gt; prevents teleporting across a &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; region boundary}}{{refsrc|util/lev_comp.y|1820-L1833|nethack=3.6.7|comment=The DES file parser converts the &amp;lt;code&amp;gt;TELEPORT_REGION&amp;lt;/code&amp;gt; directive into a &amp;lt;code&amp;gt;LR_TELE&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LR_UPTELE&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;LR_DOWNTELE&amp;lt;/code&amp;gt; value}}{{refsrc|src/mkmaze.c|505-L530|nethack=3.6.7|comment=&amp;lt;code&amp;gt;fixup_special()&amp;lt;/code&amp;gt; converts the &amp;lt;code&amp;gt;LR_*TELE&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; regions}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is not possible to teleport from inside to outside, or from outside to inside, a teleport region.{{refsrc|src/teleport.c|222|nethack=3.6.7|comment=&amp;lt;code&amp;gt;tele_jump_ok()&amp;lt;/code&amp;gt; prevents teleporting across a &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; region boundary}}{{refsrc|util/lev_comp.y|1820-L1833|nethack=3.6.7|comment=The DES file parser converts the &amp;lt;code&amp;gt;TELEPORT_REGION&amp;lt;/code&amp;gt; directive into a &amp;lt;code&amp;gt;LR_TELE&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;LR_UPTELE&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;LR_DOWNTELE&amp;lt;/code&amp;gt; value}}{{refsrc|src/mkmaze.c|505-L530|nethack=3.6.7|comment=&amp;lt;code&amp;gt;fixup_special()&amp;lt;/code&amp;gt; converts the &amp;lt;code&amp;gt;LR_*TELE&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; regions}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Teleport regions may specify whether they are possible arrival destinations for a particular direction of arrival (upwards, downwards, or both).  When arriving at a level via hole, trap door, levelport, or branchport, the hero is randomly placed, and will be subject to the teleport region of their arrival direction.{{refsrc|src/dungeon.c|1214|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; is called when hero is randomly placed while &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;enter &lt;/del&gt;a level}}{{refsrc|src/do.c|1540|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; call from &amp;lt;code&amp;gt;goto_level()&amp;lt;/code&amp;gt;}}  Monsters and objects are also subject to the teleport region when arriving.{{refsrc|src/teleport.c|1132|nethack=3.6.7|comment=monster arrival}}{{refsrc|src/teleport.c|1446|nethack=3.6.7|comment=object arrival}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Teleport regions may specify whether they are possible arrival destinations for a particular direction of arrival (upwards, downwards, or both).  When arriving at a level via hole, trap door, levelport, or branchport, the hero is randomly placed, and will be subject to the teleport region of their arrival direction.{{refsrc|src/dungeon.c|1214|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; is called when hero is randomly placed while &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;entering &lt;/ins&gt;a level}}{{refsrc|src/do.c|1540|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; call from &amp;lt;code&amp;gt;goto_level()&amp;lt;/code&amp;gt;}}  Monsters and objects are also subject to the teleport region when arriving.{{refsrc|src/teleport.c|1132|nethack=3.6.7|comment=monster arrival}}{{refsrc|src/teleport.c|1446|nethack=3.6.7|comment=object arrival}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following special levels contain teleport regions:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following special levels contain teleport regions:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cathartes</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=171535&amp;oldid=prev</id>
		<title>Cathartes: also branchport</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=171535&amp;oldid=prev"/>
		<updated>2024-06-22T04:37:04Z</updated>

		<summary type="html">&lt;p&gt;also branchport&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:37, 22 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A '''teleport region''' is a region on a level that controls the possible locations of [[teleport]]s, and placement when arriving to a level via [[hole]], [[trap door]], and [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;levelport&lt;/del&gt;]].  Teleport regions are defined in level definition files using the [[Des-file_format#TELEPORT_REGION|TELEPORT_REGION]] directive.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A '''teleport region''' is a region on a level that controls the possible locations of [[teleport]]s, and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;random &lt;/ins&gt;placement when arriving to a level via [[hole]], [[trap door&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]], [[levelport&lt;/ins&gt;]], and [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;branchport&lt;/ins&gt;]].  Teleport regions are defined in level definition files using the [[Des-file_format#TELEPORT_REGION|TELEPORT_REGION]] directive.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is not possible to teleport from inside to outside, or from outside to inside, a teleport region.{{refsrc|src/teleport.c|222|nethack=3.6.7|comment=&amp;lt;code&amp;gt;tele_jump_ok()&amp;lt;/code&amp;gt; prevents teleporting across a &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; region boundary}}{{refsrc|util/lev_comp.y|1820-L1833|nethack=3.6.7|comment=The DES file parser converts the TELEPORT_REGION directive into a LR_TELE, LR_UPTELE, or LR_DOWNTELE value}}{{refsrc|src/mkmaze.c|505-L530|nethack=3.6.7|comment=&amp;lt;code&amp;gt;fixup_special()&amp;lt;/code&amp;gt; converts the &amp;lt;code&amp;gt;LR_*TELE&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; regions}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is not possible to teleport from inside to outside, or from outside to inside, a teleport region.{{refsrc|src/teleport.c|222|nethack=3.6.7|comment=&amp;lt;code&amp;gt;tele_jump_ok()&amp;lt;/code&amp;gt; prevents teleporting across a &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; region boundary}}{{refsrc|util/lev_comp.y|1820-L1833|nethack=3.6.7|comment=The DES file parser converts the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;TELEPORT_REGION&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt; &lt;/ins&gt;directive into a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;LR_TELE&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;LR_UPTELE&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt;&lt;/ins&gt;, or &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;LR_DOWNTELE&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/code&amp;gt; &lt;/ins&gt;value}}{{refsrc|src/mkmaze.c|505-L530|nethack=3.6.7|comment=&amp;lt;code&amp;gt;fixup_special()&amp;lt;/code&amp;gt; converts the &amp;lt;code&amp;gt;LR_*TELE&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; regions}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Teleport regions may specify whether they are possible arrival destinations for a particular direction of arrival (upwards, downwards, or both).  When arriving at a level via hole, trap door, or &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;levelport&lt;/del&gt;, the hero is randomly placed, and will be subject to the teleport region of their arrival direction.{{refsrc|src/dungeon.c|1214|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; is called when hero is randomly placed while enter a level}}{{refsrc|src/do.c|1540|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; call from &amp;lt;code&amp;gt;goto_level()&amp;lt;/code&amp;gt;}}  Monsters and objects are also subject to the teleport region when arriving.{{refsrc|src/teleport.c|1132|nethack=3.6.7|comment=monster arrival}}{{refsrc|src/teleport.c|1446|nethack=3.6.7|comment=object arrival}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Teleport regions may specify whether they are possible arrival destinations for a particular direction of arrival (upwards, downwards, or both).  When arriving at a level via hole, trap door&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, levelport&lt;/ins&gt;, or &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;branchport&lt;/ins&gt;, the hero is randomly placed, and will be subject to the teleport region of their arrival direction.{{refsrc|src/dungeon.c|1214|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; is called when hero is randomly placed while enter a level}}{{refsrc|src/do.c|1540|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; call from &amp;lt;code&amp;gt;goto_level()&amp;lt;/code&amp;gt;}}  Monsters and objects are also subject to the teleport region when arriving.{{refsrc|src/teleport.c|1132|nethack=3.6.7|comment=monster arrival}}{{refsrc|src/teleport.c|1446|nethack=3.6.7|comment=object arrival}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following special levels contain teleport regions:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following special levels contain teleport regions:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot; &gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Baalzebub's Lair]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Baalzebub's Lair]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Moloch's Sanctum]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Moloch's Sanctum]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Fort Ludios]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Fort Ludios]]&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;: although it is not possible to arrive here by falling or levelport, it is possible to arrive by branchport, and the teleport region will ensure placement in the small room containing the portal.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Orctown]], to prevent arriving inside the town when being randomly placed on the level.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Orctown]], to prevent arriving inside the town when being randomly placed on the level.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cathartes</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=171534&amp;oldid=prev</id>
		<title>ScienceBall: Small cleanup of wording</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=171534&amp;oldid=prev"/>
		<updated>2024-06-22T04:29:48Z</updated>

		<summary type="html">&lt;p&gt;Small cleanup of wording&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:29, 22 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot; &gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Moloch's Sanctum]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Moloch's Sanctum]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Fort Ludios]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Fort Ludios]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Orctown]], to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;exclude the &lt;/del&gt;arriving inside the town when being randomly placed on the level.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Orctown]], to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;prevent &lt;/ins&gt;arriving inside the town when being randomly placed on the level.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{upcoming|NetHack 3.7.0|As of {{commit|c4c31ae6a8cdab60b319cc8b355445968e8ec286}}, [[Mines' End#The Gnome King's Wine Cellar|the wine cellar]] version of Mines' End has a teleport region to exclude the treasure chamber as an arrival location.}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{upcoming|NetHack 3.7.0|As of {{commit|c4c31ae6a8cdab60b319cc8b355445968e8ec286}}, [[Mines' End#The Gnome King's Wine Cellar|the wine cellar]] version of Mines' End has a teleport region to exclude the treasure chamber as an arrival location.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>ScienceBall</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=171527&amp;oldid=prev</id>
		<title>Cathartes: add levels that have teleport regions</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=171527&amp;oldid=prev"/>
		<updated>2024-06-22T03:06:11Z</updated>

		<summary type="html">&lt;p&gt;add levels that have teleport regions&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 03:06, 22 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A '''teleport region''' is a region on a level that controls the possible locations of [[teleport]]s, and placement when arriving to a level via [[hole]], [[trap door]], and [[levelport]].  Teleport regions are defined &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;as rectangular areas &lt;/del&gt;in level definition files using the [[Des-file_format#TELEPORT_REGION|TELEPORT_REGION]] directive.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A '''teleport region''' is a region on a level that controls the possible locations of [[teleport]]s, and placement when arriving to a level via [[hole]], [[trap door]], and [[levelport]].  Teleport regions are defined in level definition files using the [[Des-file_format#TELEPORT_REGION|TELEPORT_REGION]] directive.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is not possible to teleport from inside to outside, or from outside to inside, a teleport region.{{refsrc|src/teleport.c|222|nethack=3.6.7|comment=&amp;lt;code&amp;gt;tele_jump_ok()&amp;lt;/code&amp;gt; prevents teleporting across a &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; region boundary}}{{refsrc|util/lev_comp.y|1820-L1833|nethack=3.6.7|comment=The DES file parser converts the TELEPORT_REGION directive into a LR_TELE, LR_UPTELE, or LR_DOWNTELE value}}{{refsrc|src/mkmaze.c|505-L530|nethack=3.6.7|comment=&amp;lt;code&amp;gt;fixup_special()&amp;lt;/code&amp;gt; converts the &amp;lt;code&amp;gt;LR_*TELE&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; regions}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is not possible to teleport from inside to outside, or from outside to inside, a teleport region.{{refsrc|src/teleport.c|222|nethack=3.6.7|comment=&amp;lt;code&amp;gt;tele_jump_ok()&amp;lt;/code&amp;gt; prevents teleporting across a &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; region boundary}}{{refsrc|util/lev_comp.y|1820-L1833|nethack=3.6.7|comment=The DES file parser converts the TELEPORT_REGION directive into a LR_TELE, LR_UPTELE, or LR_DOWNTELE value}}{{refsrc|src/mkmaze.c|505-L530|nethack=3.6.7|comment=&amp;lt;code&amp;gt;fixup_special()&amp;lt;/code&amp;gt; converts the &amp;lt;code&amp;gt;LR_*TELE&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; regions}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Teleport regions may specify whether they are possible arrival destinations for a particular direction of arrival (upwards, downwards, or both).  When arriving at a level via hole, trap door, or levelport, the hero is randomly placed, and will be subject to the teleport region of their arrival direction.{{refsrc|src/dungeon.c|1214|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; is called when hero is randomly placed while enter a level}}{{refsrc|src/do.c|1540|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; call from &amp;lt;code&amp;gt;goto_level&amp;lt;/code&amp;gt;}}  Monsters and objects are also subject to the teleport region when arriving.{{refsrc|src/teleport.c|1132|nethack=3.6.7|comment=monster arrival}}{{refsrc|src/teleport.c|1446|nethack=3.6.7|comment=object arrival}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Teleport regions may specify whether they are possible arrival destinations for a particular direction of arrival (upwards, downwards, or both).  When arriving at a level via hole, trap door, or levelport, the hero is randomly placed, and will be subject to the teleport region of their arrival direction.{{refsrc|src/dungeon.c|1214&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|nethack=3.6.7&lt;/ins&gt;|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; is called when hero is randomly placed while enter a level}}{{refsrc|src/do.c|1540|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; call from &amp;lt;code&amp;gt;goto_level&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;()&lt;/ins&gt;&amp;lt;/code&amp;gt;}}  Monsters and objects are also subject to the teleport region when arriving.{{refsrc|src/teleport.c|1132|nethack=3.6.7|comment=monster arrival}}{{refsrc|src/teleport.c|1446|nethack=3.6.7|comment=object arrival}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following special levels contain teleport regions:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following special levels contain teleport regions:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{todo|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;add &lt;/del&gt;levels}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{todo|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Add the missing boundary descriptions}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* The [[Castle]] has 2 teleport regions, one each for upward and downward arrival.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [[Medusa's Island]], all four versions, in order to place arrival locations near the appropriate stairs.  The third version only has a teleport region for downwards arrival, while the others have both upward and downward regions.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [[Big Room#Big_Room_.2310|Big Room #10]], preventing downwards arrival into the fog maze.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [[Endgame]] &lt;/ins&gt;levels&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, controlling arrival location.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [[Wizard's Tower]] levels&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [[Fake Wizard's Tower]] levels, excluding the central towers as arrival locations.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [[Valley of the Dead]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [[Juiblex's Swamp]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [[Orcus-town]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [[Asmodeus' Lair]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [[Baalzebub's Lair]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [[Moloch's Sanctum]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [[Fort Ludios]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;* [[Orctown]], to exclude the arriving inside the town when being randomly placed on the level.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{upcoming|NetHack 3.7.0|As of {{commit|c4c31ae6a8cdab60b319cc8b355445968e8ec286}}, [[Mines' End#The Gnome King's Wine Cellar|the wine cellar]] version of Mines' End has a teleport region to exclude the treasure chamber as an arrival location.&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==References==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cathartes</name></author>
		
	</entry>
	<entry>
		<id>https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=171524&amp;oldid=prev</id>
		<title>Cathartes: create article</title>
		<link rel="alternate" type="text/html" href="https://nethackwiki.com/index.php?title=Teleport_region&amp;diff=171524&amp;oldid=prev"/>
		<updated>2024-06-22T02:40:57Z</updated>

		<summary type="html">&lt;p&gt;create article&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A '''teleport region''' is a region on a level that controls the possible locations of [[teleport]]s, and placement when arriving to a level via [[hole]], [[trap door]], and [[levelport]].  Teleport regions are defined as rectangular areas in level definition files using the [[Des-file_format#TELEPORT_REGION|TELEPORT_REGION]] directive.&lt;br /&gt;
&lt;br /&gt;
It is not possible to teleport from inside to outside, or from outside to inside, a teleport region.{{refsrc|src/teleport.c|222|nethack=3.6.7|comment=&amp;lt;code&amp;gt;tele_jump_ok()&amp;lt;/code&amp;gt; prevents teleporting across a &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; region boundary}}{{refsrc|util/lev_comp.y|1820-L1833|nethack=3.6.7|comment=The DES file parser converts the TELEPORT_REGION directive into a LR_TELE, LR_UPTELE, or LR_DOWNTELE value}}{{refsrc|src/mkmaze.c|505-L530|nethack=3.6.7|comment=&amp;lt;code&amp;gt;fixup_special()&amp;lt;/code&amp;gt; converts the &amp;lt;code&amp;gt;LR_*TELE&amp;lt;/code&amp;gt; into &amp;lt;code&amp;gt;updest&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;dndest&amp;lt;/code&amp;gt; regions}}&lt;br /&gt;
&lt;br /&gt;
Teleport regions may specify whether they are possible arrival destinations for a particular direction of arrival (upwards, downwards, or both).  When arriving at a level via hole, trap door, or levelport, the hero is randomly placed, and will be subject to the teleport region of their arrival direction.{{refsrc|src/dungeon.c|1214|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; is called when hero is randomly placed while enter a level}}{{refsrc|src/do.c|1540|nethack=3.6.7|comment=&amp;lt;code&amp;gt;u_on_rndspot()&amp;lt;/code&amp;gt; call from &amp;lt;code&amp;gt;goto_level&amp;lt;/code&amp;gt;}}  Monsters and objects are also subject to the teleport region when arriving.{{refsrc|src/teleport.c|1132|nethack=3.6.7|comment=monster arrival}}{{refsrc|src/teleport.c|1446|nethack=3.6.7|comment=object arrival}}&lt;br /&gt;
&lt;br /&gt;
The following special levels contain teleport regions:&lt;br /&gt;
{{todo|add levels}}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{nethack-367}}&lt;/div&gt;</summary>
		<author><name>Cathartes</name></author>
		
	</entry>
</feed>