TCArknight
Well-known member
Hi all! I have a eval script using a couple of macros:
I came across the {macro name} encoded text entry on the wiki and thought it might be useful to combine both macros into one:
However, when I do it that way, I get:
Are there any suggestions or is this even possible?
Thanks!
TC
Code:
<scriptmacro
name="bkgdbonus"
param1="skill"
result="hero.child[#skill].field[trtBonus].value += 1"/>
<scriptmacro
name="bkgdskill"
param1="skill"
result="perform hero.childfound[#skill].assign[User.BgdRank]"/>
<eval phase="PreTraits" priority="500">
~Add Background Skills
#bkgdbonus[skConvince]
#bkgdskill[skConvince]
</eval>
I came across the {macro name} encoded text entry on the wiki and thought it might be useful to combine both macros into one:
Code:
<scriptmacro
name="bkgdsetup"
param1="skill"
result="{macro bkgdskill}{br}{macro bkgdbonus}"/>
<eval phase="PreTraits" priority="500">
~Add Background Skills
#bkgdsetup[skConvince]
</eval>
However, when I do it that way, I get:
Code:
Hero Lab was forced to stop compilation after the following errors were detected:
Syntax error in 'eval' script for Thing 'bkDuelist' (Eval Script '#1') on line 2
-> Unspecified error parsing script
Are there any suggestions or is this even possible?

Thanks!
TC