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

Old September 17th, 2017, 03:12 PM
So, if I do this as tags, what's the easiest way to set up values? My prior code depending on Identity tags on the skills, and assuming +2, like the following:

Code:
if (tagis[SkillBon?.?] <> 0) then
  expr = tagids[SkillBon?.?, " | "]
  foreach pick in hero from Skill where expr
    val = tagmax[SkillBon?.?]
    perform eachpick.field[trtBG].modify[+,2,""]
  nexteach
endif
Should I just replace that with a series of "foreach" groups with the individual skill choices (SkillBon1, SkillBon2, SkillBon3)? Or is there a way to use tagvalue to extract the value involved?
Duggan is offline   #5 Reply With Quote