• 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

Transitioning to a chosen item from a different ability

AndrewD2

Well-known member
I've got a special that allows the character to add abilities to their special blade, since it can be any blade they have I have a class special that creates a list of all the members of the BladeLight and BladeHeavy groups on the character.

So then I have a configurable for selecting the Boons that they can activate. On each boon it would then transition to that selected weapon and apply the applicable effect.

I was trying this for a boon that added fire damage, but Hero Lab didn't like it:

#extradamage[hero.child[cRPIERitSw].field[usrChosen1].chosen, signed(#attrbonus1[aCHA]) & " fire", field[name].text]

If I have to I can make a big script on the main ability that checks for the abilActive field on the boon, but that seems very cumbersome.

Any ideas?
 
The 2 error messages I am getting thus far are:

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

Syntax error in 'eval' script for Thing 'rcRPRitFiS' (Eval Script '#1') on line 3
  -> Error parsing parameter 1 of function
Syntax error in 'eval' script for Thing 'rcRPRitGuS' (Eval Script '#1') on line 3
  -> Error parsing left-side expression in relational comparison

First one is from the #extradamage macro. Second one is from trying to check if the weapon is equipped.
 
For reference the code from the second error is:

if ([hero.child[cRPIERitSw].field[usrChosen1].chosen.field[gIsEqup].value <> 0) then
endif
 
Try setting a focus to the chosen thing, then use just the focus transition within extradamage.

For #2, that's a typo - you've got an extra [ near the beginning of the line.
 
Actually I posted that at the same time as your were posting, fixed the nested macro and that fixed the problem. Good to know about the nested macro thing
 
Yep, I set abValue = #attrbonus1[aCHA] and used it in the macro and worked just fine!

Thanks again for your help.
 
Back
Top