MV Retrieving skill ID in Victor Engine ATB

I'm using the VE ATB and I'm trying to create a spell stealing effect. My idea for how it would work is that you would use it on an enemy to cancel their cast, then call a common event to get the id of the skill they were casting, and give the player a state based on it's ID. This state would give the user the skill the target was casting, and the skill would remove the state when used, so you can only use it once unless you steal it again. Is there a way I could get the ID of the skill being cast to do this?
Also if there's another way to achieve the same effect that would work to, I don't necessarily need to do it this way.
Check out the Kadokawa plugins in your DLC folder, LastUsedItem may do what you want. Otherwise, yes, Victor's plugin is probably tracking it somehow.
Check out the Kadokawa plugins in your DLC folder, LastUsedItem may do what you want. Otherwise, yes, Victor's plugin is probably tracking it somehow.
Thanks, that seems to be a step in the right direction at least. I had an issue where it would think my last used skill was the player's spell stealing skill, so I tried a workaround where I would give the enemy a skill that called a common event to save the ID in another variable and then use the Force Action event command to make the actual attack happen, but this skipped the casting time and made it come out instantly so I'll have to play around with it some more to figure something out.

Original thread: https://forums.rpgmakerweb.com/threads/retrieving-skill-id-in-victor-engine-atb.147804/