- Joined
- Feb 23, 2016
- Messages
- 25
- Reaction score
- 5
- First Language
- English
- Primarily Uses
Hi!
I'm trying to add a skill that needs to check if an enemy is afflicted with a state before the skill appears and can be used. I'm using Yanfly skillcore ect and have come up with this, but i get 'gametroop is undefined' errors. It's true that I haven't defined an enemy note tag, because I want it to check for one with the state applied..
<Custom Show Eval>
if ($game_troop.members().isStateAffected(X)) {
visible = true;
} else {
visible = false;
}
</Custom Show Eval>
any help i appreciated!
I'm trying to add a skill that needs to check if an enemy is afflicted with a state before the skill appears and can be used. I'm using Yanfly skillcore ect and have come up with this, but i get 'gametroop is undefined' errors. It's true that I haven't defined an enemy note tag, because I want it to check for one with the state applied..
<Custom Show Eval>
if ($game_troop.members().isStateAffected(X)) {
visible = true;
} else {
visible = false;
}
</Custom Show Eval>
any help i appreciated!

