Junior Member
Join Date: Feb 2007
Posts: 18
|
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 |
#1 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
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 |
#2 |
Junior Member
Join Date: Feb 2007
Posts: 18
|
Perfect! Thanks Colen.
|
#3 |
|
|