• 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

Ok, it looks like the psiClass replacment of sClass in the HavePower procedure allows for Concealed Thoughts to pass validation --

Concealed Thoughts is one of the powers that are normally in my power list, so that makes sense.

It looks like powers added through Expanded Knowledge don't pass validation, however.
 
Adding a Power Known +1 and Add Power to Class Power List adjustment don't allow for normally non-class power powers that are added to class power list to pass validation either.
 
you should not have to change the procedure. that procedure is being used in mutliple feats and was correctly working.
i'm looking at the procedure right now and i don't see a psiClass or sClass in it. so not sure what you are looking at...

again...without changing the procedure, i copied your text into a pre-reqs, and it did properly validate when i had concealed thoughts (both with power 0 and power 1 tested) and with doing the expanded knowledge and adding brain lock to power list. so i don't know why it isn't validating for you, it is validating for me.

i had something similar happen to me with the assassin's venom feat. it was clearing for shadow but not for me. a couple days later he asked me to take screenshots of my process to verify and as i started to do that it was suddenly clearing validation. i have no idea why it suddenly worked (i had restarted herolab before just in case that was the hangup) for me. maybe this is the same thing now because your code is working for me
 
i'm looking at the procedure right now and i don't see a psiClass or sClass in it. so not sure what you are looking at...

I'm looking at the HavePower Procedure in the file COM_3PPack_UltimatePsionics - Procedures.user

Here's the whole procedure:

Code:
    ~ This procedure tests if a character has a specific spell and sets the valid field
    ~ ===How to use this Procedure===
    ~ var PowerID as String
    ~ var HavePower as number
    ~ PowerID = "spCureLig1"
    ~ Call HavePower
    ~ @valid = HavePower

    ~ This procedure tests if a character has a specific spell and sets the valid field
    ~ ===How to use this Procedure===
    ~ var PowerID as String
    ~ var HavePower as number
    ~ PowerID = "spCureLig1"
    ~ Call HavePower
    ~ @valid = HavePower

    var HavePower as number
    var PowerID as string
    var s2search as string
    var s2classes as string
    var X as number
    ~ Init fields here
    X = 0
    HavePower = 0

    ~ Add thingid to the spell id passed us
    PowerID = "thingid." & PowerID
    ~ replace the | with |thingid. tag groups
    PowerID  = replace(PowerID,"|","|thingid.",0)

    ~ Get the classes that are valid for the spell ID(s) passed to us
    foreach thing in BasePower where PowerID
       ~ only do anything if we a spell with classes
       if (eachthing.tagis[sClass.?] <> 0) then
          ~ if loop counter not zero then add a seperator between strings
          if ( X <> 0) then
             ~ add a seperator between each loop
             s2classes &= "|"
          endif    
          ~ Build a search sting of all class tags
          s2classes = eachthing.tagids[sClass.?,"|"]
          ~ increment loop counter
          X += 1
       endif
    nexteach

    ~ Get the classes that are valid for the spell ID(s) passed to us
    foreach pick in hero where PowerID
       ~ only do anything if we a spell with classes
       if (eachpick.tagis[sClass.?] <> 0) then
          ~ if loop counter not zero then add a seperator between strings
          if ( X <> 0) then
             ~ add a seperator between each loop
             s2classes &= "|"
          endif    
          ~ Build a search sting of all class tags
          s2classes = eachpick.tagids[sClass.?,"|"]
          ~ increment loop counter
          X += 1
       endif
    nexteach

    ~ replace the sClass tags with thingid tag groups
    s2search = replace(s2classes,"sClass","thingid",0)

    ~ Loop through classes and see if we have one of the classes
    ~ valid for casting CLW spells
    foreach pick in hero where s2search
       HavePower = 1
    nexteach

The Psion[Telepath] class has Brain lock in it's normal class power list. So that is probably why it is validating for you.

Try using Cryptic as your base non-prestige class. It has access to Conceal Thoughts but not Brain Lock normally.

Secondly, I found this in the expanded knowledge feat. Can't this be used to validate that we have the power chosen:

Code:
        ~ See if we can find the power live on hero
        perform hero.findchild[BasePower,sTag].setfocus
        ~ We are valid if we got a hit
        validif (state.isfocus <> 0)

Replacing "sTag" with the powerid?
 
Last edited:
will try cryptic.
when i added expanded knowledge it stayed red until i selected the power in the class list, so i assume that is what that code is doing
 
cleared validation for me with cryptic base class.
added conceal thoughts 0 to power list
added expanded knowledge feat, choose cryptic and brain lock
added brain lock 2 to power list
prestige class cleared validation
 
Hmm... ok, then, why isn't it doing that for me.

When I say it doesn't pass validation, I chose the "!" in the upper right hand corner for a validation report. What shows up there for you?
 
Last edited:
i removed brain lock from power list again and you can see my prestige class is not valid

then added it again and you can see it clear
 

Attachments

  • not valid.jpg
    not valid.jpg
    199.9 KB · Views: 2
  • valid.jpg
    valid.jpg
    210.1 KB · Views: 2
Here's what I have: I have Brain Lock added through a permanent adjustment and Conceal thoughts is part of the normal class list.
 

Attachments

  • Not_Valid.jpg
    Not_Valid.jpg
    106.8 KB · Views: 1
  • Not_Valid2.jpg
    Not_Valid2.jpg
    132.1 KB · Views: 1
@Quintain you are running WAY out of date files. HavePower you posted for the code is not current or what is in the Repository. Look HERE that is the latest and why you guys are talking past each other. Do a new pull of the 3PP Pack to get the correct HavePower procedure.
 
Ok, that makes sense now. I have a pull option on SourceTree. I've updated the classes file with my Body Snatcher prestige class. Is there any way to pull the new procedures file and not lose the Body Snatcher changes in the class file?

Edit: I think I was succesful in getting the changes pushed up to SourceTree. Anyway you can confirm?
 
Last edited:
Ok, once I was able to pull the most recent procedures file, I was able to pass validation on the checks I was looking at.

Mystery Solved.
 
hehe excellent.
i had thought of this possibility for a brief second last night, but it was like 2am by then and i drifted off to sleep for a few hours :o)
 
Back
Top