The updated version seems to have a syntax error in line 173
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Quote from: Ezel Berbier on October 15, 2012, 01:36:38 pm
Try this.class Game_Actor < Game_Battler
def skill_learn?(skill_id)
return @skills.include?(skill_id) or @eskills.include?(skill_id)
end
end




#--------------------------------------------------------------------------
# * Learn Skill
# skill_id : skill ID
#--------------------------------------------------------------------------
def learn_skill(skill_id)
if skill_id > 0 and not skill_learn?(skill_id)
@skills.push(skill_id)
@skills.sort!
end
end def learn_skill(skill_id)
if skill_id > 0 and not skill_learn?(skill_id)
@eskills.push(skill_id)
@eskills.sort!
end
end#--------------------------------------------------------------------------
# * Change EXP
# exp : new EXP
#--------------------------------------------------------------------------
def exp=(exp)
@exp = [[exp, 9999999].min, 0].max
# Level up
while @exp >= @exp_list[@level+1] and @exp_list[@level+1] > 0
@level += 1
# Learn skill
for j in $data_classes[@class_id].learnings
if j.level == @level
learn_skill(j.skill_id)
end
end
end
# Level down
while @exp < @exp_list[@level]
@level -= 1
end
# Correction if exceeding current max HP and max SP
@hp = [@hp, self.maxhp].min
@sp = [@sp, self.maxsp].min def exp=(exp)
@exp = [[exp, 9999999].min, 0].max
while @exp >= @exp_list[@level+1] and @exp_list[@level+1] > 0
@level += 1
@skillap += GameGuy.ap_gain(@id)
@skillmaxap += GameGuy.ap_gain(@id)
for j in $data_classes[@class_id].learnings
if j.level == @level
learn_skill(j.skill_id)
end
end
end
while @exp < @exp_list[@level]
@level -= 1
end
@hp = [@hp, self.maxhp].min
@sp = [@sp, self.maxsp].min
end
def clear_skills
@skills = []
@eeskills = []
@ap = @maxap
end
end
Quote from: KK20 on September 17, 2012, 10:45:32 pm
EDIT: Upon further playing around, I found that you can actually make a class learn the same skill twice. Check your actor's class and make sure you didn't put two of the same skill listed. When I did this, I got two listings of the skill in my scene.
Quote from: KK20 on September 17, 2012, 10:45:32 pm
Yep. I'll tell you everything I did.
New Project. Change EXP growth rate for Aluxes to the lowest values (requires 10exp for level 2). Fighter class learns Feint Attack at level 2. Ghosts give 5exp each. Make new event that starts a battle with 2 Ghosts. Also make new event that allows me to view the Scene_SkillEquip. Test run game.
Level 2 after killing. Check the SkillEquip scene. Only Cross Cut and Feint Attack are in the list.
Make a new game and use only this script. If you are getting errors still, then I haven't the slightest clue.





Quote from: QuentinWhite on July 17, 2012, 06:00:25 pm
You are pretty quick
But i have another error. Now i can open chest if there is armor inside, but i get an error if i try to open chest with piece of armor in my inventory. This happens too, if i take any piece of armor from chest.



