RPG Maker Forums

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:

<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.

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,470
Members
137,821
Latest member
Capterson
Top