<?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=Show.obj.v</id>
	<title>Show.obj.v - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://agiwiki.sierrahelp.com//index.php?action=history&amp;feed=atom&amp;title=Show.obj.v"/>
	<link rel="alternate" type="text/html" href="http://agiwiki.sierrahelp.com//index.php?title=Show.obj.v&amp;action=history"/>
	<updated>2026-10-03T21:14:25Z</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=Show.obj.v&amp;diff=13109&amp;oldid=prev</id>
		<title>Andrew Korson: Created page with &quot;The &#039;&#039;&#039;show.obj.v&#039;&#039;&#039; command indirectly displays a view representing an inventory item and its description.  == Syntax ==  show.obj.v(variable|va...&quot;</title>
		<link rel="alternate" type="text/html" href="http://agiwiki.sierrahelp.com//index.php?title=Show.obj.v&amp;diff=13109&amp;oldid=prev"/>
		<updated>2019-04-23T00:00:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The &amp;#039;&amp;#039;&amp;#039;show.obj.v&amp;#039;&amp;#039;&amp;#039; command indirectly displays a &lt;a href=&quot;/index.php/View_Resource_(AGI)&quot; class=&quot;mw-redirect&quot; title=&quot;View Resource (AGI)&quot;&gt;view&lt;/a&gt; representing an &lt;a href=&quot;/index.php/Inventory_item&quot; class=&quot;mw-redirect&quot; title=&quot;Inventory item&quot;&gt;inventory item&lt;/a&gt; and its description.  == Syntax ==  show.obj.v(variable|va...&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;show.obj.v&amp;#039;&amp;#039;&amp;#039; command indirectly displays a [[View Resource (AGI)|view]] representing an [[inventory item]] and its description.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
show.obj.v([[variable|var]] vVIEWNUM);&lt;br /&gt;
&lt;br /&gt;
== Remarks ==&lt;br /&gt;
&lt;br /&gt;
The game is paused, and [[cel]] 0 of [[loop]] 0 of [[View Resource (AGI)|view]] B, where B is the value of &amp;#039;&amp;#039;&amp;#039;vVIEWNUM&amp;#039;&amp;#039;&amp;#039;, is shown centered at the bottom of the screen. The [[View Resource (AGI)#Description|view description]] is displayed above in a message box. Pressing any key erases the object and its definition, and play resumes.&lt;br /&gt;
&lt;br /&gt;
Despite its name, the &amp;#039;&amp;#039;&amp;#039;show.obj.v&amp;#039;&amp;#039;&amp;#039; command is not associated with [[screen object]]s. In this context &amp;#039;obj&amp;#039; refers to things a player may &amp;#039;acquire&amp;#039; during a game, known as &amp;#039;[[inventory item]]s&amp;#039;. Note that the view number displayed is completely independent; it is not automatically linked in any way to inventory item numbers.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;show.obj.v&amp;#039;&amp;#039;&amp;#039; command is most often used to display a close up image (cel 0 of loop 0) of [[inventory item]]s that a player might pick up during the game.  AGI displays the cel without any border, so if a border is desired it must be included in the cel&amp;#039;s image. The cel is drawn with [[priority]] of 15. AGI will mask out [[transparent colors]] just like any other view, so the transparent color is usually set to a color that is not used by the cel.&lt;br /&gt;
&lt;br /&gt;
Unlike most AGI commands involving [[View Resource (AGI)|view]] resources, the view does not need to be loaded first. AGI searches all currently loaded views, and if the view needed is not found, it will load it automatically. If an error occurs while loading the view, AGI will display a message of &amp;quot;Not now&amp;quot; and AGI will move to the next [[logic]] command without taking any further action. If there is insufficient memory to draw the cel on the screen, AGI will skip the image and just display the view description.&lt;br /&gt;
&lt;br /&gt;
A common use of &amp;#039;&amp;#039;&amp;#039;show.obj.v&amp;#039;&amp;#039;&amp;#039; is to display the image of an item selected from the inventory item &amp;#039;&amp;#039;&amp;#039;[[status]]&amp;#039;&amp;#039;&amp;#039; screen.&lt;br /&gt;
&lt;br /&gt;
== Possible Errors ==&lt;br /&gt;
&lt;br /&gt;
You should not use the &amp;#039;&amp;#039;&amp;#039;show.obj.v&amp;#039;&amp;#039;&amp;#039; command on views that do not have a [[View Resource (AGI)#Description|view description]] attached. AGI does not validate that a valid description exists, and if there is not one, AGI will use an invalid pointer and display meaningless characters.&lt;br /&gt;
&lt;br /&gt;
If you attempt to show a [[View Resource (AGI)|view]] that does not exist, AGI will raise a [[runtime error]] and crash.&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;
selectedItem = 0; [ make sure nothing is pre-selected&lt;br /&gt;
set(inv_select_enabled);  [ enable selection&lt;br /&gt;
status();&lt;br /&gt;
if(selectedItem !=0 &amp;amp;&amp;amp; selectedItem != 255)&lt;br /&gt;
  { [ if something was selected&lt;br /&gt;
  v90 = selectedItem;&lt;br /&gt;
  v90 += 200; [ item views are offset by 200&lt;br /&gt;
  show.obj.v(v90);&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 version 2.411 and above.&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;
| 162 (0xA2 hex)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
[[Inventory Item Commands]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;[[show.obj]]&amp;#039;&amp;#039;&amp;#039;&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>