Member
Join Date: Dec 2012
Posts: 39
|
Hello,
Does anyone know how to add 1 power know to a classe. I am trying to get the soulknife bladeskill Mental power . Quote:
What should i do ? |
|
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Look at the "Expanded Knowledge" feat from the Psionics Package. It does what your asking. Opps actually it does more than your asking. But the feat also gives a bonus Power Known so that a person can add their new power. So you just want the one part of the script but it gets you what you need.
Thinking of this I should add Adjustments for Powers into the PU for next release. Thanks for the idea! 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. |
#2 |
Member
Join Date: Dec 2012
Posts: 39
|
I saw this one, but when i copy it i dont know how to limit the picking to the power list of the gifted blade.
I am really bad at this .. i think i understand 20% of every scripts... when i make one from copy of others i just cross my fingers.. And yet, even the feat itself doesnt do what i need. I just want it to give +1 power known Last edited by kabreras; April 7th, 2014 at 10:13 AM. |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Quote:
But its going to be the line with "+=" most likely to the field[abValue].value which was set to 1. I usually do a good job with comments so read the comments after the "~" to see which one increases the known. Or heck if you are looking at it right now past the code into this thread so we can all see and help. Also and yes its frustrating at first learning HL scripting. But each time you get better and better. Trust me I didn't start out knowing all this stuff. If you find Really Old posts from me you will see I am asking basic questions from Mathias. 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 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
So for the OP and future readers here is the script from the feat Expanded Knowledge:
Pre-Levels/5000 Code:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) ~ If nothing chosen get out now doneif (field[usrChosen1].ischosen <> 1) ~ If nothing chosen get out now doneif (field[usrChosen2].ischosen <> 1) ~ Get spell level from selection perform field[usrChosen2].chosen.pulltags[ClsAllowPs.?] perform field[usrChosen1].chosen.pushtags[ClsAllowPs.?] ~ Increase the powers known field by one field[usrChosen1].chosen.field[cPsiPowMax].value += 1 In your case it sounds like you know exactly what the class is that gets the bonus. So replace "field[usrChosen1].chosen" with "hero.child[cHelpXXX]" and change "XXX" with the three digit unique ID for your class. 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 |
Member
Join Date: Dec 2012
Posts: 39
|
Thanks, i will try that.
I must have missed something in the build of the gifted blade. 1st i couldnt build it as an archetype because the powers wouldnt calculate normally so i made it a class on its own. But i noticed yesterday that the expended knowledge fead doesnt work with it. The 1st dropdown that allow to choose a class only show nothing to choose from. Look like HL do not know that it is a psionic class but i cant figure where it is noted. |
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
We added new tag Psionics.Class with the creation of PU stuff it's listed in the data authoring notes. You have to add this tag to your new class on the Class tab. Then it will be able to correctly get displayed in the list of choices and will work correctly for the psionic races.
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 |
Member
Join Date: Dec 2012
Posts: 39
|
It all work now. Thanks a lot for the help.
So the whole thing is Pre-level 5000 Code:
~ Increase PP by 2 #resmax[resPowerPt] += 2 ~ Increase the powers known field by one hero.child[cHelpSGB].field[cPsiPowMax].value += 1 The count of PP is wrong on the class tab, it show 18. In the psionics and up tab it show the right count : 28. 9 (level) + 9(wisdom) + 5 (psionic talent *2) + 5 (favored class) Last edited by kabreras; April 8th, 2014 at 12:22 AM. |
#8 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I was told by LW that is correct. The class tab shows your class total and the Psionics tab displays the total from all sources.
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
Join Date: Oct 2011
Posts: 6,793
|
I can confirm that is working as intended.
|
#10 |
|
|