I need some explanations for programming ( I think ) some simple things with herolab:
I created a "class" component:
Quote:
<component
id="Class"
name="Class"
autocompset="no">
<!-- Each race needs its own identity tag to configure the hero appropriately -->
<identity group="Class"/>
<!-- Track the race on the actor by assigning the appropriate tag -->
<eval index="1" phase="Setup" priority="5000"><![CDATA[
perform forward[Class.?]
]]></eval>
</component>
|
and I created an Editor Panel for the Class.
Quote:
<editthing
compset="Class"
name="Klassen"
prefix="cl"
description="Races have no special fields - only a name. If a race confers an ability,{br}create it as a special ability and bootstrap it from the race."
summary="Defines a Race that can be selected by a character.">
<inputthing
name="Zusatzbilder"
helptext="Zusatzbilder">
<it_taglist group="MagicTab" tag="?"/>
</inputthing>
</editthing>
|
The "Zusatzbilder" inputthing adds tags "mtRunes" and "mtComRites" from Group "MagicTab" to my new class....
Quote:
<thing id="clTest" name="Test1" compset="Class" uniqueness="unique">
<usesource source="bAE_Player"/>
<tag group="MagicTab" tag="mtComRites" name="abc"/>
<tag group="MagicTab" tag="mtRunes" name="xyz"/>
</thing>
|
When I add my class to my hero I can see the tag Class.clTest but I can not see the mtRunes tag. How can I check, if a class has this tag or not? I want to set an "runes" tab visible, if my class has the mtRunes tag.