|
Member
Join Date: Apr 2018
Location: New York
Posts: 45
|
Unsure if anybody has coded for this yet (can't find it in the Community Repository), but I'm trying to create a Variant Multiclassing option for Kineticist. How do I edit the class's special abilities? Are their Field IDs visible somewhere that I could use as a reference?
-------------------------------------------------------------- Progressing along on getting the class abilities to manifest with access to the talents and infusions, but I'm struggling to figure out the Eval Scripts to manage effective levels for various abilities (treating Kinetic Blast as if their Kineticist level was their character level -6, or Elemental Defense as if their Kineticist level was 1/2 their character level, for example). I used the VMC Sorcerer/Barbarian/Bard files for reference, but the closest script I can find to even get started is: efflevel = field(cTotalLev).value and yet Hero Lab stops compiling even with this simple script because: Syntax error in 'eval' script for Thing 'csKinetici' (Eval Script '#1') on line 2 -> Invalid use of reserved word 'field' in script Can anybody recommend some sample script to experiment with? Last edited by Mediator9292; December 8th, 2020 at 03:05 PM. Reason: Solved some basic issues on my own, have harder, more specific ones now. |
#1 |
Member
Join Date: Apr 2018
Location: New York
Posts: 45
|
Ok I've made a lot more progress in this since then, but now I'm trying to make it so that the Kineticist Defense (abCategory.KinetDefen) ability is hidden until level 15. I've tinkered with a few options for how to achieve this via eval script, but I can't seem to make it work.
Code:
doneif (field[cTotalLev].value < 15) perform hero.assign[HasAbility.abCategory.KinetDefen] Code:
foreach pick in hero from BaseCustSp where "abCategory.KinetDefen" if field[cTotalLev].value < 15 perform eachpick.assign[Hide.Statblock] nexteach endif I know the KinetDefen abilities are tagged to the chosen Elemental Focus (KinetElem.X) and automatically kick in at effective level 2, but I need the Elemental Focus (and connected Basic Utility Wild Talent) to be chosen at Level 3, so that the Kinetic Blast ability can be gained at Level 7. I've currently got it successfully coded so that the user's effective Kineticist level is 1/2 their character level. |
#2 |
Senior Member
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 469
|
Timing of those scripts?
Total level count is available around Levels 10000... anything referring to it before that timing is not going to work. |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,238
|
Your code has many syntax errors. In the first script, in the assign, that must be two strings, separated by a . - you have three strings, separated by 2 periods.
In the second, you close the foreach with a nexteach, but the if that's inside the foreach is closed outside the foreach/nexteach. Also in the second, the parentheses in the if line are missing. |
#4 |
Member
Join Date: Apr 2018
Location: New York
Posts: 45
|
Ok, I made a few changes, and for reference, I have this eval script set at Levels/11000, per Lord Magus' advice.
My first option wound up like this: Code:
doneif (field[cTotalLev].value < 15) perform hero.assign[HasAbility.KinetDefen] My second option wound up like this: Code:
foreach pick in hero from BaseCustSp where "abCategory.KinetDefen" if (field[cTotalLev].value < 15) then perform eachpick.assign[Hide.Statblock] endif nexteach I figured a third option would be to just delete the granted ability until level 15, so I wound up experimenting with this block of code instead: Code:
foreach pick in hero from BaseCustSp where "abCategory.KinetDefen" if (field[cTotalLev].value < 15) then perform eachpick.delete[abGranted] endif nexteach So I'm still stuck. Any more ideas? |
#5 |
Thread Tools | |
Display Modes | |
|
|