Sorry, I didn't see the skills_learn? method.
A lot of your code is confusing to me though. Why do you use the actor as an argument when the methods are in Game_Actor? Are you sending different actors into it? If so, why?
It's weird that that line gives a syntax error, since the line below it does not. Anyway, I'll look into it once I get back. I have to go for a little while.
EDIT::
Oh, and I can't believe I didn't notice this earlier, I should've the moment you got the addition error in the Notes script:
for i in 0...3
@armtype = Equipment_Setup::ARMTYPES[i].to_s
if has_tag?(item.note,@armtype) and @actor.skills_learn? (Equipment_Setup::ARMSKILLS[i], @actor)
return true
end
end
Should be
for i in 1...5
- because you don't define 0 as an element of your array and you actually want it to iterate through 1, 2, 3 and 4. Also, you won't need to put the .to_s anymore - I had a notion for some reason that you were sending the skill ID. Actually, there's another fairly
Here's what the equippables? method should look like. Again I don't know why you have @actor as an argument, but I will assume it is for a good reason and keep it.
def equippables?(item, actor)
@actor = actor
if item.is_a?(RPG::Weapon)
return self.class.weapon_set.include?(item.id)
elsif item.is_a?(RPG::Armor)
return false if two_swords_style && item.kind == 0
for i in 1...5
@armtype = Equipment_Setup::ARMTYPES[i]
if has_tag?(item.note,@armtype) && @actor.skills_learn? (Equipment_Setup::ARMSKILLS[i], @actor)
return true
end
end
end
return false
end