[VXA] How to fetch actor target enemy after actor cast skill?

hi guy. I just ran into problem. That I have no idea how to solve it..
basically I just want to display message with enemy description after actor cast skill like this.
aweeed.png

I just already written script for notetag ,only left is how to fetch current enemy that actor targeting on action.
like after that actor cast skill then message popup with enemy description like that.
also I am using common event with like this.
aeeeed.png

help me please fsfsfsfssfsfssfsfssfffffsfsfsfsfsffsfs
I am by no means a master scripter, so maybe it's just me being dense (not being able to understand from the screenshots), but what exactly do you want to achieve? Do you need the enemy id so that a specific text about them is called? You could store the ID in a variable through target.id or b.id, I think.
Thanks , I finally solved this problem.
edit: wait do I quote the post?
Cool :LZScool: What did you use to get the ID?
I use this method to find ID.
first off give enemy state. (ID 26) then run common event.
okpntwed.png

then check if enemy had state (ID 26) and then get troop.id (I didn't write code to store yet.) then remove enemy state (ID 26)
okepntwed.png
if this is a one-off situation, this solution probably won't fail... but if it's a recurrent thing, you should use the battle manager and the battle scene's resources for this.
targets of actions are part of the action object, which is part of the battle sequence, which is part of the battle scene.
there's a structure for a reason there, and you're bypassing it, which could lead to problems.

Original thread: https://forums.rpgmakerweb.com/threads/vxa-how-to-fetch-actor-target-enemy-after-actor-cast-skill.150741/