Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
eachpick.field[abValue].value += bonus + 1 - eachpick.field[xIndex].value
debug eachpick.field[name].value & " is ability #" & eachpick.field[xIndex].value & ", and is at " & eachpick.field[abValue].value
it says invalid tag expression specified for 'haschild' after it compiles. If I turn off debug nothing happens and it compiles without the message.
Code:eachpick.field[abValue].value += bonus + 1 - eachpick.field[xIndex].value
Let's take a 10th level character - they'll have 2 weapon training abilities.
bonus = 2 in this case.
So, it comes to ability #1:
+= 2 + 1 - 1 = +2
and then ability #2:
+= 2 + 1 - 2 = +1
I'd put in more debug expressions - see if you can track the changing values.
For example:
Code:debug eachpick.field[name].value & " is ability #" & eachpick.field[xIndex].value & ", and is at " & eachpick.field[abValue].value
(put that immediately after the eachpick.field[abValue].value line)
~set the bonus for this ability
eachpick.field[abValue].value += bonus + 1 - eachpick.field[xIndex].value
debug eachpick.field[name].text & " is ability #" & eachpick.field[xIndex].value & ", and is at " & eachpick.field[abValue].value
tagbonus = eachpick.field[abValue].value
Sorry, I don't see how post #26 fits into things. Could you tell me what context that's in? What its purpose is?
Look around everything you've created that's on your test character. I think you have another script somewhere that's also adding to
the abValue fields, and the combination of the two is making it hard to track down the problem here.
Final Phase 999999
~our tertiary abilities table uses the fighter's primary abilities
linkage[varies].field[cCstS3Expr].text = "(SpecSource.cHelpFtr & !Helper.Secondary & !Helper.Tertiary & !Helper.Quaternary) & (thingid.cFtrWAxes | thingid.cFtrWLgtBl | thingid.cFtrWHvyBl | thingid.cFtrWBows | thingid.cFtrWClose | thingid.cFtrWCrsb | thingid.cFtrWDbl | thingid.cFtrWFirea | thingid.cFtrWFlail | thingid.cFtrWHamm |thingid.cFtrWMonk | thingid.cFtrWNatur | thingid.cFtrWPoleA | thingid.cFtrWSiege | thingid.cFtrWSpear | thingid.cFtrWThrow)"
This script you're working on is on the archetype itself, not on a class special, right?
Try right-clicking on the weapon training abilities you've added. Choose "Show Debug fields for XXXXX", and find the abValue field on that list. Do they agree with what the debug statements were reporting?
Also try "Show Debug Tags for XXXXX" on one of your weapons - are the number of TrainBonus tags there what they should be?
The weapon training ability shows an abvalue of 3
For the weapon it is adding 3 trainbonus tags.
So the final abValue is 3, but according to the debug statements you added earlier, it's only 0 or 1 during the execution of that script
See - there's something else going on here that's interfering with the function of this script - keep looking for other scripts or other things that could be causing this.
foreach pick in hero from BaseWep where wepexpr
for i = 1 to tagbonus
perform eachpick.assignstr[bonustag]
next
nexteach
debug eachpick.field[name].text & ": added a training tag"
foreach pick in hero from BaseWep where wepexpr
for i = 1 to tagbonus
perform eachpick.assignstr[bonustag]
debug eachpick.field[name].text & ": added a training tag"
next
nexteach
field[cGiveSp3rd].value isn't calculated until Post-Levels/10000 - that's why this is at Post-Levels/10500.
You may wish to check out THIS older thread its about Fighter and Gestalt and a script I had to write to get it to work. Sounds like it may help you.I'm trying to make a Gestalt Inquisitor/Fighter. I've got it almost completely finished, but one hang up is giving me fits. I can't seem to get the Fighter's Weapon Training to work correctly.