Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I have a custom archetype for the Witch that changes the patron spells into spell-like abilities. It has been working great until the last update. Now I get these errors for each spell that becomes a Spell-like ability.
Code:
Attempt to access 'focus' pick from script when no focus exists Location: 'eval' script for Component 'BaseSplPwr' (Eval Script 'Calc sConcCheck and sOverSplRs') near line 12 - - - Attempt to access 'focus' pick from script when no focus exists Location: 'eval' script for Component 'BaseSplPwr' (Eval Script 'Calc sConcCheck and sOverSplRs') near line 13 Any thoughts of what I am missing would be helpful. 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. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
The setfocus just before those lines depends on StandardDC tags.
But there's another script that should be assigning StandardDC.aCHA tags to spell-like abilities if they don't have any StandardDC tags, so I don't know why your ability wouldn't have a tag for that. I'm afraid I also don't know why it would have changed from something that was working. |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Now I just have to figure out why it shows as "light gray" instead of "black" text on the "Spells" summary tab. Which it also didn't use to do. I am not sure what exactly changed or "exactly" when. It was in the last few months but that covers allot of changes. Update: Changing the timing from final down to PostLevel/90000 seems to have corrected the light gray text issue. So I am all good again. Thanks! 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. |
|
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
When in the final phase were you? The StandardDC tags are assigned at Final/25000 (in "Calc sDC and sCL"), so if your script was telling the spells that they were spell-like abilities after that, the tag wouldn't have been automatically assigned.
|
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Ahhhh. Yeah I was just past that at Final/30000. So that would be the issue.
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. |
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
I'd guess that in order to make something else work, the Calc sDC and sCL script was moved a little earlier than it had been, so it's now before your script. So I'd make sure to add Timing restrictions to your script to warn about this in the future.
|
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
In my case I override the sDC and sCL values so I was trying to make sure I was just past when these values are calculated. But maybe instead I can now simply change the StandardDC from CHA to INT..... Hmmmm Thanks for the help 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. |
|
#7 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Sounds like you could also split your script - assign Helper.SpellLike in an early script, and overwrite the DCs in a later script. But if all you need to do is to change the attribute, changing the tag should handle that.
Edit: Or rather, assigning the tag before Calc sDC and sCL - if there is a StandardDC tag present, StandardDC.aCHA won't be assigned. |
#8 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
If I change the DC using Tags then I just need to make sure the CL is correct. Maybe just easier to just add in the difference, what HL calculates and what I need, instead of trying to override the value at Final timing. 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. |
|
#9 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Quote:
|
|
#10 |
|
|