Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
Ravencloak
Junior Member
 
Join Date: Feb 2007
Posts: 18

Old September 17th, 2007, 06:42 AM
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 is offline   #1 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old September 19th, 2007, 02:16 PM
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
Colen is offline   #2 Reply With Quote
Ravencloak
Junior Member
 
Join Date: Feb 2007
Posts: 18

Old September 19th, 2007, 02:54 PM
Perfect! Thanks Colen.
Ravencloak is offline   #3 Reply With Quote
Reply


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 09:57 PM.


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