Diablo Style Unlock Tree?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I planning on implementing a Diablo style unlock tree into my game for the weapon / ability upgrades. The game will allot credits awarded at point thresholds that can be then used to unlock incremental upgrades on branching unlock trees.
    It doesn't seem too complex, but just wondered if anyone else had gained experience from trying it themselves before I set about my own ham-fisted attempt.

  • I didn't play diablo at all so only what gets to my mind is use alterable values for objects.

    #1 Create Active wich represents icons of ability
    #2 Add to it Alterable Values named whatever you want, I prefer naming skill_vnum_01 - skill_vnum_x (where x is final skill count)
    #3 Create Semitransparent sprite (about 65% transparency)

    And simply by comparing values of your variables show/hide on wich is unlocked or locked

    Simple example (variable naming to be intuitive)

    #1 skill_bloodlust < MAX_SKILL_LEVEL
    #2 can_regenerate = 0

    #3 skill_bloodlust >= MAX_SKILL_LEVEL
    #4 can_regenerate = 1

    Wich means if skill_bloodlust value is lower than MAX_SKILL_LEVEL var can_regenerate is 0 (wich means is disabled)
    but if value of skill_bloodlust gets higher or equal to MAX_SKILL_LEVEL, set can_regenerate to 1, which unlocks new ability

    simply put these conditions on events whatever you want.

    (written from memory and may contain some flaws)

    Edited once, last by Lazarus1988 (October 5, 2015 at 7:40 AM).

  • Cool, thanks for your perspective. I'll look into those methods!

    If anyone is unclear by what I mean, here is an example from Supreme Commander 2:
    Please login to see this attachment.

    For a really insane example, see Path of Exile!:
    Please login to see this attachment.

  • Please login to see this attachment.

    Please login to see this attachment.

    This is a example of how I would do it myself. It's in no way purfect but its a good start. I have included comments to help you understand what part is what. (Sorry for my english and messy code). I hope this helps and if you have a problem or would like some more infomation on how this is done, let me know! ^^

    This is only a example. I have included some sound files that let you know if there is a problem with spending points.

    I hope this helps!

    Feel free to edit/sell ect. <3

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!