Hi, would anyone know how to find out enemy stat from the database for enemy ID 1 via a script call or event call? This call is to be run not during battle.
How to find out enemy stats from event call?
RPG Maker MZ Support
JavaScript:
$dataEnemies[1].params
JavaScript:
$dataEnemies[1].exp
More Explanation:
JavaScript:
// Max HP:
$dataEnemies[enemyId].params[0]
// Max MP:
$dataEnemies[enemyId].params[1]
// Attack:
$dataEnemies[enemyId].params[2]
// Defense
$dataEnemies[enemyId].params[3]
// M. Attack
$dataEnemies[enemyId].params[4]
// M. Defense
$dataEnemies[enemyId].params[5]
// Agility
$dataEnemies[enemyId].params[6]
// Luck
$dataEnemies[enemyId].params[7]
// Experience Points Gained:
$dataEnemies[enemyId].exp
// Gold Gained:
$dataEnemies[enemyId].gold
More reference info: Enemy | RPGMakerMV Library
(Reference is for MV but I think it's all the same Data for MZ is listed there, doesn't detail "traits" though)
Ah, works like a charm. Thanks @ct_bolt.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-find-out-enemy-stats-from-event-call.147034/
