Right now I'm making this code to change a state if the state is stacked upon it.
if (!target.isStateAffected(agiup)) {
target.addState(22);
}
Basically I want it to check if it does not have these variables (Ie. agiup,agiup2,agidown,agidown2) then it would apply state 22.
In summary, I want it to achieve a state level up and level down system where states would stack and change the icon.
If anyone can help please let me know! Thank you!
if (!target.isStateAffected(agiup)) {
target.addState(22);
}
Basically I want it to check if it does not have these variables (Ie. agiup,agiup2,agidown,agidown2) then it would apply state 22.
In summary, I want it to achieve a state level up and level down system where states would stack and change the icon.
If anyone can help please let me know! Thank you!