Store Enemy Stat in Variable

A (hopefully) quick question, is there a script call that can store an enemy's stat as a variable.

To clarify, I'm not looking to set an enemy's stat with the variable, just for it to check the ATK stat of enemy 5, and store that value in a variable.
depends on where you want to do this.
Inside a troop event there is no need for a script call, you can access all enemy stats inside that troop with the control variable command (game data section)
Outside of a troop event, enemies don't exist as entities - only the database template exists there, and then you need a script call to access those templates.
Thanks for the quick response.👋 I'm hoping to use this out of battle.
Hmmm we just need to find the MV equivalent of the Ace script call you asked for in the script call thread xD

Which seems to be

$dataEnemies[ID].params[param_id]

So just use it on the script option of the Change Variable event command or in a script call

Code:
$gameVariables.set(variableId,enemy stat here);
Pretty much 😛 Ended up really liking the mechanic, and wanted to use it in another project too.

I'm at class atm, but I'll report back only i get the chance to try it out.

EDIT: Works like a charm! Thanks again! 🙏

Original thread: https://forums.rpgmakerweb.com/threads/store-enemy-stat-in-variable.106100/