Junior Member
Join Date: Oct 2008
Posts: 26
|
I didn't want to revise a dead thread, though it is pretty much the same exact issue as the other thread. However, I am having the exact same issue, except I am trying to do it to the Monk class with a revised Way of the Four Elements archetype, as opposed to a Vampire in the other thread.
Quote:
Quote:
I love you guys (Wolf-Lair / Hero Lab) but your lack of how to for the editor is frustrating. At the very least a complete list of scripting and tags and what not would be nice. The editor has been out for how long, and there is still pretty much zero documentation on it. I mean sure, you have a very basic tutorial... But that is bunk when it comes to advanced stuff. And the one thing that should tell me how to do this, doesn't work it gives me the aforementioned error. |
||
#1 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
1) Look at the scripting for the Arcane Trickster and/or Eldritch Knight.
2) What is your Phase/Priority set to? The above use: First/10000. Example: Arcane Trickster Phase: First, Priority: 10000 Quote:
Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
|
#2 |
Junior Member
Join Date: Oct 2008
Posts: 26
|
Code does not work, if you read my post that is the exact code I have posted. Eldritch Knight, and Arcane Trickster both have a spell casting attribute selected in the base class.
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
You can change a Linkage via script but you can NOT set it via script. That is just how HL authoring kit logic works. Meaning if the class did not have a spell casting attribute set when made you can't change it via this logic.
Instead you will need to assign the SplAttr.? at First/20000 to the class helper. I "think" that will work in 5e. In example add this to your script and remove the linkage logic. Code:
perform focus.assign[SplAttr.aINT] 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. |
#4 |
Junior Member
Join Date: Oct 2008
Posts: 26
|
If I am understanding you correctly, I would need access to the class helper to do that, which I don't have because it is a base class and part of the encrypted hero lab files.
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
The code I gave you above replaces your linkage code in your script. Just FYI you could also go direct to a class helper using a bit of code like this: Code:
perform hero.childfound[cHelpRog].assign[SplAttr.aINT] I would recommend reading the Glossary of Terms for the Editor. Then check out FAQ#2 for all the places to learn about the editor including YouTube videos. Welcome to the wonderful world of using the HL editor which will be the most frustrating and rewarding thing you can do with Hero Lab. 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. |
|
#6 |
Junior Member
Join Date: Oct 2008
Posts: 26
|
That second code worked perfectly... The big problem was the Spell DC not taking into account the Ability Bonus. So thank you!
In the end my code looked like this. Code:
perform linkage[table].setfocus doneif (state.isfocus = 0) perform hero.childfound[cHelpMnk].assign[SplAttr.aWIS] ~ Spellcasting type perform focus.assign[CasterType.SpontKnow] perform focus.assign[CasterSrc.Divine] perform focus.assign[Helper.WarlocCast] perform focus.assign[sClass.cHelpMnk] ~ Cantrip Array focus.field[cArrKnCan].arrayvalue[3] += 1 focus.field[cArrKnCan].arrayvalue[6] += 2 focus.field[cArrKnCan].arrayvalue[11] += 3 focus.field[cArrKnCan].arrayvalue[17] += 4 |
#7 |
|
|