Hi Team,
Everytime i try this tutorial i get an error message:
"cannot set dynamic linkage 'castattr' when no default linkage exists"
Any idea what I'm missing? The line causing the error is in italics.
Tutorial 6 - Adding Spellcasting
Phase: Pre-levels
Priority: 10000
Index: 1
Everytime i try this tutorial i get an error message:
"cannot set dynamic linkage 'castattr' when no default linkage exists"
Any idea what I'm missing? The line causing the error is in italics.
Tutorial 6 - Adding Spellcasting
Phase: Pre-levels
Priority: 10000
Index: 1
Code:
perform linkage[table].setfocus
doneif (state.isfocus = 0)
~ Spellcasting attribute
[I]perform focus.setlinkage[castattr,BaseAttr,"IsAttr.aINT"][/I]
~ 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