Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 MicKo's Skill Tree - Revised
#25
The typical syntax to add skillpoints that can be spent will either be:
Code:
$game_party.actors[actor_index].skillpoints += value
Going by the members within the party...

or

Code:
$game_.actors[ID].skillpoints += value
If you want to specify the actual actor in your actor database.


Now you're looking to make it so items can bestow skill points? That can be done, but it needed a little work. *COUGH COUGH COUGH* This little script, placed below the Skill Tree system, can actually let you make some items grant skill points to the user or users (if you have the item work on a single actor or the party).

I cranked it out fast, but hey... it works.

Code:
module Item_Points
  POINTS = {}
  
  # THE LIST OF ITEMS
  # =================
    POINTS[33] = 25   # Makes my demo's ITEM #33 (the book) bestow 25 points
  
end


#==============================================================================
# ** Scene_Item
#------------------------------------------------------------------------------
#  This class performs item screen processing.
#==============================================================================

class Scene_Item
  #--------------------------------------------------------------------------
  # * Frame Update (when target window is active)
  #--------------------------------------------------------------------------
  alias skilltree_addon_target update_target
  def update_target
    # Check to make sure enough items...
    @effected = false
    @effected = true if $game_party.item_number(@item.id) > 0
    # Perform the call
    skilltree_addon_target
    # Don't bother unless actually in use and enough items
    return unless Input.trigger?(Input::C)
    return unless @effected
    # If target is all
    if @target_window.index == -1
      for i in $game_party.actors
        i.skillpoints += Item_Points::POINTS[@item.id]
      end
    end    
    # If single target
    if @target_window.index >= 0
      # Apply item use effects to target actor
      target = $game_party.actors[@target_window.index]
      target.skillpoints += Item_Points::POINTS[@item.id]
    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 Melana - 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 Melana - 01-05-2016, 10:51 PM
RE: MicKo's Skill Tree - Revised - by Melana - 01-07-2016, 03:30 AM
RE: MicKo's Skill Tree - Revised - by Melana - 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 Melana - 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 Item Kost ACE kyonides 0 379 01-03-2024, 12:07 AM
Last Post: kyonides
   Skill Roulette kyonides 0 621 06-16-2023, 07:10 AM
Last Post: kyonides
   Fast Skill Grouping DerVVulfman 3 3,886 06-12-2023, 05:28 PM
Last Post: DerVVulfman
   DoubleX RMMV Skill Hotkeys DoubleX 2 5,230 02-13-2021, 04:59 AM
Last Post: DoubleX
   DoubleX RMMZ Skill Item Cooldown DoubleX 4 5,154 02-07-2021, 04:11 PM
Last Post: DoubleX
   DoubleX RMMZ Skill Item Triggers DoubleX 3 4,697 12-26-2020, 04:00 PM
Last Post: DoubleX
   DoubleX RMMV Skill Hotkeys Compatibility DoubleX 0 2,822 09-06-2019, 09:56 AM
Last Post: DoubleX
   Skill Casting Delay DerVVulfman 1 10,390 11-20-2018, 05:38 AM
Last Post: DerVVulfman
   MicKo's Skill Tree DerVVulfman 48 83,978 11-08-2016, 08:04 PM
Last Post: DerVVulfman
   Skill Success Fix Taylor 0 4,694 03-23-2015, 12:15 PM
Last Post: Taylor



Users browsing this thread: