View Single Post
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old October 6th, 2022, 03:42 PM
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?

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is offline   #5 Reply With Quote