Difference between revisions of "FindY"
From Wiki
m |
|||
| Line 9: | Line 9: | ||
==== Example ==== | ==== Example ==== | ||
<pre> | <pre> | ||
| − | + | .... | |
| − | + | loop: | |
| + | finditem %target | ||
| + | if #CHARPOSX <> #findx || #CHARPOSY <> #findy | ||
| + | { | ||
| + | move #findx #findy 0 0 | ||
| + | goto loop | ||
| + | } | ||
| + | .... | ||
</pre> | </pre> | ||
==== See Also ==== | ==== See Also ==== | ||
Revision as of 07:31, 18 August 2005
#findY
FindItem System Variables
Description
⇒
The #findY system variable contains the y-coordinate of the object returned by findItem. If #findKind equals 0, the coordinate is a screen coordinate, if #findKind equals 1, the coordinate is a world coordinate.
Example
....
loop:
finditem %target
if #CHARPOSX <> #findx || #CHARPOSY <> #findy
{
move #findx #findy 0 0
goto loop
}
....
See Also
| findItem | #findID | #findType | #findX | #findZ | #findDist | #findKind | #findStack | #findBagID | #findMod | #findRep | #findCol | #findCnt |
| Main_Page | Documentation | FindItem System Variables |