<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data">
  <thing id="fArcanII" name="Arcanist" description="An arcanist is a powerful wizard who forgoes specialization to explore and use all that arcane magic has to offer. Rather than bind themselves to a particular school, as mages do, arcanists experiment with a wide range of magical effects from evocation to necromancy and everything in between. Considered dilettantes by their mage counterparts, arcanists see diverse study as a boon because it broadens their ability to deal with a variety of situations, by always having the proper spell on hand." compset="Class" replaces="clsWizard" uniqueness="unique">
    <fieldval field="clsRoleTxt" value="You command eldritch forces, shaping them into spells designed to blast your enemies, bring them under your thumb, twist their senses, and impede their movement."/>
    <fieldval field="clsSkills" value="3"/>
    <fieldval field="clsWill" value="2"/>
    <fieldval field="clsStartHP" value="10"/>
    <fieldval field="clsHPLev" value="4"/>
    <fieldval field="clsSurges" value="6"/>
    <fieldval field="clsRituals" value="3"/>
    <fieldval field="clsUtilMl" value="2"/>
    <fieldval field="clsDailyMl" value="2"/>
    <tag group="KeyAbility" tag="attrInt" name="Intelligence" abbrev="Intelligence"/>
    <tag group="PowerSrc" tag="Arcane" name="Arcane" abbrev="Arcane"/>
    <tag group="Skill" tag="skArcana" name="Arcana" abbrev="Arcana"/>
    <tag group="Skill" tag="skDiplomac" name="Diplomacy" abbrev="Diplomacy"/>
    <tag group="Skill" tag="skDungeone" name="Dungeoneering" abbrev="Dungeoneering"/>
    <tag group="Skill" tag="skHistory" name="History" abbrev="History"/>
    <tag group="Skill" tag="skInsight" name="Insight" abbrev="Insight"/>
    <tag group="Skill" tag="skNature" name="Nature" abbrev="Nature"/>
    <tag group="Skill" tag="skReligion" name="Religion" abbrev="Religion"/>
    <tag group="TrainSkill" tag="skArcana" name="Arcana" abbrev="Arcana"/>
    <tag group="WeaponProf" tag="wpDagger" name="Dagger" abbrev="Dagger"/>
    <tag group="WeaponProf" tag="wpQuarters" name="Quarterstaff" abbrev="Quarterstaff"/>
    <tag group="ArmorProf" tag="apCloth" name="Cloth Armor" abbrev="Cloth Armor"/>
    <tag group="ClassName" tag="Wizard" name="Wizard" abbrev="Wizard"/>
    <tag group="ClassRole" tag="Controller" name="Controller" abbrev="Controller"/>
    <tag group="ImplemType" tag="itOrb" name="Orb" abbrev="Orb"/>
    <tag group="ImplemType" tag="itStaff" name="Staff" abbrev="Staff"/>
    <tag group="ImplemType" tag="itTome" name="Tome" abbrev="Tome"/>
    <tag group="ImplemType" tag="itWand" name="Wand" abbrev="Wand"/>
    <tag group="KeyAbility" tag="attrCon" name="Constitution" abbrev="Constitution"/>
    <tag group="KeyAbility" tag="attrDex" name="Dexterity" abbrev="Dexterity"/>
    <bootstrap thing="fWizTomBin"></bootstrap>
    <bootstrap thing="fWizTomRea"></bootstrap>
    <bootstrap thing="fWizWanAcc"></bootstrap>
    <bootstrap thing="fWizRitCas"></bootstrap>
    <bootstrap thing="fWizArcSpe"></bootstrap>
    <bootstrap thing="fWizCantri"></bootstrap>
    <bootstrap thing="pWizGhoSou">
      <autotag group="User" tag="FeatureChk"/>
      </bootstrap>
    <bootstrap thing="pWizLight">
      <autotag group="User" tag="FeatureChk"/>
      </bootstrap>
    <bootstrap thing="pWizMagHan">
      <autotag group="User" tag="FeatureChk"/>
      </bootstrap>
    <bootstrap thing="pWizPresti">
      <autotag group="User" tag="FeatureChk"/>
      </bootstrap>
    <bootstrap thing="fWizArcImp"></bootstrap>
    <bootstrap thing="fWizOrbDec"></bootstrap>
    <bootstrap thing="fWizOrbImp"></bootstrap>
    <bootstrap thing="pWizWatStr">
      <autotag group="User" tag="FeatureChk"/>
      </bootstrap>
    <bootstrap thing="pWizChaMas">
      <autotag group="User" tag="FeatureChk"/>
      </bootstrap>
    <bootstrap thing="pWizSugges">
      <autotag group="User" tag="FeatureChk"/>
      </bootstrap>
    <bootstrap thing="fWizStaDef"></bootstrap>
    <bootstrap thing="pWizDisUnd">
      <autotag group="User" tag="FeatureChk"/>
      </bootstrap>
    <bootstrap thing="pWizSpook">
      <autotag group="User" tag="FeatureChk"/>
      </bootstrap>
    <bootstrap thing="pWizWhiWin">
      <autotag group="User" tag="FeatureChk"/>
      </bootstrap>
    <eval phase="Setup" priority="1000"><![CDATA[
      ~we get 2 bonus rituals at levels 5, 11, 15, 21 and 25
      var level as number
      level = hero.tagvalue[Level.?]
      if (level >= 5) then
        #resmax[resRituals] += 2
        endif
      if (level >= 11) then
        #resmax[resRituals] += 2
        endif
      if (level >= 15) then
        #resmax[resRituals] += 2
        endif
      if (level >= 21) then
        #resmax[resRituals] += 2
        endif
      if (level >= 25) then
        #resmax[resRituals] += 2
        endif]]>
      <after name="Level final"/>
      </eval>
    <evalrule phase="Initialize" message="Too Many Cantrips" summary="Too Many Cantrips"><![CDATA[
      ~disable any of our cantrips that aren't selected
      var total as number
      foreach pick in hero from Power where "User.FeatureChk & PowerClass.clsWizard & PowerType.Utility"
        if (eachpick.field[usrIsCheck].value <> 0) then
          total += 1
        else
          perform eachpick.assign[Hide.Special]
          perform eachpick.assign[Helper.Disable]
          endif
        nexteach

      validif (total = 4)

      ~if less than 4 are chosen, that's a warning
      if (total < 4) then
        @message = "Choose up to 3 Cantrips from the Class Features table."

      ~if more than 4, that's an error
      else
        @message = "Too many Cantrips from the Class Features table chosen."
        endif]]></evalrule>
    </thing>
  </document>
