• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Using templates as prereqs

How do I test for the presence of a specific template as a prerequisite for a feat?

So far as I can tell, all templates simply show up on the hero as generic instances of Classes.Template or Hero.Template and the actual template name isn't identified by a tag. I've tried a number of variations of testing for tags, but can't seem to figure this out.

For instance, if I want to use the Celestial template as a prerequisite for a new feat, let's call it Wings of Fury, how do I test for the presence of the Celestial template?

Thanks.

Brian
 
Ravencloak wrote:
>
>
> How do I test for the presence of a specific template as a prerequisite
> for a feat?
>
> So far as I can tell, all templates simply show up on the hero as
> generic instances of Classes.Template or Hero.Template and the actual
> template name isn't identified by a tag. I've tried a number of
> variations of testing for tags, but can't seem to figure this out.
>
> For instance, if I want to use the Celestial template as a prerequisite
> for a new feat, let's call it Wings of Fury, how do I test for the
> presence of the Celestial template?


In the pre-requisite script, you need to test for the existence of the
Celestial template pick. You would do this like so:

@valid = 0
if (pickexists[tmCelest] <> 0) then
@valid = 1
endif

"tmCelest" is the unique id of the Celestial Template pick. (You could
find this out by going to the View menu -> Floating Info Windows -> Show
Selection List, and then searching for the "Celestial Template" entry in
it.)

Hope this helps,

--
Colen McAlister, colen@wolflair.com
Chief Engineer, Lone Wolf Development
 
Back
Top