This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] Required Talents to 1  (Read 856 times)

Rolayler

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
[QUESTION] Required Talents to 1
« on: August 12, 2014, 03:55:18 am »
Is it possible to make it so just one or two classes have a required talent point(s) one to move to the next tier of talent points? I see in the TalentsBaseFrame.lua there is a Player_Talents_Per_Tier, but I have a feeling if I modify that to one it will modify every class to require one talent point to move to the next tier.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

noc

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 121
    • View Profile
Re: [QUESTION] Required Talents to 1
« Reply #1 on: December 04, 2014, 05:16:48 pm »
You can test this, for example warrior :

            -- is this talent's tier unlocked?
            if ( ((tier - 1) * (TalentFrame.pet and PET_TALENTS_PER_TIER or PLAYER_TALENTS_PER_TIER) <= tabPointsSpent) ) then
               tierUnlocked = 1;
            else
               local _, englishClass = UnitClass("player");
               if englishClass == "WARRIOR" then
                  tierUnlocked = 1;
               else
                  tierUnlocked = nil;
               end
            end