- Joined
- May 5, 2018
- Messages
- 4
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
So, essentially, what I'm trying to do is:
If the actor has a specific item equipped, it will allow the actor to learn a skill (which is what "value = true" is for).
Otherwise, if they do not have this specific item equipped, it won't allow the actor to learn the skill.
This is the code I'm trying to work with:
If the actor has a specific item equipped, it will allow the actor to learn a skill (which is what "value = true" is for).
Otherwise, if they do not have this specific item equipped, it won't allow the actor to learn the skill.
This is the code I'm trying to work with:
<Learn Require Eval>
righthand = $game_actors[actor_id].equips[0];
if !right_hand.name.eql?(""Broadsword""){
value = true
} else {
value = false
}
</Learn Require Eval>
I don't think the plugin is causing the issue and I think it's just more or less how I'm writing the code (I'm a complete newbie at JS). But the plugin is Yanfly Skill Learn System located here.righthand = $game_actors[actor_id].equips[0];
if !right_hand.name.eql?(""Broadsword""){
value = true
} else {
value = false
}
</Learn Require Eval>

