Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
FluffyDingo
Senior Member
 
Join Date: Jan 2015
Posts: 160

Old July 2nd, 2015, 11:46 AM
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.
FluffyDingo is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old July 2nd, 2015, 12:07 PM
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...

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.

Last edited by ShadowChemosh; July 2nd, 2015 at 12:09 PM.
ShadowChemosh is offline   #2 Reply With Quote
FluffyDingo
Senior Member
 
Join Date: Jan 2015
Posts: 160

Old July 2nd, 2015, 12:22 PM
Quote:
Originally Posted by ShadowChemosh View Post
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.
FluffyDingo is offline   #3 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 2nd, 2015, 02:57 PM
I'm not that familiar with how secondary classes work. Let me look into it.
Aaron is offline   #4 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 2nd, 2015, 03:12 PM
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
Aaron is offline   #5 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:34 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.