Hi there! I'm using Yanfly's Action Sequences and I'm just looking for a particular function that I can't find in any documentation I checked, which is checking the index of the enemy that used it so I can run one of two particular choices in the action sequences. Here's an example:
I've tried using user.index(), user.id(), user.enemyId(), and user.enemyIndex() but none of them works. I've used the function for checking a player's index before, but never for an enemy's, and I can't find the function listed anywhere. I might also be getting my syntax wrong, but I don't know.
Code:
motion spell: user
action effect
if user.enemyId() == 0
change variable 139 = 3
change variable 140 = 0
else
change variable 142 = 3
change variable 143 = 0
end
common event: 52
I've tried using user.index(), user.id(), user.enemyId(), and user.enemyIndex() but none of them works. I've used the function for checking a player's index before, but never for an enemy's, and I can't find the function listed anywhere. I might also be getting my syntax wrong, but I don't know.