How to make a skill that lets you read an enemy's description?
RPG Maker MV SupportI have a proposed solution for you. You will need Yanfly's Skill core, but don't worry. That is part of their free starter pack.
www.yanfly.moe
Give your enemies the following notetag (You can also use any other name for the notetag as long as you adapt the next step accordingly. We are defining a custom notetag here.):
Then give your skill the following notetag (this one is from the skill core, so you actually need to use exactly this one):
Also note that the RPG Maker engine will not let you use skills that do nothing - and skills that only do something through their notetags do nothing in the engine's eyes. To change that you can for example simply have the skill apply a state with a 0% chance. That will have no effect on the actual game, but now the engine sees that the skill does "something".
Skill Core (YEP) - Yanfly.moe Wiki
Give your enemies the following notetag (You can also use any other name for the notetag as long as you adapt the next step accordingly. We are defining a custom notetag here.):
Code:
<EnemyDescription:Your description here!>
Then give your skill the following notetag (this one is from the skill core, so you actually need to use exactly this one):
Code:
<Before Eval>
if(b.isEnemy())
if($dataEnemies[b._enemyId].meta.EnemyDescription) {
$gameMessage.newPage();
$gameMessage.add($dataEnemies[b._enemyId].meta.EnemyDescription);
}
</Before Eval>
Also note that the RPG Maker engine will not let you use skills that do nothing - and skills that only do something through their notetags do nothing in the engine's eyes. To change that you can for example simply have the skill apply a state with a 0% chance. That will have no effect on the actual game, but now the engine sees that the skill does "something".
Sure, you can credit me as eomereolsson or Eomereolsson if you want to 🙂
Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-skill-that-lets-you-read-an-enemys-description.150820/