Plot:NPC at pixel

From OHRRPGCE-Wiki

Jump to: navigation, search
NPC at pixel (x,y,number)

This command returns a reference to the NPC at the given X and Y coordinate in pixels. That is, any npc whose 20x20 sprite (including transparent sections) is over that pixel. The optional third argument lets you choose which NPC to reference in case there is more than one NPC standing on that same spot (starting from the bottom-most NPC, which is number 0). You can also pass the constant get count for the third argument to return the total number of npcs on that tile.

[edit] See Also

Personal tools