Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
kabreras
Member
 
Join Date: Dec 2012
Posts: 39

Old April 7th, 2014, 04:29 AM
Hello,

Does anyone know how to add 1 power know to a classe.

I am trying to get the soulknife bladeskill Mental power .

Quote:
Mental Power

The soulknife gains an additional power known from the gifted blade power list, up to the maximum power level she can manifest. In addition, the soulknife gains an additional 2 power points. This blade skill can be selected multiple times. Each time, the soulknife gains another power known and 2 additional power points. The soulknife must have manifesting ability from her levels in soulknife in order to select this blade skill.
I managed to get the +2 PP to work but i cant manage to add 1 power know (and i can not find anything that does the same to copy)

What should i do ?
kabreras is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 7th, 2014, 09:59 AM
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.
ShadowChemosh is offline   #2 Reply With Quote
kabreras
Member
 
Join Date: Dec 2012
Posts: 39

Old April 7th, 2014, 10:06 AM
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.
kabreras 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 7th, 2014, 03:07 PM
Quote:
Originally Posted by kabreras View Post
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.
Limiting it to the powers of a specific class would be done on the "Custom Expression". Right now I would assume it says "component.BasePower" you need to change it to be "component.BasePower & psiClass.XXXXXX" where "XXXXX" is the cHelp Unique ID of your Gifted Blade.


Quote:
Originally Posted by kabreras View Post
And yet, even the feat itself doesnt do what i need.

I just want it to give +1 power known
As mentioned it does "more" than you need so you just need to take out the section of the script that increase the number of known. I don't have access here at work.

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.
ShadowChemosh is offline   #4 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 7th, 2014, 10:12 PM
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
So by doing nothing more than reading the comments in green you can see where we increase powers known by one. The only part you have to change is away from the "chooser" that is shown. This is because on this feat you have to pick which class to gets the +1 powers known.

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.
ShadowChemosh is offline   #5 Reply With Quote
kabreras
Member
 
Join Date: Dec 2012
Posts: 39

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

Old April 7th, 2014, 11:41 PM
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.
ShadowChemosh is offline   #7 Reply With Quote
kabreras
Member
 
Join Date: Dec 2012
Posts: 39

Old April 7th, 2014, 11:59 PM
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
Only got 1 display error :

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.
kabreras is offline   #8 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 8th, 2014, 12:09 PM
Quote:
Originally Posted by kabreras View Post
Only got 1 display error :

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)
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.
ShadowChemosh is offline   #9 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old April 8th, 2014, 02:14 PM
I can confirm that is working as intended.
Aaron is offline   #10 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 01:29 PM.


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