Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
Hi all! I have a eval script using a couple of macros:
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> Code:
<scriptmacro name="bkgdsetup" param1="skill" result="{macro bkgdskill}{br}{macro bkgdbonus}"/> <eval phase="PreTraits" priority="500"> ~Add Background Skills #bkgdsetup[skConvince] </eval> 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 Thanks! TC |
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Pretty sure macros won't work that way. Also you're not actually using any parameter in your new macro, you have "skill" set but never use #skill anywhere.
Macros generally only do one command. If you want to do it with multiple you could make a procedure that takes some kind of input and then applies it to both statements. |
#2 |
|
|