• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Psionic power know

kabreras

Active member
Hello,

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

I am trying to get the soulknife bladeskill Mental power .

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 ?
 
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! :D
 
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:
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.


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. ;)
 
So for the OP and future readers here is the script from the feat Expanded Knowledge:

Pre-Levels/5000
Code:
[B][COLOR="Green"]~ If we're disabled, do nothing[/COLOR][/B]
doneif (tagis[Helper.FtDisable] <> 0)
[B][COLOR="Green"]~ If nothing chosen get out now[/COLOR][/B]
doneif (field[usrChosen1].ischosen <> 1)
[B][COLOR="Green"]~ If nothing chosen get out now[/COLOR][/B]
doneif (field[usrChosen2].ischosen <> 1)

[B][COLOR="Green"]~ Get spell level from selection[/COLOR][/B]
perform field[usrChosen2].chosen.pulltags[ClsAllowPs.?]
perform field[usrChosen1].chosen.pushtags[ClsAllowPs.?]

[B][COLOR="Green"]~ Increase the powers known field by one[/COLOR][/B]
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.
 
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.
 
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.
 
It all work now. Thanks a lot for the help.

So the whole thing is

Pre-level 5000
Code:
[COLOR="SeaGreen"]~ Increase PP by 2[/COLOR]
#resmax[resPowerPt] += 2

[COLOR="SeaGreen"]~ Increase the powers known field by one[/COLOR]
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:
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.
 
Back
Top