• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Robe of Arcane Heritage for Secondary Class

FluffyDingo

Well-known member
Hey all, hopefully a simple question that I've just overlooked the solution to. The Robe of Arcane Heritage increases your effective Sorcerer levels by 4 for the purposes of determining what bloodline powers you have access to, and their strength. I'm trying to make this also apply to the secondary class Sorcerer. I have it increasing the power of the abilities that are unlocked just fine, but with the way it is coded to unlock them, I haven't been able to make that work.

My question is how can I increase my "total level" for when it goes through and checks to delete the AbReplace tags that disable the bloodline abilities?

Code:
doneif (field[gIsEquip].value = 0)

   foreach pick in hero from BaseCustSp where "SpecSource.csSorcerer"

      perform delete[AbReplace.cSorBl1st]

      if (field[cTotalLev].value >= 3) then
        perform delete[AbReplace.cSorBl3rd]
        endif

      if (field[cTotalLev].value >= 11) then
        perform delete[AbReplace.cSorBl9th]
        endif

      if (field[cTotalLev].value >= 15) then
        perform delete[AbReplace.cSorBl15th]
        endif
nexteach

This is wrong for the selection of each ability, since they are not unlocked yet, but the way I was thinking was to go through and delete the tags via the item itself (checking for 4 levels lower) during First 449, before the class does its own check at First 450.
 
Oppss my bad read too quick... Would need to look into this a little later as I have not looked a the Secondary Classes from PU yet...
 
Last edited:
Oppss my bad read too quick... Would need to look into this a little later as I have not looked a the Secondary Classes from PU yet...

No worries, the coding on it is... different haha. Instead of checking for levels to enable them, like normal class ability bootstraps, it seems to check for levels then disables everything you don't qualify for. Tried a few more things since I posted, but still no luck.
 
From what I see, I would expect your initial plan of deleting the AbReplace tags before they could be used to disable things should work. Just set a variable equal to the total level plus 4 and use that instead of cTotalLev. Also, I don't think a foreach is necessary.

First 440
Code:
      doneif (field[gIsEquip].value = 0)

      perform hero.childfound[csSorcerer].setfocus

      doneif (state.isfocus = 0)

      var efflevel as number
      efflevel = focus.field[cTotalLev].value + 4

      perform focus.delete[AbReplace.cSorBl1st]

      if (efflevel >= 3) then
        perform focus.delete[AbReplace.cSorBl3rd]
        endif

      if (efflevel >= 11) then
        perform focus.delete[AbReplace.cSorBl9th]
        endif

      if (efflevel >= 15) then
        perform focus.delete[AbReplace.cSorBl15th]
        endif
 
Back
Top