- Joined
- Apr 6, 2014
- Messages
- 53
- Reaction score
- 3
- First Language
- english
- Primarily Uses
Hello. I'm using yanfly's skill learn core. I have a skill that I don't want available for learning to the class, unless a specific weapon is equipped.
<Learn Require Eval>
value = false;
var wpn = $game_actorId(this).weaponId().value;
if (wpn === 7) value = true;
</Learn Require Eval>
I know this doesn't work. I'm having a lot of trouble gleaning info I understand out of the js section of MV's help.
what's the correct code? It needs to work for any actor in the class and equipped with the weapon.
<Learn Require Eval>
value = false;
var wpn = $game_actorId(this).weaponId().value;
if (wpn === 7) value = true;
</Learn Require Eval>
I know this doesn't work. I'm having a lot of trouble gleaning info I understand out of the js section of MV's help.
what's the correct code? It needs to work for any actor in the class and equipped with the weapon.
Last edited by a moderator:
