Skill System

Draphoelix

It's not the wintercold that's killing me
Reaction score
132
How do you do the Skill System as the WoW Molten Core (It's unprotected but I can't figure out how it works).

Okay, the hero got 3 skills, like Balance, Restoration and Feral. When he learns (for example) Balance, then it works like a spellbook, few other skills pops up and when you learn thoose, u'll get the skill.

What I need are the explanations of the triggers.

HTML:
Open balance1 Tree
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Druid1 (Balance)
    Actions
        -------- Setup the arrays for this skill tree: --------
        Set HeroSkill_learn[0] = Wrath (fake)
        Set HeroSkill_real[0] = Wrath 
        Set HeroSkill_learn[1] = Entangling Roots (fake)
        Set HeroSkill_real[1] = Entangling Roots (ke)
        Set HeroSkill_learn[2] = Hurricane (fake)
        Set HeroSkill_real[2] = Hurricane 
        Set HeroSkill_learn[3] = Moonfire (fake)
        Set HeroSkill_real[3] = Moonfire 
        -------- Remember the level of each static spell --------
        For each (Integer A) from 0 to 3, do (Actions)
            Loop - Actions
                -------- Next is just to allow the editor use the hero skill variable as ability --------
                Custom script:   set udg_HeroSkillAsAbility = udg_HeroSkill_real[ bj_forLoopAIndex  ]
                -------- Remember --------
                Set SkillLevel[(Integer A)] = (Level of HeroSkillAsAbility for (Triggering unit))
                -------- Remove the static ability --------
                Unit - Remove HeroSkillAsAbility from (Triggering unit)
        -------- The button is just an option, it shouldn't waste a skill point --------
        Hero - Modify unspent skill points of (Triggering unit): Add 1 points
        Unit - Remove Druid1 (Balance) from (Triggering unit)
        -------- Add the two engineering upgrades that allow this skill tree --------
        Unit - Add Druid1 Tree Part 1  to (Triggering unit)
        Unit - Add Druid1 Tree Part 2  to (Triggering unit)
        -------- Enable the exit tree button: --------
        Unit - Add Add Exit Skill Tree Button  to (Triggering unit)
        -------- Relearn the learnable abilities using the noted levels --------
        For each (Integer A) from 0 to 3, do (Actions)
            Loop - Actions
                For each (Integer B) from 1 to SkillLevel[(Integer A)], do (Actions)
                    Loop - Actions
                        Hero - Modify unspent skill points of (Triggering unit): Add 1 points
                        Hero - Learn skill for (Triggering unit): HeroSkill_learn[(Integer A)]

Okay, can someone explain how it works? I know how it works in-game but I don't understand the lines, why it's like that or anything.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top