- Joined
- Feb 22, 2017
- Messages
- 60
- Reaction score
- 8
- First Language
- English
- Primarily Uses
- RMMV
I'm having an issue in Yanfly's AI Core where, for some reason, listing skills in the "AI Priority" tag causes the enemy to just sometimes not use skills even if they meet the condition.
For example, I have two skills I want an enemy to use. Both will only trigger if a variable is equal to or greater than 3 and equal to or less than 5, and only one will trigger if a second variable is above or below 50.
Even if the enemy has met these conditions, it will sometimes ignore them and spend a turn doing nothing or even use the wrong skill entirely. Even forcing the enemy to use a skill on turn 1 causes it to do nothing sometimes. It seems entirely random as to if a skill will work or not and I can't work out a cause.
All my plugins are organized correctly and I'm not using any other plugins that change battle systems outside of Yanfly's own, so I'm not sure what the issue is.
For example, I have two skills I want an enemy to use. Both will only trigger if a variable is equal to or greater than 3 and equal to or less than 5, and only one will trigger if a second variable is above or below 50.
Code:
Variable 206 >= 3 +++ Variable 206 <= 5 +++ Variable 208 < 50: SKILL 701
Variable 206 >= 3 +++ Variable 206 <= 5 +++ Variable 208 >= 51: SKILL 702
Even if the enemy has met these conditions, it will sometimes ignore them and spend a turn doing nothing or even use the wrong skill entirely. Even forcing the enemy to use a skill on turn 1 causes it to do nothing sometimes. It seems entirely random as to if a skill will work or not and I can't work out a cause.
All my plugins are organized correctly and I'm not using any other plugins that change battle systems outside of Yanfly's own, so I'm not sure what the issue is.