I understand that adding note data such as:
<value: integer> will display in the meta tag and can be called, and I've had success using this, however.
I'm trying to develop a weakness/absorb/resist section to my bestiary script and I don't really need the text. The page is already laid out, but instead of trying to use trait information I was just going to manually enter the meta data.
What I tried:
Note tag:
In Game_Enemy.prototype.setup:
In Window_EnemyBookStatus:
The result is always undefined. If I enter this into the console, it shows the correct value:
I tried changing the value to something else, still comes back as undefined. Other values worked. What gives?
<value: integer> will display in the meta tag and can be called, and I've had success using this, however.
I'm trying to develop a weakness/absorb/resist section to my bestiary script and I don't really need the text. The page is already laid out, but instead of trying to use trait information I was just going to manually enter the meta data.
What I tried:
Note tag:
Code:
<weakness: \\i[64]>
In Game_Enemy.prototype.setup:
Code:
this.weakness = $dataEnemies[enemyId].meta['weakness'] || null;
In Window_EnemyBookStatus:
Code:
this.drawTextEx(enemy.weakness, x, y);
The result is always undefined. If I enter this into the console, it shows the correct value:
Code:
$dataEnemies[1].meta['weakness']
I tried changing the value to something else, still comes back as undefined. Other values worked. What gives?