Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:24 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.