MV Checking user troop member index

Hi there,

I'm trying to figure out how I ask:

"If user troop index is X"

I have an enemy skill that can be used by multiple enemies in the troop, but it's crucial I determine what troop index the user is.

Note that I don't just want the enemy ID, I am looking for the user's troop index specifically.

Thanks!
not sure if it can cause an issue, but it as something like: $gameTroops.member[2]
I believe, not entirely sure. (member or members) or neither.

as the issue it might have, if you target enemy 4, and next battle has 2-3 enemies,
you need to ommit the 4th if not exist as it could crash the game.
(member or members)
its members (img below)
Screenshot_1.png
Ah, I believe what I'm looking for is simply:

Code:
if (user.index() == x) {

Original thread: https://forums.rpgmakerweb.com/threads/checking-user-troop-member-index.152355/