Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<prereq message="Tactics: You must choose one skill from the tactics group.">
<valid><![CDATA[
if (hero.tagis[CharType.typHero] <> 0) then
var taccount as number
foreach pick in hero from Skill where "thing.activated"
if (eachpick.tagcount[SkillCat.Tactics] = 1) then
taccount += 1
else
taccount += 0
endif
nexteach
if (taccount = 1) then
@valid = 1
else
@valid = 0
endif
endif
]]></valid>
</prereq>
<!-- Validate our skill picks -->
<thing
id="valSkill"
name="Skill"
compset="Simple">
<tag group="Helper" tag="Bootstrap"/>
<!-- Make sure that we have a Tactics skill choice selected -->
<evalrule index="1" phase="Validate" priority="8000" message="Tactics skill must be selected"><![CDATA[
~if we're not a player character (hero type), we're valid
validif (hero.tagis[CharType.typHero] = 0)
~if we have a skill selected, verify that it is a tactics choice
var tactcount as number
foreach pick in hero from Skill where "thing.user_added"
if (eachpick.tagcount[SkillCat.Tactics] <> 0) then
tactcount += 1
endif
nexteach
~if only one tactics skill pick is chosen, we're valid
validif (tactcount = 1)
~otherwise mark our tab as invalid
~mark associated tabs as invalid
container.panelvalid[skills] = 0
]]></evalrule>
</thing>