<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data">
  <thing id="pwColOrb" name="Color Orb" description="Level 11: 2d8 Base Damage\nLevel 21: 3d8 Base Damage\n\nHit: The target is dazed until the end of your next turn." compset="Power">
    <fieldval field="pwRange1" value="5"/>
    <fieldval field="pwDamBase" value="1d8"/>
    <usesource source="Dragon"/>
    <tag group="PowerType" tag="Encounter"/>
    <tag group="PowerTheme" tag="thWizzApp"/>
    <tag group="ActionType" tag="Standard"/>
    <tag group="AttackVs" tag="defWill"/>
    <tag group="PowerAcc" tag="Implement"/>
    <tag group="PowerSrc" tag="Arcane"/>
    <tag group="DamageType" tag="Radiant"/>
    <tag group="AttackType" tag="Range"/>
    <eval phase="Traits" priority="5000"><![CDATA[var bonus as number
var attidstr as string

~ Use Int as default - this might not be necessary
bonus = #attrbonus[attrDex]
attidstr = "attrDex"

~ Find highest bonus
foreach pick in hero from Attribute
  if (eachpick.field[attrBonus].value > bonus) then
    bonus = eachpick.field[attrBonus].value
    attidstr = eachpick.idstring
  endif
nexteach

~ Use that as the damage and attack attributes
perform assignstr["DamageAttr." & attidstr]
perform assignstr["Attack." & attidstr]]]>
      <after name="Calc attrBonus"/>
      </eval>
    </thing>
  <thing id="thWizzApp" name="Wizard&apos;s Apprentice" description="Apprentices exist in any trade, of course, but none are more famous&#151;or infamous&#151;than wizards&#146; apprentices. Stories tell of foolish apprentices stealing peeks at books that should not be opened, fumbling love charms, or botching transmutations by treating dangerous magic as a clever toy. Other tales recall clever apprentices who come up with just the right spell to save a village while their masters are away, or boldly putting their lessons to good use as they set out in search of adventure. Whether they turn out to be rash or resourceful, wizards&#146; apprentices begin their careers with a priceless advantage: the personal instruction and tutelage of an experienced master.\n    In exchange for the privilege of learning magic, wizards&#146; apprentices normally spend years engaged in whatever drudgery and chores their masters deem fitting. A typical human wizard&#146;s apprentice begins his or her studies around the age of eleven or twelve and remains in the master&#146;s household for five or six years. Experienced spellcasters can take on apprentices for a variety of reasons: to share their appreciation of the art, to repay the work of their own masters by instructing a worthy student, or to tutor a young noble. Surprisingly, many of the most reclusive or suspicious&#151;even evil&#151;spellcasters take on apprentices; some regard it as their duty to pass along their learning, some hope to shape talented young mages into future allies (or minions), and others desire an audience to witness the brilliance of their schemes. Evil masters are often callous or exacting, but only the stupidest are actively sadistic toward their apprentices; after all, it&#146;s not wise to share secrets of power with someone you&#146;ve caused to hate you.\n    Adventuring wizards&#146; apprentices are usually young adults whose training is more or less complete. They no longer live in their masters&#146; households, and they aren&#146;t obligated to wash floors or scrub pots between lessons. Assuming such an individual parted from his or her master on good terms, the apprentice has at least one knowledgeable patron willing to offer advice and assistance in important matters. Many wizards&#146; apprentices retain their loyalty to their masters throughout their lifetimes, even if they surpass their masters&#146; achievements. Apprentices who were taught by particularly powerful or famous masters can serve as agents and allies of those mentors, and they see themselves as the appointed guardians of a long and honored tradition. Just as noble families have ancestral lines going back centuries, many famous spellcasters likewise come from lines of apprentice&#150;master relationships tracing back to famous wizards or sorcerers of old.\n\n{b}Wizard&apos;s Apprentice Starting Feature (1st level):{/b} You gain the color orb power.\n{b}Wizard&apos;s Apprentice Level 5 Feature (5th level):{/b} You gain one level 6 or lower common magic implement, armor, or neck slot item of your choice.\n{b}Wizard&apos;s Apprentice Level 10 Feature (10th level):{/b} You gain a +3 power bonus to Arcana checks, and you learn one new language (other than Supernal)." compset="Theme" uniqueness="unique">
    <usesource source="Dragon"/>
    <tag group="Hide" tag="Special" name="Special" abbrev="Special"/>
    <bootstrap thing="fThmWA3"></bootstrap>
    <bootstrap thing="fThmWA1"></bootstrap>
    <bootstrap thing="fThmWA2"></bootstrap>
    </thing>
  <thing id="fThmWA1" name="Wizard&apos;s Apprentice Starting Feature" description="You gain the Color Orb Power." compset="ThemeFeat" uniqueness="unique">
    <tag group="ReqLevel" tag="1"/>
    <bootstrap thing="pwColOrb"></bootstrap>
    </thing>
  <thing id="fThmWA2" name="Wizard&apos;s Apprentice Level 5 Feature" description="You gain one level 6 or lower common magic implement, armor, or neck slot item of your choice." compset="ThemeFeat" uniqueness="unique">
    <tag group="ReqLevel" tag="5"/>
    </thing>
  <thing id="fThmWA3" name="Wizard&apos;s Apprentice Level 10 Feature" description="You gain a +3 power bonus to Arcana checks, and you learn one new language (other than Supernal)." compset="ThemeFeat" uniqueness="unique">
    <tag group="ReqLevel" tag="10"/>
    <eval phase="Traits" priority="1000"><![CDATA[ doneif (activated = 0)

      #traitmodify[skArcana,trtBonus,3,""]
      #resmax[resLangExt] +=1]]>
      <before name="Calc resLeft"/>
      </eval>
    </thing>
  <thing id="pwDisAp" name="Disappear" description="{b}Effect{/b}: You become invisible until the end of this turn." compset="Power">
    <usesource source="Dragon"/>
    <tag group="EffectType" tag="Illusion" name="Illusion" abbrev="Illusion"/>
    <tag group="PowerSrc" tag="Arcane" name="Arcane" abbrev="Arcane"/>
    <tag group="PowerType" tag="Utility" name="Utility Power" abbrev="Utility"/>
    <tag group="PowerUse" tag="Daily" name="Daily Power" abbrev="Daily"/>
    <tag group="ReqLevel" tag="2"/>
    <tag group="User" tag="AttrPhys"/>
    <tag group="PowerTheme" tag="thWizzApp"/>
    <tag group="ActionType" tag="Minor"/>
    </thing>
  <thing id="pwWAStep" name="Winged Step" description="{b}Effect{/b}: You fly up to 6 squares and land. This movement does not provoke opportunity attacks." compset="Power">
    <usesource source="Dragon"/>
    <tag group="PowerSrc" tag="Arcane" name="Arcane" abbrev="Arcane"/>
    <tag group="PowerType" tag="Utility" name="Utility Power" abbrev="Utility"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="ReqLevel" tag="6"/>
    <tag group="ActionType" tag="Move"/>
    <tag group="PowerTheme" tag="thWizzApp"/>
    <tag group="AttackType" tag="Personal" name="Personal" abbrev="Personal"/>
    </thing>
  <thing id="pwWAPoly" name="Minor Polymorph" description="{b}Effect{/b}: You assume the form of a Tiny natural beast until the end of your next turn. While in this form, you cannot attack, but you have the senses of your chosen form and gain its movement modes. If your chosen form has the aquatic keyword, you also gain it while in this form. You can return to your normal form as a minor action. If you are flying when you return to your normal form, you descend to the ground without taking falling damage. Observers can tell that you&apos;re a supernatural version of your animal form by making a successful Insight check against a DC equal to 15 + one-half your level.\n{b}Sustain Minor:{/b} Your animal form persists until the end of your next turn." compset="Power">
    <usesource source="Dragon" parent="Adventure" name="Dragon Magazine"/>
    <tag group="AttackType" tag="Personal" name="Personal" abbrev="Personal"/>
    <tag group="PowerSrc" tag="Arcane" name="Arcane" abbrev="Arcane"/>
    <tag group="PowerTheme" tag="thWizzApp" name="Wizard&apos;s Apprentice" abbrev="Wizard&apos;s Apprentice"/>
    <tag group="PowerType" tag="Utility" name="Utility Power" abbrev="Utility"/>
    <tag group="PowerUse" tag="Daily"/>
    <tag group="ReqLevel" tag="10"/>
    <tag group="ActionType" tag="Standard"/>
    <tag group="EffectType" tag="Polymorph" name="Polymorph" abbrev="Polymorph"/>
    </thing>
  </document>
