MZ Fetching Enemy Parameters by Database ID

Simple code here, trying to set a variable to an enemy's attack (or any) stat, outside of battle.

At the moment it looks a bit like:

BEL = $dataEnemies[28].params0; $gameVariables.setValue(111, BEL)

I can get .id and .name to work, but trying to get any of .params doesn't appear to do anything, it always results in 0.
I initially tried doing this with the EliMZ Custom Parameters plugin (using new parameters) but the functions in that wouldn't work for me either, so a solution in either direction would be lovely~

Halp pls.
It needs to be params[0], e.g.
JavaScript:
$gameVariables.setValue(111, $dataEnemies[28].params[0]);
But that's MHP. For attack, use params[2] instead.
There's no such property as "params0".

Did you look at the pinned thread of MZ script calls?

The params property is an array, so you'd do
Code:
$gameVariables.setValue(111, $dataEnemies[28].params[0])
for that enemy's mhp.
Believe it or not, the MZ script calls reference that Archeia posted lists them as .params0 to .params7:

paramas.png

If the first result on google is somehow not the pinned thread, then fate has bamboozled me, lol.

Thanks anyway, folks~!
Believe it or not, the MZ script calls reference that Archeia posted lists them as .params0 to .params7:
Then we'll report that as an error in the sheet!

Original thread: https://forums.rpgmakerweb.com/threads/fetching-enemy-parameters-by-database-id.164676/