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:
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.
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.