Hello. I was wondering if anyone could help me figure out this technical problem.
Say I got 4 monster NPCs on a monster group placed on a particular overworld screen. The player talks to one of them. How can I find out which of the four NPC monsters in the group the player talked to? For example get a number from 0 to 3 that tells me which one of the four player is talking to. I mean if that's the way the engine works. I have some idea of what is going on but not this specific. The purpose being to uniquely identify the NPC programmatically (at least for the purposes of a single screen).
Say I got 4 monster NPCs on a monster group placed on a particular overworld screen. The player talks to one of them. How can I find out which of the four NPC monsters in the group the player talked to? For example get a number from 0 to 3 that tells me which one of the four player is talking to. I mean if that's the way the engine works. I have some idea of what is going on but not this specific. The purpose being to uniquely identify the NPC programmatically (at least for the purposes of a single screen).