I'm trying to get a Hide skill to function, and I don't know how it to remove it from the actor if they do anything besides use Guard. If anyone has some insight, that would be great.
Help with removing a state upon taking any action except for Guard.
Javascript/Plugin SupportAre you using Yanfly plugins or do you need a solution that doesn't involve them?
I am using Yanfly plugins, though I don't have every single one. Which ones do I need?
Just Buffs & States Core. Put the following in your Hide state's notetag:
Replace 24 in removeState with the ID of Hide.
Code:
<custom action start effect>
let action = user.currentAction();
if (action && (!action.isSkill() || action.item().id !== user.guardSkillId())) {
user.removeState(24);
}
</custom action start effect>
Replace 24 in removeState with the ID of Hide.
@Trihan Sorry it took me so long to get to this, as I haven't been on my computer in days. But it works like a charm. Thank you kindly.
No worries, glad to be of assistance. 🙂
I've moved this thread to Javascript/Plugin Support. Thank you.
@Sword_of_Dusk Has your inquiry been resolved? If so, please report your thread so a moderator can close it. Thank you.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/help-with-removing-a-state-upon-taking-any-action-except-for-guard.124469/