Member
Join Date: Jan 2010
Posts: 42
|
Update - ignoring the Debug error, it seems to work once I fill in the details of Race and Ability scores...
timing must be off only thing now is getting the half level to round up |
#11 |
Member
Join Date: Jan 2010
Posts: 42
|
Update and seems to be working too
~Power Point calculation is equal to Level 1 Spells Per Day ~+ Half level * Wis Mod ~+ Feat bonuses etc ~our maximum uses is 1/2 our psychic warrior level + WIS bonus var bonus as number var pow as number bonus = field[xAllLev].value/2 bonus = bonus * hero.child[aWIS].field[aModBonus].value bonus = round(bonus,0,-1) pow = hero.childfound[cHelpPwr].field[cCastMax].arrayvalue[1] bonus = bonus + pow field[trkMax].value += bonus The trick to do this is to also add Wisdom as the Bonus Spell Attribute. Seems to work ok now now to get the feat to mod this Last edited by westcpw; March 14th, 2010 at 04:15 AM. Reason: nope not WORKING - dont add bonus spll attribute |
#12 |
Member
Join Date: Jan 2010
Posts: 42
|
Next Problem
Psionic Talent Feat.... a> need to count how many times used b> need to add up all the pwoer points (2+3+4 etc) c> need to add total to PwPow class special which displays under the In Play section as a counter... |
#13 |
Member
Join Date: Jan 2010
Posts: 42
|
feat scripts - adds flat 2 points per Psionic Talent
var psic as number psic = 2 hero.child[cPwPow].field[trkMax].value += psic |
#14 |
Member
Join Date: Jan 2010
Posts: 42
|
I copied this from 3.5 and updated it to match my cPwPow which works (see above)
~ If we're disabled, do nothing if (tagis[Helper.FtDisable] <> 0) then done endif ~ Add 2 + (number of psionic talent tags on the hero) to our power points. hero.child[cPwPow].field[trkMax].value += 2 + hero.tagcount[User.PsiTal] ~ Add the "Psionic Taltn" tag to the hero so we know how many times we've ~ run this feat script so far, which we use to control how much we add ~ to our power points every time. var result as number result = hero.assign[psic] ----------------------------------- I get an error now saying User.PsiTal not defined. I have it on Post Attributes (Users) 25000 (as the original is set to 19000 Post Attributes for cPwPow SEO Blog By Christopher West PPC Advertising by PPC Matters |
#15 |
Member
Join Date: Jan 2010
Posts: 42
|
Now this is weird...
~ If we're disabled, do nothing if (tagis[Helper.FtDisable] <> 0) then done endif ~ Add 2 + (number of psionic talent tags on the hero) to our power points. hero.childfound[cPwPow].field[trkMax].value += 2 + hero.tagcount[HasFeat.fPsiTal] ~ Add the "Psionic Taltn" tag to the hero so we know how many times we've ~ run this feat script so far, which we use to control how much we add ~ to our power points every time. var result as number result = hero.assign[HasFeat.fPsiTal] each time I add the feat it adds the count x 3 SEO Blog By Christopher West PPC Advertising by PPC Matters |
#16 |
Member
Join Date: Jan 2010
Posts: 42
|
me stumped - going to sleep on this one...
SEO Blog By Christopher West PPC Advertising by PPC Matters |
#17 |
Member
Join Date: Jan 2010
Posts: 42
|
Update causing issues
I did the latest hero lab update and most of my custom things had to be reloaded / tested and compiled now my Psychic Warrior class loads fine, but is missing the tab in hero lab? SEO Blog By Christopher West PPC Advertising by PPC Matters |
#18 |
Member
Join Date: Jan 2010
Posts: 42
|
BUMP
Mathias or Someone ? SEO Blog By Christopher West PPC Advertising by PPC Matters |
#19 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
You had posted this question both here and the "Hero Lab 3.6 Released" thread in the general discussion thread. Since I saw that post first, I responded there. Since I don't know what could be going on here, I'll have to take a look at your files. My email address is my user name here, @wolflair.com.
|
#20 |
|
|