• 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

trying to use a Psion power as a prerequisite for a feat

psych777

Well-known member
feat requires the metamorphosis power as a prerequisite. been trying to figure a way to get that to work in herolab and can't seem to figure it out. metamorphosis is a 3rd level power for the psion (egoist). the closest i've settled for at the moment is requiring the egoist as validation, but it still makes the feat selectable before the egoist is up to the 3rd level powers
 
Well, keep in mind I am only tangentially aware of psionics.

Is the power a class ability or custom special ability? If so, you can check for the ability using the #hasability[] macro in an expr-req.

If it is a specific psionic power (analagous to a spell), then you can use a childlives to check if there is a pick (for casters which must add the spell to their hero, analagous to sorcerer casting). If the class gets all powers but kits themselves out with a different set each day (like cleric memorization), then things get a bit messy.
 
Easier would be to use the Procedure I wrote for UP called "HavePower" so you can easily test to see if a character has a Power. :)

Code:
    var PowerID as String
    var HavePower as number
    PowerID = "puLight0"
    Call HavePower
    @valid = HavePower
 
Easier would be to use the Procedure I wrote for UP called "HavePower" so you can easily test to see if a character has a Power. :)

Code:
    var PowerID as String
    var HavePower as number
    PowerID = "puLight0"
    Call HavePower
    @valid = HavePower

maybe i'm not using the procedure right...is the "@valid = HavePower" the same as a "validif" line?
i put the above code in the Pre-reqs, replacing puLight0 with puMetamor3 but it doesn't validate when i select that power for the character.

and thanks aaron, i know psionics isn't your forte. it is a specific power and has no "HasAbility" tag on it...i use that #hasability a lot so was the first thing i was looking for :)
 
maybe i'm not using the procedure right...is the "@valid = HavePower" the same as a "validif" line?
Correct.

i put the above code in the Pre-reqs, replacing puLight0 with puMetamor3 but it doesn't validate when i select that power for the character.
I admit I wrote this a long time ago and allot has changed sense then. I will look at seeing what is wrong and hopefully fix it.
 
I have it fixed and working again. Do a PULL from the 3PP Pack to get the latest version. In addition just so you know you can pass in multiple powers with an "|" to act as an or statement.

In example:
Code:
    var PowerID as String
    var HavePower as number
    PowerID = "puMetamor3|puMetamor2"
    Call HavePower
    @valid = HavePower

If you needed to do an "and" statement you could do this:
Code:
    var PowerID as String
    var HavePower as number
    var HavePower1 as number
    var HavePower2 as number
    PowerID = "puMetamor3"
    Call HavePower
    HavePower1 = HavePower

    PowerID = "puMetamor2"
    Call HavePower
    HavePower2 = HavePower

    ~ We must have both Metamorphosis and Metamorphosis, Minor
    ~ to be valid.
    validif (HavePower1 + HavePower2 = 2)
 
Shadow,

Need some assistance with this. I'm trying to set up the Prestige Class requirements for The Body Snatcher (requires ability to manifest Conceal Thoughts and Brain Lock as powers) as follows:

------------------------------
var PowerID as String
var HavePower as number
var HavePower1 as number
var HavePower2 as number

PowerID = "puBraiLck2"
Call HavePower
HavePower1 = HavePower

PowerID = "puConTho0|puConTho1"
Call HavePower
HavePower2 = HavePower

~ We must have both Brainlock and Conceal Thoughts
~ to be valid.

validif (HavePower1 + HavePower2 = 2)

----------------------------------------------------------

It looks like a and with the 2nd term being an 'or' to me.

Advise?
 
I split them up as suggested. Still no go. Despite having Conceal Thoughts (as a talent), and Brain Lock using Expanded Knowledge feat, I still can't get past validation.

The result is not validating properly. I'm wondering if the HavePower validation procedure is out of date.
 
Last edited:
so if you split them up there should be 2 different red text lines showing the requirement. does either line go away once you add the specified power? (as in is it just one of them that isn't working or is both failing)
 
Ok, someone tell me if I'm off base here:

On anther thread, I see;

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.

Now, it looks like psiClass is the groupid that lists the classes that are psionic. Yet in the HavePower procedure, I see references to "sClass". Which if my searching is any indication, these are spellcasting classes.

If I'm not off base here, would changing sClass to psiClass in the procedure fix things provided that the script logic is correct?
 
Psych777: to answer. After I split them up, the first one fails, which is the brain lock test. (after changing sClass to psiClass in the procedure.
 
Last edited:
i just tested by adding your script to the psion uncarnate class and after i add brain lock and conceal thoughts it clears the validation...but i didn't use the expanded knowledge feat...will try that now
 
ahh. the expanded knowledge has a note to go to class tab and add the power there. so once i do that it clears validation.
so the script itself works with the current procedure. the procedure shouldn't need changing.
do you have anything else besides the code you pasted in your first query in the pre-req?
 
Psych777: to answer. After I split them up, the first one fails, which is the brain lock test. (after changing sClass to psiClass in the procedure.

so sounds like conceal thoughts clears....
did you see the note on the expanded knowledge feat that says to go add your power on the class tab? did you add brain lock there?
 
Back
Top