Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
The error is happening because you left off Helper.Mythic on a bunch of these Custom Abilities. Without that the background scripts are attempting to find a Class to calculate the class level.
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. |
#41 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
So using standard LW logic, feel free to look at the Monks Robe, how would you go about increasing "effective" level? The issue is going to be you have 1 to many "Path" abilities to increase. How can you find the path or paths that a gamer has selected? A hint is that we need to use abCategory.? again would be very helpful. This would be why I added the new abCategory.PUPsyPath tag and why started to move Path abilities over to a custom components. For know you can add the foreach loop logic into your mythic ability but until I finish moving all Path abilities over to a new component it won't work 100%. This is also why I keep saying we have not even gotten the "base" Psionics 100% working so adding "new" requires 10 steps to fix the old. Then make the new work. 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. |
|
#42 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Thinking about the Path abilities and increasing the effective level. I think we will need to do some proof of concept testing. The Path is a custom ability with class abilities bootstrapped to it. If we increase the effective level of the "Path" one of several things could happen:
1) The bootstrapped abilities also increase in effective level allowing the abilities to become active before they should. 2) The bootstrapped abilities DO NOT increase in effective level. 3) The bootstrapped abilities can become active before ClSpecWhen.? tag says they can. 4) The bootstrapped abilities do not increase in effective level until at least ClSpecWhen.? tag says they become active. I have to test but I think number 1 is what happens. Which is not good because the text of the ability says: Quote:
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. |
|
#43 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
Quote:
|
|
#44 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
Potent Pool code problem:
Description: Choose one of your manifesting classes. You gain four bonus power points. These power points stack with bonus power points from all other sources. You can take this ability once for each level of powers you can manifest of the chosen class. For example, if you are a 9th level psion, you can choose this ability five times. Each time beyond the first, you gain a number of power points equal to the previous time plus 8. These additional power points are cumulative. For example, the second time you take this ability, you gain 12 additional power points, for a total of 20; the third time an additional 20 power points, for a total of 40, and so on. Code:
~ If we've been Disabled, get out now doneif (tagis[Helper.SpcDisable] <> 0) ~ #resmax[resPowerPt] += 4 ~ Totals: 4, 16, 36, 64, 100, 144, 196, 256, 316 ~Current maximum power level is ~field[usrChosen1].chosen.field[cPsiLevMax].value ~Exit function once the number of picks is reached field[abValue].value += field[usrChosen1].chosen.field[cPsiLevMax].value ~ if nothing is chosen, get out now doneif (field[usrChosen1].ischosen <> 1) if (field[abValue].value >= 1) then #resmax[resPowerPt] += 4 endif doneif (hero.tagcount[HasAbility.cPUMPoPool] = 1) if (field[abValue].value >= 2) then #resmax[resPowerPt] += 12 endif doneif (hero.tagcount[HasAbility.cPUMPoPool] = 2) if (field[abValue].value >= 3) then #resmax[resPowerPt] += 20 endif doneif (hero.tagcount[HasAbility.cPUMPoPool] = 3) if (field[abValue].value >= 4) then #resmax[resPowerPt] += 28 endif doneif (hero.tagcount[HasAbility.cPUMPoPool] = 4) if (field[abValue].value >= 5) then #resmax[resPowerPt] += 36 endif doneif (hero.tagcount[HasAbility.cPUMPoPool] = 5) if (field[abValue].value >= 6) then #resmax[resPowerPt] += 44 endif doneif (hero.tagcount[HasAbility.cPUMPoPool] = 6) if (field[abValue].value >= 7) then #resmax[resPowerPt] += 52 endif doneif (hero.tagcount[HasAbility.cPUMPoPool] = 7) if (field[abValue].value >= 8) then #resmax[resPowerPt] += 60 endif doneif (hero.tagcount[HasAbility.cPUMPoPool] = 8) if (field[abValue].value >= 9) then #resmax[resPowerPt] += 68 endif |
#45 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
This should be broken down into two parts:
1) We need to calculate a increasing value depending on how many times we have taken this ability. 2) We need to control the number of times we can take this ability. For the first part we need a standard script running at like maybe Post-Level/10000 would be good. The issue here is that HasAbility.? tags are not yet present on the hero. You are on the right track using HasAbility to count but we need to use the Ability.? tag which is placed on the hero very early. Here is a script that calculates the bonus: Code:
~ Calculate the bonus with a base 4 point plus 8 more for each ~ additional time this ability was taken. #resmax[resPowerPt] += 4 + (8 * (hero.tagcount[Ability.cPUMPoPool] - 1)) We want the above "script" to ONLY fire one time no matter how many times Potent Pool is added to the character. The way to do this is create a generic Thing on the "Ability" editor tab (thingid.aPUMPoPool) and set it to a uniqueness of "Add Once". Then add the above script to this new Thing. Then bootstrap the ability (aPUMPoPool) to the cPUMPoPool Thing. Now even if we add cPUMPoPool many times to the hero we only add aPUMPoPool ONE TIME. Meaning the above script will only fire once and correctly calculate the value we need. For number two issue for now just set cPUMPoPool to have a uniqueness value of "no" instead of Add Once. Once you have the calculations of giving the bonus correct we can work on the Pre-Req script that will prevent the ability from being added too many times. 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. |
#46 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
I found the problem with the uniqueness early on and now it is set to "no".
I removed the code and put in your script and prior to it, I put in: Code:
~ If we've been Disabled, get out now doneif (tagis[Helper.SpcDisable] <> 0) ~ The following should only happen once on the first copy doneif (tagis[Helper.FirstCopy] = 0) ~ Calculate the bonus with a base 4 point plus 8 more for each ~ additional time this ability was taken. #resmax[resPowerPt] += 4 + (8 * (hero.tagcount[Ability.cPUMPoPool] - 1)) Last edited by Quintain; May 16th, 2017 at 04:04 PM. |
#47 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
You added the code to cPUMPoPool or aPUMPoPool?
Have you added "debug" scripts yet to see what is going on? Code:
debug "IN" ~ If we've been Disabled, get out now doneif (tagis[Helper.SpcDisable] <> 0) debug "past SpcDisable" ~ The following should only happen once on the first copy doneif (tagis[Helper.FirstCopy] = 0) debug "Past First Copy" ~ Calculate the bonus with a base 4 point plus 8 more for each ~ additional time this ability was taken. #resmax[resPowerPt] += 4 + (8 * (hero.tagcount[Ability.cPUMPoPool] - 1)) debug "Past resmax" 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. |
#48 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
The debug output is
IN past SpcDisable IN past SpcDisable Nothing else. ( I have to items in my path abilities ). Note: the ability requires picking the class to which the power point allocation applies. But given that the PP pool is cumulative amongst all psionic classes, I'm not sure that matters. Edit: It matters for determining which class we get the highest power level value from. Last edited by Quintain; May 16th, 2017 at 05:03 PM. |
#49 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
So what does this tell you? Where is the script being stopped? Did anything in my post talk about Helper.FirstCopy?
Is this where I mention to put the script? Quote:
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. |
|
#50 |
|
|