Difference between revisions of "FindBagID"

From Wiki
Jump to: navigation, search
 
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
−
__NOTOC__
+
{{header|FindItem|ro|The #findBagID system variable contains the bagID the object returned by [[findItem]] is contained in.}}
−
== #findBagID ==
+
−
'''FindItem System Variables'''
+
−
=== Description ===
+
−
{{ro}}
+
  
−
==== Example ====
+
== Example ==
 
<pre>
 
<pre>
 +
finditem POF C
 +
if #FINDCNT > 0
 +
{
 +
display ok I found a stack of gold in a bag, the ID of the bag I found it in is #FINDBAGID
 +
}
 +
if #FINDCNT < 1
 +
{
 +
display ok I could not find any gold in open containers.
 +
}
 +
halt
 +
</pre>
  
−
 
+
=See Also=
−
</pre>
+
{{FindItem}}
−
==== See Also ====
+
−
{|
+
−
| Width=200px |
+
−
|}
+
−
----
+
−
{|
+
−
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px | [[Documentation#FindItem|FindItem System Variables]]
+
−
|}
+

Latest revision as of 10:12, 7 September 2007

⇒ The #findBagID system variable contains the bagID the object returned by findItem is contained in.

Example

finditem POF C
if #FINDCNT > 0
{
	display ok I found a stack of gold in a bag, the ID of the bag I found it in is #FINDBAGID
}
if #FINDCNT < 1
{
	display ok I could not find any gold in open containers.
}
halt

See Also

FindItem

  • These system variables are set when the FindItem command is used.
#findID ⇒ Returns the id of the object returned by findItem
#findType ⇒ Returns the type of the object returned by findItem
#findX ⇒ Returns the x-coordinate of the object returned by findItem
#findY ⇒ Returns the y-coordinate of the object returned by findItem
#findZ ⇒ Returns the z-coordinate of the object returned by findItem
#findDist ⇒ Returns the distance from the character to the object returned by findItem
#findKind ⇒ Returns the kind of the object returned by findItem
#findStack ⇒ Returns the number of stacked items in the object returned by findItem
#findBagID ⇒ Returns the bag the object returned by findItem is contained in
#findMod ⇔ Returns displacement for #findX and #findY
#findRep ⇒ Returns the reputation of the object returned by findItem
#findCol ⇒ Returns the color of the object returned by findItem
#findIndex ⇔ Gets the values of all other findItem results without restarting the time-consuming FindItem command.
#findCnt ⇒ Returns the number of objects that matches what was searched for with the findItem command