<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.zzt.org/w/index.php?action=history&amp;feed=atom&amp;title=Head</id>
	<title>Head - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.zzt.org/w/index.php?action=history&amp;feed=atom&amp;title=Head"/>
	<link rel="alternate" type="text/html" href="https://wiki.zzt.org/w/index.php?title=Head&amp;action=history"/>
	<updated>2026-04-15T04:38:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.zzt.org/w/index.php?title=Head&amp;diff=568&amp;oldid=prev</id>
		<title>Asie: Created page with &quot;{{Element |name=Head |zzt-oop name=head |category=creature |id={{Byte|44}} |color= |char={{CharSwatch|233}} |stats=yes |cycle=2 |p1=Intelligence |p2=Deviance |score=1 |destructible=yes |effect on movement=damaging |uses zzt-oop color=yes }}  &#039;&#039;&#039;Heads&#039;&#039;&#039; lead and control the body of a Centipede. They have historically been considered the most complex of the built-in ZZT elements&lt;ref&gt;wep. (2005, June 26) [https://zzt.org/fora/viewtopic.php?p=41947#p41947 centipede...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.zzt.org/w/index.php?title=Head&amp;diff=568&amp;oldid=prev"/>
		<updated>2025-12-23T22:04:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Element |name=Head |zzt-oop name=head |category=creature |id={{Byte|44}} |color= |char={{CharSwatch|233}} |stats=yes |cycle=2 |p1=Intelligence |p2=Deviance |score=1 |destructible=yes |effect on movement=damaging |uses zzt-oop color=yes }}  &amp;#039;&amp;#039;&amp;#039;Heads&amp;#039;&amp;#039;&amp;#039; lead and control the body of a &lt;a href=&quot;/wiki/Head&quot; title=&quot;Head&quot;&gt;Centipede&lt;/a&gt;. They have historically been considered the most complex of the built-in ZZT elements&amp;lt;ref&amp;gt;wep. (2005, June 26) [https://zzt.org/fora/viewtopic.php?p=41947#p41947 centipede...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Element&lt;br /&gt;
|name=Head&lt;br /&gt;
|zzt-oop name=head&lt;br /&gt;
|category=creature&lt;br /&gt;
|id={{Byte|44}}&lt;br /&gt;
|color=&lt;br /&gt;
|char={{CharSwatch|233}}&lt;br /&gt;
|stats=yes&lt;br /&gt;
|cycle=2&lt;br /&gt;
|p1=Intelligence&lt;br /&gt;
|p2=Deviance&lt;br /&gt;
|score=1&lt;br /&gt;
|destructible=yes&lt;br /&gt;
|effect on movement=damaging&lt;br /&gt;
|uses zzt-oop color=yes&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Heads&amp;#039;&amp;#039;&amp;#039; lead and control the body of a [[Head|Centipede]]. They have historically been considered the most complex of the built-in ZZT elements&amp;lt;ref&amp;gt;wep. (2005, June 26) [https://zzt.org/fora/viewtopic.php?p=41947#p41947 centipede movement in zzt++ 0.8.48]. z2.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;Dr. Dos. (2009, December 28) [https://zzt.org/fora/viewtopic.php?p=64046#p64046 Tyger]. z2.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first thing a Head does is try and update its movement direction:&lt;br /&gt;
&lt;br /&gt;
* If aligned with the player, it has a chance (more likely with higher Intelligence) of switching to move towards it.&lt;br /&gt;
* In addition, the Head has a chance (more likely with higher Deviance) of switching to a random direction.&lt;br /&gt;
* If the Head has not decided on a direction to move in, it will choose to move in a random direction.&lt;br /&gt;
&lt;br /&gt;
It will then try to move:&lt;br /&gt;
&lt;br /&gt;
* First, it will try to move in the current direction.&lt;br /&gt;
* Failing that, it will try turning by moving in one of the two perpendicular directions, chosen randomly.&lt;br /&gt;
* Failing that, it will try turning around; if necessary, the Head will be moved to the end of the centipede body.&lt;br /&gt;
&lt;br /&gt;
These movements may attack the player in the process.&lt;br /&gt;
&lt;br /&gt;
Finally, the centipede will move all of its Segments towards the new Head location, using a linked list - each Segment has a Leader and Follower value, which point to a specific stat in the chain. Notably, it is never verified whether the centipede is comprised only of other Segments - by taking advantage of engine quirks (TODO), any stat can be moved in this manner.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Elements]]&lt;br /&gt;
{{ElementsNavbox}}&lt;/div&gt;</summary>
		<author><name>Asie</name></author>
	</entry>
</feed>