As the title suggests, I want to make a learnt skill that's unusable at the beginning but still shows up in the skill selection menu, and only become usable when certain state is applied to the user. I have made my research and the popular answer to this is set add skill in state traits but that makes the skill not showing up in the menu if the state isn't applied, if you know any plugin can achieve that, it would be very much appreciated. I know a RGSS3 plugin written by a japanese coder that could do that but can't find the MV version. Here is the link http://artificialprovidence.web.fc2.com/rgss3/r3enhance/RGSS3IS_EX_ORDER.txt
MV How to have a learnt skill become availble for use in battle only under certain state?
JS Plugin RequestsWith Yanfly's Skill Core Plugin you can do this easily.
YEP Skill Core
Place the code below in the Note Box of the skill and change ' x ' to the ID of the State.
This will make the skill usable only when the user has a certain state.
YEP Skill Core
Place the code below in the Note Box of the skill and change ' x ' to the ID of the State.
JavaScript:
<Custom Requirement>
if (!user.isStateAffected(x)) {
value = false;
}
</Custom Requirement>
This will make the skill usable only when the user has a certain state.
Thank you, that worked out perfectly!
I really gotta start learning Javascripts, it make things so much easier!🙂
Happy to help! Have fun.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-have-a-learnt-skill-become-availble-for-use-in-battle-only-under-certain-state.145281/