View Single Post
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,502

Old March 3rd, 2018, 08:25 PM
Hm... I got it working with tagsearch, but only because I know there's only one tag present.

Code:
~ There should just be one
var skTag as string
skTag = tagids[Skill.?]
debug "Skill tag: " & skTag

var specText as string
foreach pick in hero where "component.Specialty"
  debug "Name: " & eachpick.field[name].text & " Tags: " & eachpick.tagids[Skill.?] & " tagsearch: " & eachpick.tagsearch[skTag]
  if (eachpick.tagsearch[skTag] <> 0) then
    i += 1
    if (i > 1) then
      specText &= ", "
      endif
    specText &= eachpick.field[name].text
    endif
Now, to try to find a way to make the button to add specialities to respect the values from those other sources... and the same for Advances.
Duggan is offline   #2 Reply With Quote