View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 2,803

Old February 18th, 2020, 04:24 AM
Replace your foreach loop with this:

Code:
var expr as string
var lngth as number

foreach pick in hero from BaseSkill
  if (eachpick.islinkage[skillattr] <> 0) then
    if (eachpick.linkage[skillattr].tagis[thingid.aCHA] + eachpick.linkage[skillattr].tagis[thingid.aINT] + eachpick.linkage[skillattr].tagis[thingid.aWIS] <> 0) then
      expr &= eachpick.tagids[thingid.?, " | "] & " | "
    endif
  endif
nexteach

lngth = length(expr)
lngth -= 2
expr = left(expr,lngth)

field[usrCandid1].text = expr
Let me know if that works for you.
Sendric is online now   #4 Reply With Quote