Evaluate Opponent

I'm trying to work out a way for a skill to allow players to evaluate opponents during combat (i.e. to see what elemental weaknesses they have), the main stumbling block is that I can't work out how to get the ID of the monster the player targets if there are multiple different monsters on screen.

Original thread: https://forums.rpgmakerweb.com/threads/evaluate-opponent.92965/