|
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Moving this discussion out of the Community Pack thread.
Quote:
If we look at the scripts on Thingid.cPUAltDef2 we see: Code:
<eval phase="PostAttr" priority="11000"><![CDATA[ ~NOTE: ~ abValue is bonus ~ If we're not shown, just get out now doneif (tagis[Helper.ShowSpec] <> 1) ~ if we've been disabled, get out now doneif (tagis[Helper.SpcDisable] <> 0) field[abValue].value += #value[cPUAltDef] field[livename].text = field[thingname].text & " " & signed(field[abValue].value) field[abSumm].text = "The cryptic gains a " & signed(field[abValue].value) & " dodge bonus to her AC." ~ If we're not active, just get out now! doneif (field[abilActive].value = 0) perform hero.assign[Cryptic.AltDefAct] hero.child[ArmorClass].field[tACDodge].value += field[abValue].value]]></eval> Change your script to run at Post-Level/10000: Code:
~ add competence bonus to Altered Defense ability equaul to tier field[abValue].value += #tiereffect[] hero.child[cPUAltDef2].field[abValue].value += field[abValue].value] 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. |
|
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Code:
<eval phase="Final" priority="10000"><![CDATA[ ~ Set the list name field[listname].text = field[name].text & " (" & field[xIndex].value & "d6+" & field[xTotalLev].value & ")" ~ If we've been Disabled, get out now doneif (tagis[Helper.SpcDisable] <> 0) ~ If we're not shown, just get out now doneif (tagis[Helper.ShowSpec] = 0) field[abValue].value += field[xCount].value field[livename].text = field[name].text & " (" & field[abValue].value & "d6+" & field[xTotalLev].value & ")"]]></eval> So you just need to adjust the value of abValue before Final/10000 to increase the number of "dice". 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. |
|
#2 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
Quote:
From the code it seems that field[livename].text field is the thing that needs to be overwritten as the abValue.value has some text appended to it. Or am I reading things wrong. |
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
In this case I would create a new Tag Group for Dread and then have a new tag that says calc by "Dice Bonus". Maybe like "Dread.DevByDice" or something like that. Then the current script just have an "IF" statement that looks for the new tag: Code:
~ Set the list name field[listname].text = field[name].text & " (" & field[xIndex].value & "d6+" & field[xTotalLev].value & ")" ~ If we've been Disabled, get out now doneif (tagis[Helper.SpcDisable] <> 0) ~ If we're not shown, just get out now doneif (tagis[Helper.ShowSpec] = 0) ~ Check to see if we should calculate dice per level If (tagis[Dread.DevByDice] = 1) Then field[abValue].value += field[xTotalLev].value field[livename].text = field[name].text & " (" & field[abValue].value & "d6" & ")" ~..Or calculate bonus per level Else field[abValue].value += field[xCount].value field[livename].text = field[name].text & " (" & field[abValue].value & "d6+" & field[xTotalLev].value & ")" Endif 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
|
Quote:
It's working on 2 of 3 items. The name of the Altered Defense, Deflect doesn't seem to be picking up the value from the base Altered Defense base ability that is being picked up by the other two. see attachment. |
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Quote:
I changed the way this is displayed for all three abilities and that should correct this issue. 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. Last edited by ShadowChemosh; April 24th, 2017 at 09:27 PM. |
||
#6 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
Ok, I found where the weird text values was coming from on the altered defense, deflection livename. I commented out the livename assignment on the base altered defense ability. That corrected things.
I'll push that change to GitHub. I decided to not modify the Dread's original ability's text and just put the proper damage in the mythic ability instead. Last edited by Quintain; April 24th, 2017 at 08:14 PM. |
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
1) Does this mean you are just having the 'Mythic Ability' show the the number of dice? 2) Do you mean your mythic ability is over writing the Livename on the Dreads Class Ability? I pretty much provided the whole enhanced code to the issue in post #5. I am I missing something on how it does not correctly solve the issue and nicely document the change also. 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. |
|
#8 |
Senior Member
Join Date: Sep 2013
Location: Vancouver, Canada.
Posts: 818
|
Thank you for attempting to add the Mythic Psionics.
One of my players loves psionics, but didn't like that there wasn't a mythic version when there was for Arcane and Divine casting. Our group has added the Mythic Hero's Handbook (Legendary Games), which we'll use in our next stint at Mythic. They use the Mythic Psionics, and we were disappointed that the HL package for Mythic Hero's Handbook chose to omit the psionic portion. This is awesome that it is being worked on. Thank you. |
#9 |
Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
Quote:
|
|
#10 |
Thread Tools | |
Display Modes | |
|
|