<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://agiwiki.sierrahelp.com//index.php?action=history&amp;feed=atom&amp;title=Observe.blocks</id>
	<title>Observe.blocks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://agiwiki.sierrahelp.com//index.php?action=history&amp;feed=atom&amp;title=Observe.blocks"/>
	<link rel="alternate" type="text/html" href="http://agiwiki.sierrahelp.com//index.php?title=Observe.blocks&amp;action=history"/>
	<updated>2026-09-20T03:23:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>http://agiwiki.sierrahelp.com//index.php?title=Observe.blocks&amp;diff=12857&amp;oldid=prev</id>
		<title>Andrew Korson: Created page with &quot;The &#039;&#039;&#039;observe.blocks&#039;&#039;&#039; command prevents an object from crossing the boundary of a block or a conditional control line.  == Syntax ==  observe.blocks(obj oA...&quot;</title>
		<link rel="alternate" type="text/html" href="http://agiwiki.sierrahelp.com//index.php?title=Observe.blocks&amp;diff=12857&amp;oldid=prev"/>
		<updated>2019-04-14T22:04:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The &amp;#039;&amp;#039;&amp;#039;observe.blocks&amp;#039;&amp;#039;&amp;#039; command prevents an object from crossing the boundary of a block or a conditional control line.  == Syntax ==  observe.blocks(&lt;a href=&quot;/index.php/Screen_object&quot; title=&quot;Screen object&quot;&gt;obj&lt;/a&gt; oA...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;observe.blocks&amp;#039;&amp;#039;&amp;#039; command prevents an object from crossing the boundary of a block or a conditional control line.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
observe.blocks([[screen object|obj]] oA);&lt;br /&gt;
&lt;br /&gt;
== Remarks ==&lt;br /&gt;
&lt;br /&gt;
If [[screen object]] &amp;#039;&amp;#039;&amp;#039;oA&amp;#039;&amp;#039;&amp;#039; was previously set to ignore [[blocks]] (using the &amp;#039;&amp;#039;&amp;#039;[[ignore.blocks]]&amp;#039;&amp;#039;&amp;#039; command), the &amp;#039;&amp;#039;&amp;#039;observe.blocks&amp;#039;&amp;#039;&amp;#039; command restores normal behavior.&lt;br /&gt;
&lt;br /&gt;
In addition to observing blocks, this command will also cause objects to observe conditional [[control lines]] (pixels with [[priority]] of 1 on the priority screen).&lt;br /&gt;
&lt;br /&gt;
== Possible Errors ==&lt;br /&gt;
&lt;br /&gt;
AGI does not check that screen object number &amp;#039;&amp;#039;&amp;#039;oA&amp;#039;&amp;#039;&amp;#039; is a valid [[screen object]]. If it is not, this command will overwrite other data on the [[memory heap]], which may cause unexpected results, including possibly [[crashing AGI]].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;CodeBlockHeader&amp;quot;&amp;gt;Code:&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;agi&amp;quot;&amp;gt;block(25, 25, 100, 100);  [ create a block&lt;br /&gt;
ignore.blocks(o1);        [ object 1 will ignore the block&lt;br /&gt;
...&lt;br /&gt;
observe.blocks(o1);       [ now object 1 will observe the block&lt;br /&gt;
...&lt;br /&gt;
unblock();                [ remove the block&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Technical Information ==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
| style=&amp;quot;background-color: #efefef&amp;quot; width=&amp;quot;200&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Required Interpreter Version:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| width=&amp;quot;175&amp;quot; | Available in all AGI versions.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color: #efefef&amp;quot; | &amp;#039;&amp;#039;&amp;#039;Byte-Code Value:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| 89 (0x59 hex)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[block]]&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[unblock]]&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[ignore.blocks]]&amp;#039;&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Managing Obstacles]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Control Lines]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Category:Commands]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Andrew Korson</name></author>
	</entry>
</feed>