I'm trying to set a variable to the hit rate for an enemy so I can use it for some dialogue outside of battle. However, while I can get the enemy's ex-parameter code (22):
and I can get the hit rate's dataId (0):
I can't figure out how to get anything for the hit rate (or any other ex-parameter), which I've set (as a test) to 35%.
I was able to figure out how to get the hit rate for my party leader as a whole number:
But I can't get any value other than 0 for an enemy that's in the database.
I've also tried:
, and that returns 0 as well.
I'm not trying to change the hit rate or anything weird like that, I'm just using it for some dialogue with an NPC who wants to compare hit rates (and other ex-parameters) with the party leader.
Thank you.
Code:
$dataEnemies[1].traits[0].code;
and I can get the hit rate's dataId (0):
Code:
$dataEnemies[1].traits[0].dataId;
I can't figure out how to get anything for the hit rate (or any other ex-parameter), which I've set (as a test) to 35%.
I was able to figure out how to get the hit rate for my party leader as a whole number:
Code:
($gameParty.leader().hit * 100);
But I can't get any value other than 0 for an enemy that's in the database.
I've also tried:
Code:
($dataEnemies[1].hit * 100);
I'm not trying to change the hit rate or anything weird like that, I'm just using it for some dialogue with an NPC who wants to compare hit rates (and other ex-parameters) with the party leader.
Thank you.