Ah, thanks Mathias.
What I have is a Talent/Edge which, when gained from another ability requires a specific Attribute to be the selection.
To that end, I try:
Code:
~ if we do have a Target1 tag, we need to set the usrChosen1 to the target
var myRef as string
var tagexpr as string
myRef = tagids[Target1.?,","]
myRef = replace(myRef,"Target1","Reference1",0)
foreach pick in hero from BaseScore where myRef
tagexpr = "component.BaseScore & " & eachpick.idstring
nexteach
notify tagexpr
perform this.field[usrChosen1].setchosen[Ability,tagexpr,hero]
but I get this referencing field[usrChosen1] -
Quote:
Hero Lab was forced to stop compilation after the following errors were detected:
Syntax error in 'eval' script for Component 'UserSelect' (Eval Script '#4') on line 17
-> Field not found
|
Am I missing something?