|
Senior Member
Join Date: Feb 2012
Posts: 546
|
I'm looking to creating a custom feat that has the psionic feat "Unwilling Participant" feat be able to have it's DC modified by the key ability modifier of the player's choosing (which must be the key ability of one of his manifesting classes). The validation I will do as a to-do, but the DC modification is based on the pick list
From my searches I found: perform hero.child[fPUUnwillP].tagreplace[StandardDC.?,StandardDC.aINT] -- to change the DC of the feat based on a static ability Can anyone give the code on what I need to have that aINT be changed to the attribute chosen? Custom Expression: component.BaseAttr Similar to something like: Code:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) doneif (field[pChosen].ischosen = 0) ~ get the chosen class psionic power attribute and assign to tagexpr perform field[pChosen].chosen.pulltags[psiattr.?] tagexpr = tagvalue[psiattr.?] ~ replace standard dc tag with new tag perform hero.child[fPUUnwillP].tagreplace[StandardDC.?,StandardDC.tagexpr] Note: I am trying to use the class linkage "psiattr" which I believe is analogous to spellattr for spellcasting classes. -- But getting an error. |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Pull the StandardDC tag from the selected attribute, delete the existing StandardDC tag on the target, then push the previously pulled StandardDC tag from the feat to the target.
|
#2 |
Senior Member
Join Date: Aug 2011
Posts: 363
|
or is the problem that unwilling participant doesn't have a standard dc?
it doesn't use the class level but the manifester level, so the dc is calculated in a script and not using a 'standard' dc (i looked for the StandardDC tag on it and don't find it while i do find it on a feat that is using the standard dc) |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
I will have to change the logic so that it can be dynamic in which ability score it uses. But StandardDC.? can't be used as its not a "Standard DC". I will have to use one of the other Attribute Tags as the control. I know we have used some Tag before but can't remember which one. @Quintain. Keep an eye out for the change to the feat and adjust your script to use whatever Attribute Tag I put in. 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
Join Date: Feb 2012
Posts: 546
|
Ok, thanks.
The problem wasn't one that the DC didn't exist. My question was posted before I figured out that it didn't have a standard DC. I could have added that, but I wasn't sure how the standardDC was calculated. Once Tim decided to script it, the problem changed a bit. My feat essentially adds 1 to the DC of the Unwilling Participant feat, but also changes the attribute used to calculate the DC itself. I've been doing a lot of searching for the answer, but I can't seem to get working code that accesses the psiattr linkage in the class thing to be able to pull the attribute referenced. |
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
I don't know "where" or "what" your script is running on but the following logic script would work: Code:
~ Pull the Use Attribute tag from the Class Helper Pick perform xxxxx.linkage[psiattr].pulltags[UseAttr.?] ~ Delete what ever Use Attribute tag is on the "Unwilling Participant" feat. perform hero.childfound[fPUUnwillP].delete[UseAttr.?] ~ Set the new Use Attribute on to the Unwilling Participant feat. perform hero.childfound[fPUUnwillP].pushtags[UseAttr.?] 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. |
|
#6 |
|
|