View Single Post
Adam.Ormond
Senior Member
 
Join Date: May 2010
Location: Maryland
Posts: 167

Old May 7th, 2011, 04:47 PM
Quote:
Originally Posted by Mathias View Post
It looks like you can use the gearholder transition to go from the wand to the sheath, but there's no option to travel the other direction. Sorry.
Oooh, so I could iterate all of the wands on the hero and find any in a Sheath and then modify the livename of that pick, yes?

This seems to work and accomplish what I wanted:
Code:
if (this.field[gHeldCount].value = 1) then
  var wandName as string
  wandName = this.gearlist[";",Helper.WandLevReq]
  if (empty(wandName) = 0) then
    this.field[livename].text = "Wand Sheath (" & wandName & ")"
    foreach pick in hero where "Helper.WandLevReq"
      if (eachpick.isgearheld <> 0) then
        if (eachpick.field[livename].text = wandName) then
          eachpick.field[livename].text &= " (Wand Sheath)"
        endif
      endif
    nexteach
  endif
endif

Last edited by Adam.Ormond; May 7th, 2011 at 06:26 PM.
Adam.Ormond is offline   #31 Reply With Quote