RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Deity's SkillTree

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 82
aka DigiDeity
    <Deity's SkillTree>
    Version: <1.0>
    Author: <Deity>
    Date: 4,8,2010

    Version History



    • <Version 1.0> 04.08.2010 Script become published
    • 4.10.2010 Update to v 1.1
    • 5.12.2010 Update to v 1.2

    Planned Future Versions

      • better control with all 4 directions
      • Hide not possible Skills
      • Line Addons

    Description


    This Script allow you tu use your own individual SkillTree for your Game.

    Features

    • Up to 99 Skills possible
    • Individual SkillTree for everyone
    • Simple using
    • Modify the Drawn Lines
    • Hide Skills which conditions aren't sufussed

    Screenshots



    Settings


    Instructions

    [/list][/list]
    Code: [Select]
    # Using:                                                         #
    # As first you have to setup the Settings as you wish.           #
    # To call the SkillTree you have to write this in the "Call ..." #
    # $scene = Scene_SkillTree.new(party_member_id)                  #
    # If you use this line:                                          #
    # add_skill_points(party_member_id,points)                       #
    # the partymember with the id (party_member_id) get points       #
    # skillpoints.                                                   #
    # Just add the skills an actor can learn as ever in the database.#
    # Now you have following notes which you can place into the note #
    # of a skill.                                                    #
    # <skills> needed_skill_id,needed_skill_id <skills_end>          #
    # <costs> skillpoint_costs_to_learn <costs_end>                  #
    # <coords> x-coordinate,y-coordinate <coords_end>                #
    # If you skip <skills> the script notice that there no skills    #
    # which the actor need to learn this skill.                      #
    # If you skip <costs> the script give the skill automaticaly     #
    # the cost of 1 skillpoint.                                      #
    # The coordinates are important so dont skip them.               #
    # You have a window of 272*328 pxl to place you skills(icons).   #
    # So you can place about 99 Skills in you skilltree              #
    # The biggst x-ccordinate you should use is: 244                 #
    # The biggst x-ccordinate you should use is: 300                 #

    Script


    • 12.Mai
            - SkillTree v 1.2  *new(With 4 directions.)
    • 10. April
            - SkillTree v 1.1  *new
            - Bitmap Addon*new
    • 8. April
            - SkillTree v1.0
            - Bitmap Addon

    Credit


    • Deity
    • Bresenham's (draw_line Addon)

    Thanks

    • I think I have to thanks RO for the idea. :)

    Support


    I'm active in this forum: http://www.rpgvx.net. Send me a PM or post here to get support.

    Known Compatibility Issues
    - No known -

    Demo


    Demo hasnt the newst Version of Script!!!
    Demo v1.1 *new (2shared)
    Demo v1.1 *new (Mediafire)
    Demo v1.0

    Author's Notes


    If the script will find an user I would like to see my name in the credits. If you use this script and your SkillTree is ready you should maybe show the other members the result so they become impressed. ^^

    Sorry for my english if it's impossible to understand it just let me know.

    Bye
    Deity
    « Last Edit: May 12, 2010, 05:13:48 PM by Deity »
    Greetings
    DigiDeity

    ├Work┤
    ├Contact┤


    *
    Rep:
    Level 97
    2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
    Wonderful idea Deity. So many people have requested this, and the layout is very pretty.

    **
    Rep:
    Level 82
    OMG. I LOVE YOU.
    WILL YOU MARRY ME?

    I've been looking for something like this, as many others have looked, for forever. (Since my first uncompleted game.)
    Looks AWESOME. Gonza test it outs now :D

    ********
    Resource Artist
    Rep:
    Level 94
    \\\\\
    Project of the Month winner for June 2009
    nice script

    ***
    Rep:
    Level 82
    aka DigiDeity
    Thanks for your comments.
    It's nice to read such things about the script. :D
    I've added an idea for the future:
    Quote
    better control with all 4 directions
    Maybe it will work soon. ^^

    Code: [Select]
    Gonza test it outs now Cheesy
    Telll me your results.

    Quote
    Wonderful idea Deity. So many people have requested this, and the layout is very pretty.
    Thank you again. :D

    Quote
    nice script
    Thanks to you too.

    Bye
    Deity
    Greetings
    DigiDeity

    ├Work┤
    ├Contact┤


    ********
    Resource Artist
    Rep:
    Level 94
    \\\\\
    Project of the Month winner for June 2009
    Is there a way to change the type of line that connects the icons, instead of that one pixel red/green line? Maybe a thicker, dotted or some other type of line?

    ***
    Rep:
    Level 82
    aka DigiDeity
    Jes for sure.
    But if you maybe know it's hard to draw diagonals which doesn't has the 8 directions. :(
    Therefore is the Bitmap-Addon and I would be able to make some options for the drawn lines but when I tested  a line which was taller (2pxl) the line becomes very ugly. :D
    If it's important I will write some options for the lines. ^^

    Bye
    Deity
    « Last Edit: April 09, 2010, 06:11:25 PM by Deity »
    Greetings
    DigiDeity

    ├Work┤
    ├Contact┤


    *
    Rep:
    Level 97
    2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
    One idea for that might be to simply throw this in underneath:

    Code: [Select]
    class Bitmap
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Width for Draw Line
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      alias malg_bmpadon_wideline_8ik2 draw_line
      def draw_line (x0, y0, x1, y1, colour, w = 1, *args)
        malg_bmpadon_wideline_8ik2 (x0, y0, x1, y1, colour, *args)
        if w > 1
          draw_line (x0 + 1, y0, x1 + 1, y1, colour, w - 1, *args)
        end
      end
    end

    What it does is simply draw the same line to the right of the original line for however many pixels you specify. You may need to modify the x values of your script in order to keep it centred, but the above method shouldn't make the line look too ugly. It is not optimal by any means though.


    Your demo has a little error in it though. You use Variable 1 for collecting extra skill points from the girl, but you don't reset it, and for some reason you pass Variable 1 to Scene_SkillTree when talking to the guy, so if you select a number of skill points over the number of actors in the database and then go talk to the guy, you will get an error. That's just an error with the event setup in the demo though, not the script itself.
    « Last Edit: April 10, 2010, 01:24:05 AM by modern algebra »

    ***
    Rep:
    Level 82
    aka DigiDeity
    My version of an taller line is a bit "bigger":
    Code: [Select]
    class Bitmap
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      # * Draw Line
      #    x0, y0 : the coordinates of the start of the line.
      #    x1, y1 : the coordinates of the end of the line.
      #``````````````````````````````````````````````````````````````````````````
      #  This uses Bresenham's algorithm to draw a line
      #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      def draw_line (x0, y0, x1, y1, colour = font.color,width = 1,height = 1,skip = 0)
        # Set boolean for steep lines
        steep = (y1 - y0).abs > (x1 - x0).abs
        if steep
          # Reflect across y=x
          tmp = x0
          x0, y0 = y0, tmp
          tmp = x1
          x1, y1 = y1, tmp
        end
        # If in negative direction
        if x0 > x1
          # Swap initial points
          tmp = x0
          x0, x1 = x1, tmp
          tmp = y0
          y0, y1 = y1, tmp
        end
        ystep = y0 < y1 ? 1 : -1
        deltax = x1 - x0
        deltay = (y1 - y0).abs
        error = deltax / 2
        y = y0
        # Advance by Rows
        lop = skip * height
        for x in x0.to_i...x1.to_i
          if lop == skip * height
            for w in 0...width
              for h in 0...height
                steep ? set_pixel (y+h, x+w, colour) : set_pixel (x+w, y+h, colour)
              end
            end
            lop = 0
          else
            lop += 1
          end
          error -= deltay
          if error < 0
            y += ystep
            error += deltax
          end
        end
      end
    end

    But I will test your version for sure!

    Code: [Select]
    Your demo has a little error in it though. You use Variable 1 for collecting extra skill points from the girl, but you don't reset it, and for some reason you pass Variable 1 to Scene_SkillTree when talking to the guy, so if you select a number of skill points over the number of actors in the database and then go talk to the guy, you will get an error. That's just an error with the event setup in the demo though, not the script itself.

    Jeah I already mentioned this error but I was to lazy to make a new version of the demo. :(
    Thanks for report!!

    Damn this 4 direction Curssor Move System is harder as I thought. I've already tested 3 Ideas without succes but my newest idea have potential.(I think.)
    I hope I will be able to finisch it. :D

    I also want to write an <hide> comment which let the skills become hidden as long there conditions are not sufussed.

    If I'm allowed to say this. To lvlup in this Forum seems a bit to easy.
    12 Posts and lvl 19. xD

    As long
    Deity

    _______
    I've made an Update. :D
    Happy testing!
    « Last Edit: April 10, 2010, 05:03:24 PM by Deity »
    Greetings
    DigiDeity

    ├Work┤
    ├Contact┤


    ***
    Rep:
    Level 82
    That site the download is on is crap.

    ***
    Rep:
    Level 82
    aka DigiDeity
    Can you precise your post? ^^
    What ist the "crap"? It doesn't work or you cant find the download? (I've changed it to a direct download.)
    But anyway I added a downloadlink from Mediafire.

    I thik I won't use the site anymore cause you're not the only one who dislike this page. ^^

    Deity
    « Last Edit: April 13, 2010, 01:39:44 PM by Deity »
    Greetings
    DigiDeity

    ├Work┤
    ├Contact┤


    ***
    Rep:
    Level 82
    I can find A download, but it goes to some software. The text download link I hover over and some other site like that Microsoft search engine site pops up. Speaking of pop ups, there are quite a few of them.

    I think maybe one of the ads just says download. I never found the real download out of 3 links to download on that site.

    ***
    Rep:
    Level 82
    aka DigiDeity
    Ok I understood. :)
    I hope it wasnt to worse and you had fun while testing.

    Deity
    Greetings
    DigiDeity

    ├Work┤
    ├Contact┤


    ***
    Rep:
    Level 82
    After trying for several times, I never downloaded it and I just found another script to use. I'm sorry, but sometimes that happens. If the store is closed, you buy from another.

    ********
    Resource Artist
    Rep:
    Level 94
    \\\\\
    Project of the Month winner for June 2009
    Lol, your metaphor is fucking retarded. You're too lazy to read.

    If only you had eyes.




    « Last Edit: April 14, 2010, 08:14:05 PM by grafikal »

    ***
    Rep:
    Level 82
    aka DigiDeity
    Quote
    I'm sorry, but sometimes that happens. If the store is closed, you buy from another.
    I laughed while reading this. :D
    Don't understand the last line to offensive.

    It is sad hat you even didn't try it out when I reuploaded but it's your decision and I accept your decision. ^^


    Deity
    Greetings
    DigiDeity

    ├Work┤
    ├Contact┤


    ***
    Rep:
    Level 82
    At least you laughed, I was kind of fearing that it would be offensive.

    Grafikal... that download button was never on 2shared. In fact its not there now. There is a download button at the bottom, but that is an ad. Speaking of ads, uggg I am getting overwhelmed with them at that site.

    ********
    Resource Artist
    Rep:
    Level 94
    \\\\\
    Project of the Month winner for June 2009
    That was 2 different images, not 1. The first was from 2shared. The second was from MediaFire.

    *
    Rep:
    Level 97
    2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
    Well, the MediaFire download wasn't up at the time he posted, and 2shared is kind of a gross uploading site :P

    In any case, it doesn't make much of a difference. But just so you know Deity, you can also upload script demos to RMRK itself by attaching it to your post under the Additional Options feature.

    ********
    Resource Artist
    Rep:
    Level 94
    \\\\\
    Project of the Month winner for June 2009
    I knew that MediaFire wasn't up, I just posted the place of both downloads for reference. I agree that 2shared is ugly, however, I still easily found the download link. It was simple enough to read through the page.

    :)

    *
    Rep:
    Level 97
    2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
    true enough

    **
    Rep: +0/-0Level 81
    You will die with honor...
    Error: Stack level too deep?   ???

    ***
    Rep:
    Level 82
    aka DigiDeity
    I'm sorry but the Demo working fine.
    Can you tell me in which line the Error happen?
    This error normally hapens if there is any loop with no end but I'm fixing such things imidiently so its just strange. :(


    Deity
    Greetings
    DigiDeity

    ├Work┤
    ├Contact┤


    **
    Rep:
    Level 82
    You have 2 of the same script in your project. Delete one.

    **
    Rep: +0/-0Level 81
    You will die with honor...
    I'll check which line...

    ***
    Rep:
    Level 82
    aka DigiDeity
    Oh Xzygon is on the right track. If you have the same Script two time in the same scriptlist it could cause the error,also. Check it ouf maybe it was just a mistake.

    Deity

    _______________________________________________
    EDIT:
    I'm just finished a better controll of the cursor with all 4 directions. I hope you'll like it!
    Have fun while testing.

    Deity
    « Last Edit: May 12, 2010, 05:06:49 PM by Deity »
    Greetings
    DigiDeity

    ├Work┤
    ├Contact┤


    *
    Rep:
    Level 97
    2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
    The cursor movement is much more intuitive. Looks great Deity!

    **
    Rep: +0/-0Level 81
    RMRK Junior
    great script just one minor question is it possible to make skills unlearnable depending wot direction you go eg
    a mage has 2 trees one for offensive and one for defencive. would it be possible to have it so if u choose defencve then u cnt choose from the offencive brance

    **
    Rep: +0/-0Level 76
    RMRK Junior
    To call the SkillTree you have to write this in the "Call ..."

    what does that mean?  :o

    **
    Rep: +0/-0Level 76
    RMRK Junior
    ah ok i opened the demo....

    i have to unpack the thing because i got an error.

    now i know how to open demos, thanks.

    (i mean to open it to edit and so on, not the game)

    ***
    Rep:
    Level 74
    I'm baaack!
    It's like an improvement of Diablo 2's skill tree! :D

    EDIT: I finally found a game to use this this in that I think I'll finish! BTW I search skill tree and my reply is how I found this :D

    EDIT2:LOL same smily in both posts
    « Last Edit: March 16, 2011, 01:00:15 AM by RPGMakerVX52 »

    **
    Rep: +0/-0Level 82
    The dark,quiet night is the best time of the day
    one question, does it allow learning of passive skills or only active skills?

    (active = skills that we can/have to use ; passive = always active, we don't have to use it -e.g.: Standard Defense Up skill-)


    Nvm the question o.O found a script for passives that would go with this well
    « Last Edit: April 02, 2011, 09:28:46 PM by phoenixn91 »
    "Let the wings of an angel carry you on your way to happiness,even in hard times" ~O.d.l.T.~



    *
    Rep: +0/-0Level 69
    RMRK Junior
    I having trouble with you skill tree system every time I call the script this pops up.



    Script 'Skill Point' line 446: NoMethodError occurred.

    undefined method 'learnings'for NilClass:Class

    What do I do?

    *
    Rep: +0/-0Level 68
    RMRK Junior
    is it possible to set this so you can access the skill-tree from the menu, or do you have to set a call event every time you want to use it?

    *****
    my name is Timothy what's yours
    Rep:
    Level 79
    Hello
    2014 Most Missed Member2014 Zero to Hero2014 Best IRC Quote2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
    You could alter your Scene_Menu to include an option for the skill-tree, or better yet, alter Scene_Skill. For example, in the update method of Scene_Skill,
    Code: [Select]
    if Input.trigger?(Input::X)
      $scene = Scene_SkillTree.new(@actor_index)
    end
    should work, if you're having trouble doing this just ask me to do a rewrite of the class for you.

    LE EDIT:: Alternatively, stick this below the skill tree script, but still above main.
    Code: FIX [Select]
    class Scene_Skill < Scene_Base
      alias pac_deity_skltr_updsklselect update_skill_selection
      def update_skill_selection
        pac_deity_skltr_updsklselect
        if Input.trigger(Input::X)
          $scene = Scene_SkillTree.new(@actor_index)
        end
      end
    end
    « Last Edit: June 16, 2011, 07:43:58 AM by Pacman »
    it's like a metaphor or something i don't know

    *
    Rep: +0/-0Level 68
    RMRK Junior
    Hi! Great, great script! :)

    I've included access to the skill tree in my party menu but right now using it only allows you to access the skill tree of the first member in your party. Is there any way I can make it to where once you select the option to access the skill tree, it allows you to choose which character in your party you want to customize?

    EDIT: Also, is there a way to add text above a tree? To specify what kind of tree it is? (defense, attack etc,.)

    LAST EDIT: Not to keep adding to the problems here (haha) but I get an "comparison of Fixnum with nil failed" error when I go to learn a new ability.
    « Last Edit: July 04, 2011, 10:53:15 PM by Ghangis24 »

    **
    Rep: +0/-0Level 69
    Founder of Electronic Curse 2011
    Thankyou Thankyou!! You have no idea how long I've been looking for a script like this, and I cant create my own since I'm still a beginner Scripter.... Wonderful.

    **
    Rep: +0/-0Level 75
    Just another RM Guy
    I got a question about adding points to use for multiple characters:

    Since you can select which actors get points by using 'add_skill_points(party_member_id,points)', I noticed that the actor_id you have to put in is the ID (actor 001) minus 1 from it, so to add points to Actor 1, you put add_skill_points(0,3)
    and I thought that was odd.

    and

    Is there a way where I can gain points after defeating an enemy and only the people in my party get 'X points'?
    « Last Edit: July 25, 2011, 03:58:28 AM by Xearoth93z »