MicKo's Skill Tree - Revised
#39
Modeled after the work of French Scripter, MicKo, this one too does not include points progression. Laughing In otherwords, I didn't add points for each level because he didn't.

Well, you could set up the actor's startup points to 0. After that, ... well.... Try adding THIS!:

Code:
#==============================================================================
#
#    **   C  O  N  F  I  G  U  R  A  T  I  O  N      M  O  D  U  L  E   **    #
#
#==============================================================================

module SkillTree
  #--------------------------------------------------------------------------
  # * SYSTEM REQUIRED HASHES - DO NOT TOUCH -
  #--------------------------------------------------------------------------  
  PROGRESS = {}
  #--------------------------------------------------------------------------  
  
  SHOW_PROGRESS = true
  
  # Lvl     -- Starting level for points progress
  # Base    -- Starting points
  # Points   - Number of basic point gain
  # Rate     - Rate of increase
  # Increase - Rate of increase adjustment
  
  
  #               Lvl  Base  Points  Rate  Incr
  #               ===  ====  ======  ====  ===
  PROGRESS[1] = [   6,    5,   1,    3,     2  ]  # Aluxes starts off strong
  PROGRESS[5] = [   6,    3,   0.5,  10,    0.5]  # Estelle grows slower
  
  
end


#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
#  This class handles the actor. It's used within the Game_Actors class
#  ($game_actors) and refers to the Game_Party class ($game_party).
#==============================================================================


class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # * Alias Listing
  #--------------------------------------------------------------------------
  alias skilltree_addon_game_actor_setup setup
  alias skilltree_addon_game_actor_exp exp=
  #--------------------------------------------------------------------------
  # * Setup
  #     actor_id : actor ID
  #--------------------------------------------------------------------------
  def setup(actor_id)
    actor = $data_actors[actor_id]
    @actor_id = actor_id
    skilltree_addon_game_actor_setup(actor_id)
    @points_list = Array.new(101)
    make_skillpoints_list
  end
  #--------------------------------------------------------------------------
  # * Calculate Skillpoints progression
  #--------------------------------------------------------------------------
  def make_skillpoints_list
    actor           = $data_actors[@actor_id]
    start           = 0
    base            = 0
    rate            = 0.1
    increase        = 0.1
    if SkillTree::PROGRESS.has_key?(@actor_id)
      start         = SkillTree::PROGRESS[@actor_id][0]
      base          = SkillTree::PROGRESS[@actor_id][1]
      points        = SkillTree::PROGRESS[@actor_id][2]
      rate          = SkillTree::PROGRESS[@actor_id][3]
      increase      = SkillTree::PROGRESS[@actor_id][4]
      rate          = 0.1  if rate <= 0
      increase      = 0.1  if increase <= 0
    end
    @points_list[1]  = 0
    j         = 0
    pow_i = 1.0 + increase / 100.0
    for i in 2..100
      if i > actor.final_level
        @points_list[i] = 0
      else
        if i < start
          @points_list[i] = 0
        else
          j += 1
          n = points.to_f  * j  /  rate.to_f + (increase.to_f * (j.to_f/10))
          n += base.to_f if j== 1
          # Erase if no skill tree progress
          if SkillTree::PROGRESS.has_key?(@actor_id) != true
            n = 0
          end
          @points_list[i] =  Integer(n)
        end
      end
    end
    # Just to show the progress
    if SkillTree::SHOW_PROGRESS == true
      p "This is how many points gaine 'each' level"
      p @points_list
      test = []
      testval = 0
      for point in @points_list
        if point.nil?
          test.push(nil)  
        else
          testval += point
          test.push(testval)
        end
      end
      p "This is the points progress"
      p test
    end
  end  
  #--------------------------------------------------------------------------
  # * Change EXP
  #     exp : new EXP
  #--------------------------------------------------------------------------
  def exp=(exp)
    # Create test value
    oldlevel = @level
    # Perform the original call
    skilltree_addon_game_actor_exp(exp)
    # Add or remove based on testval level
    if oldlevel < @level
      @skillpoints += @points_list[@level]
    elsif oldlevel > @level
      @skillpoints -= @points_list[@level]
    end
  end
end
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Messages In This Thread
MicKo's Skill Tree - Revised - by DerVVulfman - 07-03-2014, 04:10 AM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 07-04-2014, 03:32 AM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 07-05-2014, 03:49 AM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 01-06-2016, 11:00 PM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 04-28-2017, 03:15 AM
RE: MicKo's Skill Tree - Revised - by Fenriswolf - 12-10-2019, 01:04 AM
RE: MicKo's Skill Tree - Revised - by Tigurus Fay - 07-04-2014, 04:25 PM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 07-29-2014, 03:12 AM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 08-01-2014, 03:46 AM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 02-14-2015, 04:27 AM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 02-15-2015, 04:16 AM
RE: MicKo's Skill Tree - Revised - by Miharu - 02-20-2015, 02:08 PM
RE: MicKo's Skill Tree - Revised - by Miharu - 02-20-2015, 04:23 PM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 02-21-2015, 04:30 AM
RE: MicKo's Skill Tree - Revised - by Miharu - 02-22-2015, 09:22 PM
RE: MicKo's Skill Tree - Revised - by Miharu - 02-25-2015, 10:40 PM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 02-26-2015, 04:42 AM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 03-03-2015, 05:00 AM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 03-04-2015, 04:09 AM
RE: MicKo's Skill Tree - Revised - by Mel - 01-05-2016, 03:33 PM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 01-05-2016, 09:08 PM
RE: MicKo's Skill Tree - Revised - by Mel - 01-05-2016, 10:51 PM
RE: MicKo's Skill Tree - Revised - by Mel - 01-07-2016, 03:30 AM
RE: MicKo's Skill Tree - Revised - by Mel - 07-28-2016, 05:26 PM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 07-29-2016, 04:02 AM
RE: MicKo's Skill Tree - Revised - by Mel - 07-29-2016, 04:05 PM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 12-10-2019, 08:02 AM
RE: MicKo's Skill Tree - Revised - by Fenriswolf - 12-10-2019, 03:41 PM
RE: MicKo's Skill Tree - Revised - by kyonides - 12-10-2019, 08:10 PM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 12-11-2019, 04:36 AM
RE: MicKo's Skill Tree - Revised - by Fenriswolf - 12-11-2019, 03:23 PM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 12-12-2019, 04:14 AM
RE: MicKo's Skill Tree - Revised - by Fenriswolf - 12-14-2019, 11:18 PM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 12-15-2019, 05:12 AM
RE: MicKo's Skill Tree - Revised - by Fenriswolf - 12-15-2019, 11:46 AM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 12-16-2019, 04:08 AM
RE: MicKo's Skill Tree - Revised - by Fenriswolf - 12-16-2019, 12:04 PM
RE: MicKo's Skill Tree - Revised - by DerVVulfman - 12-17-2019, 04:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Skill Roulette XP kyonides 0 1,138 06-16-2023, 07:10 AM
Last Post: kyonides
   Fast Skill Grouping DerVVulfman 3 4,831 06-12-2023, 05:28 PM
Last Post: DerVVulfman
   Skill Casting Delay DerVVulfman 1 10,983 11-20-2018, 05:38 AM
Last Post: DerVVulfman
   MicKo's Skill Tree DerVVulfman 48 91,533 11-08-2016, 08:04 PM
Last Post: DerVVulfman
   GPLAT Pixel Platformer Revised DerVVulfman 0 4,612 10-02-2014, 04:14 AM
Last Post: DerVVulfman
   Skill Shop Legacy 1 7,724 06-30-2012, 07:36 PM
Last Post: KasperKalamity
   Skill Leveling DerVVulfman 28 43,235 04-07-2012, 09:25 AM
Last Post: Waddle Dee
   Trickster's Bag Of Skill Effects Trickster 5 15,236 02-23-2010, 06:32 AM
Last Post: fgsfds
   Custom Skill Effects Lowell 0 5,050 03-06-2008, 06:16 AM
Last Post: Lowell
   Moghunter Menus: Scene Skill Nami DerVVulfman 0 6,120 03-05-2008, 06:45 PM
Last Post: DerVVulfman



Users browsing this thread: 10 Guest(s)