Senior Member
Join Date: Feb 2012
Posts: 546
|
I just wanted to differentiate the code block from the text of the post. It isn't in the code itself.
As for timing, I have tried multiple different timings, usually the same timings as the abilities themselves. Timing (for me) is kind of a fog of guessing. There have been no error messages of any kind when I compile. Last edited by Quintain; March 28th, 2017 at 06:41 PM. |
#1111 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Then I recommend one of our youtube seminars: https://www.youtube.com/channel/UCB2...lz0AIRw/videos
Find one of the intro seminars we've recorded at previous gen cons - timing is normally something we talk about relatively early in the seminars. |
#1112 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
I found it. Apparently the += 1 wasn't incrementing like it should have. When I changed to
Code:
hero.child[cWldSurBla].field[abValue].value = hero.child[cWldSurBla].field[abValue].value + 1 Last edited by Quintain; March 28th, 2017 at 06:47 PM. |
#1113 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
No, if you're at the same timing as the thing you're trying to modify, you've got a 50/50 chance as to which one runs first, which can mean that the change you've made can get overwritten if they run in the wrong order that time.
|
#1114 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
In addition please use #value[] macro for the above. If Wild surge runs at Post-Levels/10000 then you MUST run BEFORE at Post-Level/9000 in example. 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. |
|
#1115 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
Shadow:
So, conceptually, if you are modifying an ability, you want to apply modifiers prior to it existing? Also: I changed to the #value macro per request. |
#1116 |
Senior Member
Join Date: Feb 2012
Posts: 546
|
Shadow:
Can you create a "Collective" category like you did with Psion Disciplines? Edit: nm.. I did.. abCategory.PUPsiCllct will be pushed on the 3 collective class abilities once I commit the changes. Suggestion: As a design convention, I think we should make categories of all cross-class class abilities, or class abilities with multiple custom abilities going forward. This would make testing of a hero having a particular class ability simpler without having to check for multiple versions of what amounts to the same class ability. Last edited by Quintain; March 28th, 2017 at 07:09 PM. |
#1117 |
Senior Member
Join Date: Feb 2010
Posts: 125
|
Bootstrapped things are populated on the character before the phases where scripts generally run. A thing might have a script that runs at Post-Levels/10000, but the thing itself generally exists from some point in the First phase.
|
#1118 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Soulknife Blade Skills have an abCategory because I need it to do some of the soulknife Archetypes. In addition setting up Custom Expressions become much easier using abCategory tags. The only thing is that we want to define the new abCategory "one" time on the mechanic. We should not create the tag on a Custom Ability. It can cause issues when making changes or if that "single" ability is ever removed the tag goes with. For these reasons I define them on the Psionic Mechanic so the logic is in a single place. If you already did it on the Custom Ability I can change to to the mechanic pretty easily. Just if you do this in the future make sure to let me know. 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; March 29th, 2017 at 10:54 AM. |
|
#1119 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Thingid.Shadow1 Post-Level/10000 Code:
field[abValue].value += 1 field[livename].text = "abValue =" & field[abValue].value Now then we add the following script logic: Thingid.Shadow2 Post-Level/9000 (9000 is before 10000) Code:
#value[Shadow1] += 2 In this example we will run AFTER Shadow1 script fires. Thingid.Shadow2 Post-Level/11000 (11000 is AFTER 10000) Code:
#value[Shadow1] += 2 Hopefully that helps some. 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. |
|
#1120 |
|
|