Hey,
l'm working on a Skillsystem, you get 1 point per lvlup and learn skills through it.
the update whenever l spend one point seems not to work.
the similar code for each index...
now when l open the skilltree, and press Enter l can spend points like hell.
and only learn the first skill.
need help, it's important D:
l'm working on a Skillsystem, you get 1 point per lvlup and learn skills through it.
the update whenever l spend one point seems not to work.
Code:
 def skill_update(member_index = 0)
  actor = $game_party.members[member_index]
  points = actor.points
  @gesetzt1 = 0   # @gesetzt1 = counter
  if Input.trigger?(Input::C) and actor.points > 0
   case @command_index
   when 0
    if @gesetzt1 == 0
     Sound.play_decision
     actor.points -= 1
     @gesetzt1 += 1
     actor.learn_skill(5)
    elsif @gesetzt == 1
     Sound.play_decision
     actor.points -= 1
     @gesetzt += 1
     actor.learn_skill(6)
     actor.forget_skill(5)
    elsif @gesetzt == 2
     Sound.play_decision
     actor.points -= 1
     @gesetzt += 1
     actor.learn_skill(7)
     actor.forget_skill(6)
    elsif @gesetzt == 3
     Sound.play_decision
     actor.points -= 1
     @gesetzt += 1
     actor.learn_skill(8)
     actor.forget_skill(7)
    elsif @gesetzt == 4
     Sound.play_decision
     actor.points -= 1
     @gesetzt += 1
     actor.learn_skill(9) Â
     actor.forget_skill(8)
    elsif actor.points = 0 or @gesetzt1 == 5
     Sound.play_cancel
    end
   end
  end
 end
end
now when l open the skilltree, and press Enter l can spend points like hell.
and only learn the first skill.
need help, it's important D: