- Joined
- Jan 16, 2023
- Messages
- 26
- Reaction score
- 2
- First Language
- English
- Primarily Uses
- RMMZ
Hello!
I've been trying to show the next enemy action before their turn so that the player can prepare accordingly beforehand.
I've found 2 forum threads that discusses what I wanted to do, this and this.
I've tried to recreate them using the required notetags, but it never worked for me.
The enemy won't even attack or do anything and just skip their turn, they also do not show their next move.
Can someone enlighten me on what I'm doing wrong?
Skill Notetag:
Enemy Notetag:
I've been trying to show the next enemy action before their turn so that the player can prepare accordingly beforehand.
I've found 2 forum threads that discusses what I wanted to do, this and this.
I've tried to recreate them using the required notetags, but it never worked for me.
The enemy won't even attack or do anything and just skip their turn, they also do not show their next move.
Can someone enlighten me on what I'm doing wrong?
Skill Notetag:
Code:
<After Eval>
var old = 11
// Change # to the skill's required state
var newstate = $dataEnemies[user._enemyId].meta.states.split(',').map(function(n){return parseInt(n)});
// Reads the allowed state values from the enemy notetag
var index = Math.randomInt(newstate.length);
var choice = newstate[index]
if (user.isStateAffected(choice)) {
} else {
BattleManager._subject.removeState(old);
BattleManager._subject.addState(choice);
}
</After Eval>
<Custom Requirement>
var x = 11
// Change # to the skill's required state
if (user.isStateAffected(11)) {
value = true;
} else {
value = false;
}
</Custom Requirement>
Enemy Notetag:
Code:
<states:11,12>