return
end
end
#--------------------------------------------------------------------------
# ● 选项明暗判断
#--------------------------------------------------------------------------
def skill_learn###############结算技能点 并习得技能的方法
learn_num = $game_party.actors.size###判断有几个角色
for i in 0 ... learn_num
@learner = $game_party.actors
@s1 = @learner.skill1
@s2 = @learner.skill2
@s3 = @learner.skill3
case @s1
when 1
@learner.learn_skill(1)#学会等级1的技能1 id为1
when 2
@learner.learn_skill(2)#学会等级2的技能1 id为2
@learner.forget_skill(1)#把等级1的技能1 忘掉
when 3
@learner.learn_skill(3) #学会等级3的技能1 id为3
@learner.forget_skill(2)#把等级2的技能1 忘掉
@learner.forget_skill(1)#把等级1的技能1 忘掉
end
case @s2
when 1
@learner.learn_skill(4)#学会等级1的技能2 id为4
when 2
@learner.learn_skill(5)#学会等级2的技能2 id为5
@learner.forget_skill(4)#把等级1的技能2 忘掉
when 3
@learner.learn_skill(6) #学会等级3的技能2 id为6
@learner.forget_skill(4)#把等级1的技能2 忘掉
@learner.forget_skill(5)#把等级2的技能2 忘掉
end
case @s3
when 1
@learner.learn_skill(7)#学会等级1的技能3 id为7
when 2
@learner.learn_skill(8)#学会等级2的技能3 id为8
@learner.forget_skill(7)#把等级1的技能3 忘掉
when 3
@learner.learn_skill(9) #学会等级3的技能3 id为9
@learner.forget_skill(7)#把等级1的技能3 忘掉
@learner.forget_skill(8)#把等级2的技能3 忘掉
end
end
end
def s_disable
#如果技能点数为0 或者 该技能已经升满 又或者前提技能一级都没有升 就把按钮现实成灰色
if @actor.skillp == 0 or @actor.skill1 == 3
@command_window.disable_item(0)
else
@command_window.able_item(0)
end
if @actor.skillp == 0 or @actor.skill2 == 3 or @actor.skill1 == 0
@command_window.disable_item(1)
else
@command_window.able_item(1)
end
if @actor.skillp == 0 or @actor.skill3 == 3 or @actor.skill2 == 0
@command_window.disable_item(2)
else
@command_window.able_item(2)
end
end
end