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 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 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 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 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 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 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 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 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...