Hey guys ! I have a question.
I'm using a skill that switches state from "Heal Mode" to "Kill Mode"
so I decided to use Yanfly's buff and States core and use those commands :
if (user.isStateAffected(108)) {
user.removeState(108)
user.addState(109)
} else {
if (user.isStateAffected(109)) {
user.removeState(109)
user.addState(108)
}
}
But I think I'm getting into a loop and the few knowledge I have in scripting stuffs does not seem to be enough. Any Idea of how I could do ? Thanks in advance.
I'm using a skill that switches state from "Heal Mode" to "Kill Mode"
so I decided to use Yanfly's buff and States core and use those commands :
if (user.isStateAffected(108)) {
user.removeState(108)
user.addState(109)
} else {
if (user.isStateAffected(109)) {
user.removeState(109)
user.addState(108)
}
}
But I think I'm getting into a loop and the few knowledge I have in scripting stuffs does not seem to be enough. Any Idea of how I could do ? Thanks in advance.