Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
TheBullDog
Junior Member
 
Join Date: Oct 2008
Posts: 26

Old April 29th, 2017, 09:54 PM
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:
Cannot set dynamic linkage 'castattr' when no default linkage exists
Quote:
perform linkage[table].setfocus
doneif (state.isfocus = 0)

doneif (tagis[Helper.Disable] <> 0)

~ Spellcasting attribute
perform focus.setlinkage[castattr,BaseAttr,"IsAttr.aWIS"]
~ perform focus.setlinkage[spellattr,BaseAttr,"IsAttr.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
Is there anyway to assign the spell-casting attribute without Duplicating the Monk class?

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.
TheBullDog is offline   #1 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old April 30th, 2017, 11:25 AM
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:
perform linkage[table].setfocus

doneif (state.isfocus = 0)

~ Spellcasting attribute
perform focus.setlinkage[castattr,BaseAttr,"IsAttr.aINT"]

~ Spellcasting type
perform focus.assign[CasterType.SpontKnow]
perform focus.assign[CasterSrc.Arcane]
perform focus.assign[Helper.3rdCaster]
perform focus.assign[sClass.cHelpWiz]

~ Cantrip Array
focus.field[cArrKnCan].arrayvalue[2] += 2
focus.field[cArrKnCan].arrayvalue[9] += 3

~ Spells Known Array
focus.field[cArrKnSpl].arrayvalue[2] += 3
focus.field[cArrKnSpl].arrayvalue[3] += 4
focus.field[cArrKnSpl].arrayvalue[6] += 5
focus.field[cArrKnSpl].arrayvalue[7] += 6
focus.field[cArrKnSpl].arrayvalue[9] += 7
focus.field[cArrKnSpl].arrayvalue[10] += 8
focus.field[cArrKnSpl].arrayvalue[12] += 9
focus.field[cArrKnSpl].arrayvalue[13] += 10
focus.field[cArrKnSpl].arrayvalue[15] += 11
focus.field[cArrKnSpl].arrayvalue[18] += 12
focus.field[cArrKnSpl].arrayvalue[19] += 13

~ Max Spell Levels Array
focus.field[cArrKnLev].arrayvalue[2] += 1
focus.field[cArrKnLev].arrayvalue[6] += 2
focus.field[cArrKnLev].arrayvalue[12] += 3
focus.field[cArrKnLev].arrayvalue[18] += 4

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #2 Reply With Quote
TheBullDog
Junior Member
 
Join Date: Oct 2008
Posts: 26

Old April 30th, 2017, 02:07 PM
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.
TheBullDog is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 30th, 2017, 02:56 PM
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]
I will add I didn't test this so again not sure it will work for a class that has no casting logic to start with.

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.
ShadowChemosh is offline   #4 Reply With Quote
TheBullDog
Junior Member
 
Join Date: Oct 2008
Posts: 26

Old April 30th, 2017, 05:50 PM
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.
TheBullDog is offline   #5 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 30th, 2017, 07:01 PM
Quote:
Originally Posted by TheBullDog View Post
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.
Ok. The FOCUS in the script is already set to point to the class helper.

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]
The above are different ways to transition to Picks in HL.

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.
ShadowChemosh is offline   #6 Reply With Quote
TheBullDog
Junior Member
 
Join Date: Oct 2008
Posts: 26

Old April 30th, 2017, 07:18 PM
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
TheBullDog is offline   #7 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 11:33 AM.


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