Hello. I have this character in my game that gains an additional skill based on the weapon he has equipped. For example: if he has fire rod equipped, he will have Fire Ball skill available. If he removes fire rod, then he loses Fire Ball.
The problem is that I am having problems with this mechanic, because I also use Yami Skill Equip. Suppose the following process:
1) Eric equips Fire Rod and now he has Fire Ball available.
2) Eric equips Fire Ball through Yami Skill menu
3) Eric unequips Fire Rod and Fire Ball isn't available anymore.
If things were to occur accordingly, this would automatically unequips Fire Ball too, since the skill is not available. But this is not what happens, Eric keeps the Fire ball equipped although the skill isn't available anymore.
Is there a way to forcibly unequip a skill using Yami's script?
The problem is that I am having problems with this mechanic, because I also use Yami Skill Equip. Suppose the following process:
1) Eric equips Fire Rod and now he has Fire Ball available.
2) Eric equips Fire Ball through Yami Skill menu
3) Eric unequips Fire Rod and Fire Ball isn't available anymore.
If things were to occur accordingly, this would automatically unequips Fire Ball too, since the skill is not available. But this is not what happens, Eric keeps the Fire ball equipped although the skill isn't available anymore.
Is there a way to forcibly unequip a skill using Yami's script?