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

Old August 5th, 2009, 03:06 PM
Quote:
Originally Posted by rob View Post
You are always assigning the Hide.Attribute tag to the thing, which is why it is never showing up. I think what you should be doing is two-fold. First, assign the Hide.Attribute tag via a "tag" element instead of the Eval script. This will have it never appear under normal circumstances. You can do that by adding:

Code:
        <tag group="Hide" tag="Attribute"/>
Second, use the Eval script to determine whether to make the attribute appear. If it is supposed to appear, then you can delete the tag from the pick. You'd probably base this on the presence of a tag somewhere on the hero. The script would look like:

Code:
    <eval index="1" phase="Setup" priority="1000"><![CDATA[
      if (hero.tagis[Hero.Psionics] <> 0) then
        perform delete[Hide.Attribute]
        endif
        ]]></eval>
Note that I just used a tag I concocted here, so you should use whatever you decide instead. Also, you'll probably need the timing to be much different from Setup/1000, since this is very early and you'll likely want to schedule it after the Psionics tag has been added somewhere.
Rob,

Thanks for the help!

The problem I was having is that even though it had the !Hide.Attribute <live> tag on the pick template, that wasn't having any effect. It wasn't never showing up, it was always visible no matter what.... I'll try changing some timings around and see what happens.

HL rocks and even though it's a tough learning curve, the flexibility it offers is bar-none.
TCArknight is offline   #11 Reply With Quote