Skip to content

OBJFOUND

Utodev edited this page Apr 26, 2014 · 2 revisions

OBJFOUND attrno locno+

This condition succeeds if there is some Object at the Location locno. with the attribute attrno. set to one. If that happens to be true, flag 11 will be changed and the number of the object found will be stored in it. If it fails, the value 255 will be stored in flag 11.

Important notes:

  • If we want to use OBJFOUND with the current location we should set @38 as locno.
  • OBJFOUND ignores bit 3 of flag 12, that is, it will also check any object that has the NPC attribute on.

See also:

OBJNOTFOUND

Clone this wiki locally