<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=Block</id>
	<title>Block - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=Block"/>
	<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Block&amp;action=history"/>
	<updated>2026-11-21T20:23:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=Block&amp;diff=55761&amp;oldid=prev</id>
		<title>Andrew Branscom: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Block&amp;diff=55761&amp;oldid=prev"/>
		<updated>2025-02-16T13:35:47Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:35, 16 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=Block&amp;diff=55760&amp;oldid=prev</id>
		<title>Andrew Branscom: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Block&amp;diff=55760&amp;oldid=prev"/>
		<updated>2024-06-03T04:27:09Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:27, 2 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=Block&amp;diff=55759&amp;oldid=prev</id>
		<title>sierraw&gt;Andrew Branscom: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Block&amp;diff=55759&amp;oldid=prev"/>
		<updated>2022-01-28T16:19:35Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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;block&amp;#039;&amp;#039;&amp;#039; command sets up an invisible rectangular block that can restrict screen object movement.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
block([[number|byt]] X1, [[number|byt]] Y1, [[number|byt]] X2, [[number|byt]] Y2);&lt;br /&gt;
&lt;br /&gt;
== Remarks ==&lt;br /&gt;
&lt;br /&gt;
[[Screen objects]] are not allowed to cross into or out of the bounding rectangle created by the &amp;#039;&amp;#039;&amp;#039;block&amp;#039;&amp;#039;&amp;#039; command, unless an &amp;#039;&amp;#039;&amp;#039;[[ignore.blocks]]&amp;#039;&amp;#039;&amp;#039; command has been executed for that object. If an object is inside the block when the block is created, it will not be allowed to move on or outside the block. If the object is outside the block, it will not be allowed to move inside it, but it will move onto the block. Note that this means it is possible for objects to &amp;#039;jump&amp;#039; over a block if their [[step.size|step size]] is large enough. AGI uses the leftmost pixel of a screen object&amp;#039;s baseline to compare to the block coordinates. &lt;br /&gt;
&lt;br /&gt;
There can only be one block on the screen at a time. If the &amp;#039;&amp;#039;&amp;#039;block&amp;#039;&amp;#039;&amp;#039; command is executed when a block already exists, the new block will replace the old one.The &amp;#039;&amp;#039;&amp;#039;[[unblock]]&amp;#039;&amp;#039;&amp;#039; command will remove a block from the screen.&lt;br /&gt;
&lt;br /&gt;
See the [[Blocks]] discussion in the [[Managing Obstacles]] topic for more information.&lt;br /&gt;
&lt;br /&gt;
== Possible Errors ==&lt;br /&gt;
&lt;br /&gt;
AGI expects the coordinates to be in upper-left to lower-right format. X1 &amp;#039;&amp;#039;&amp;#039;must&amp;#039;&amp;#039;&amp;#039; be less than X2 and Y1 &amp;#039;&amp;#039;&amp;#039;must&amp;#039;&amp;#039;&amp;#039; be less than Y2, or the block will always be ignored by all screen objects.&lt;br /&gt;
&lt;br /&gt;
(X2 - X1) and (Y2 - Y1) must both be greater than 1. If either is not, there will be no &amp;#039;interior&amp;#039; area inside the block, and the block will always be ignored by all screen objects.&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;&lt;br /&gt;
block(25, 25, 100, 100);  [ create a block&lt;br /&gt;
ignore.block(o1);         [ object 1 will ignore the block&lt;br /&gt;
...&lt;br /&gt;
observe.block(o1);        [ now object 1 will observe the block&lt;br /&gt;
...&lt;br /&gt;
unblock();                [ remove the block&lt;br /&gt;
&lt;br /&gt;
[ examples of blocks that will NOT work&lt;br /&gt;
block(100, 100, 25, 25);  [ coordinates are in wrong order; this block will never work&lt;br /&gt;
...&lt;br /&gt;
block(25, 25, 100, 26);   [ difference is Y value is too small so this block will never work&lt;br /&gt;
&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;
| 90 (0x5A hex)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
[[Screen Object/View Commands]]&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;
&amp;#039;&amp;#039;&amp;#039;[[observe.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;
&lt;br /&gt;
[[Category:Commands]]&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>sierraw&gt;Andrew Branscom</name></author>
	</entry>
</feed>