• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Feat help

Hmmm perform? Really?

Here is how I think the finished script should look:
Code:
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
~ Count the number of Ranger levels
field[abValue].value += hero.tagcount[Classes.Ranger]
~ Give this as a bonus to the Animal Companion
hero.childfound[cAnimComp].minion.child[cAnimDevo].field.value += field[abValue].value
Your first part "tagcount[Classes.Ranger]=field[abValue].value" was backwards and was missing the 'Hero.' part. You want to count the classes.ranger tags on the "HERO" and put that total into "abValue". What you had was just the opposite which won't work.

Then to allow outside Things to change the abValue you always want to do a "+=" to not a "=" which will override the value.
 
Shadow, it's not looking like that script you worked up works. I'm getting an error:

Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'fKQIncrDev' (Eval Script '#1') on line 6
-> Invalid use of a reserved word in script

I'll try troubleshooting.
 
hero.childfound[cAnimComp].minion.child[cAnimDevo].field.value += field[abValue].value

Do you notice where there are brackets missing?
 
I'm not seeing the missing bracket. cAnimdevo has brackets, which is what we're adding the value to. Maybe it's cause I just woke up...
 
You need to specify the field in brackets after your field transition. cAnimdevo isn't what you're adding abValue to, you have to transition to one of the many fields on that pick.

.field.value

Can't be interpreted by the system, you need to specify the field id in brackets before the value transition. For example:

.field[abWHATEVER].value
 
Back
Top