View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,700

Old February 16th, 2015, 10:31 AM
Quote:
Originally Posted by TCArknight View Post
One standard I would like to ask about, and this may be a general coding one.

When for example, the 7th level Enhanced Mind Blade (+3) class ability is replaced, does the next instance remain the +4, or should it become the +3 and increment from there?
So current script logic is:
Code:
<eval phase="Final" priority="10000"><![CDATA[
field[abValue].value += field[xCount].value
field[livename].text = "Enhanced Mind Blade +" & field[abValue].value
field[abSumm].text = "You can enhance your Mind Blade with a total enhancement bonus of +" & field[abValue].value & "."
field[listname].text = "Enhanced Mind Blade +" & field[xIndex].value]]></eval>
The above I never noticed is a little off as it has no stop logic. Here is the "basic" class script I always start from and it should run at Post-Levels/10000 not final. Final is WAY too late to do any testing actually. What if we need to know what "Plus" we are at from other scripts. Currently we would be running so late we couldn't do much with that Plus value.
Code:
~Set the list name
field[listname].text = field[thingname].text & " " & signed(field[xIndex].value)

~ 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 += field[xCount].value
field[livename].text = field[thingname].text & " " & signed(field[abValue].value)
With the above logic in place the the "live" version of cSknEnhMB will always be the most "current" and accurate version.

Does that answer the question?

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.
ShadowChemosh is online now   #12 Reply With Quote