<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data">
  <thing id="thOAdept" name="Order Adept" description="Great wizards are forged, not born. Natural talent and a quick mind are only the bare beginning of being able to wield the arcane arts. Achieving true mastery requires personal dedication and self-discipline, rigorous training, and access to libraries full of ancient grimoires and crumbling scrolls. In many places no special organizations or traditions exist to guide wizards and other arcane spellcasters along their way; magic-users come to their full powers and wield their spells as they see fit. But in other lands, magic is regarded as too important&#151;or too dangerous&#151;to be left in the hands of the self-taught dabblers. In these lands, magic is taught and practiced by members of special orders, guilds, societies, brotherhoods, and cabals who jealously guard access to their powers and seek to control their use.\n    Arcane orders arise for many reasons. Some exist for the purpose of preserving arcane traditions and instructing new spellcasters in arcane powers. Others organize the efforts of their members in the service of a worthy (or sometimes not so worthy) cause. For example, the Order of the Golden Flame is sworn to serve the crown of Cernall, and its members are granted extensive authority as royal officers. The Ruathar Eldoni is an order of eladrin wizards dedicated to the destruction of demons, its members traveling throughout the world and beyond it to deal with demonic incursions wherever they appear. The Emerald Orb is a meddlesome cabal whose members believe that wizards should rule over lesser mortals, and they work to gain inf luence over important rulers or to establish open magocracies. Some orders are large, formal hierarchies in which members are expected to obey the orders of their superiors, while others are small fellowships in which no one member is considered superior to his or her fellows.\n    An arcane order might operate openly or exist as a hidden society. Members of openly active orders typically proclaim their allegiance with a highly recognizable garment or symbol; for example, wizards of the Golden Flame wear a richly embroidered yellow cloak, and members of the Ruathar Eldoni often wear a silver star-shaped brooch or clasp. Other orders favor such identifiers as tattoos, unique hairstyles or grooming, or implements of a particular design. Members of secret orders avoid any outwardly distinguishing signs, of course, but often have secret signs they can use to prove their identity to others of their group&#151;for instance, a pendant worn under one&#146;s shirt, a ring that isn&#146;t very obvious to a casual viewer, or a brand hidden beneath robes.\n\n{b}Order Adept Starting Feature (1st level):{/b} You gain the argent rain power.\n{b}Order Adept Level 5 Feature (5th level):{/b} You gain a +2 power bonus to Arcana checks. If you have a spellbook, add one 2nd-level wizard utility power to it. If you don&#146;t have a spellbook, 2nd-level wizard utility powers can be selected when you gain or retrain utility powers.\n{b}Order Adept Level 10 Feature (10th level):{/b} You gain a +2 power bonus to Will. Your power bonus to Arcana checks from this theme increases to +4." compset="Theme">
    <bootstrap thing="fOAdept1"></bootstrap>
    <bootstrap thing="fOAdept5"></bootstrap>
    <bootstrap thing="fOAdept10"></bootstrap>
    </thing>
  <thing id="pwOAdept1" name="Argent Rain" description="{b}Attack:{/b} Highest ability modifier vs. Reflex\n{b}Hit:{/b} 1d10 + highest ability modifier fire damage.\n{b}Effect:{/b} The burst creates a zone that lasts until the start of your next turn. Any creature that enters the zone or ends its turn there takes 5 fire damage. A creature can take this damage only once per turn.\n    Level 11: 10 fire damage.\n    Level 21: 15 fire damage" compset="Power">
    <fieldval field="pwFlavor" value="You bring forth a shower of blue-white molten metal droplets, searing your foes and threatening any creature that ventures into the area."/>
    <fieldval field="pwRange1" value="1 within 10 squares"/>
    <fieldval field="pwTarget" value="Each creature in the burst"/>
    <fieldval field="pwDamBase" value="1d10"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thOAdept"/>
    <tag group="PowerSrc" tag="Arcane"/>
    <tag group="AttackVs" tag="defRef"/>
    <tag group="EffectType" tag="Fire"/>
    <tag group="EffectType" tag="Zone"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="AttackType" tag="AreaBurst"/>
    <tag group="PowerAcc" tag="Implement"/>
    <tag group="PowerType" tag="Encounter"/>
    <tag group="ActionType" tag="Standard"/>
    <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[attrInt]
attidstr = "attrInt"

~ 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="pwOAdept2" name="Extension" description="{b}Effect:{/b} You sustain a power that normally requires a minor action to sustain." compset="Power">
    <fieldval field="pwFlavor" value="You extend the duration of a spell for just a few more seconds."/>
    <fieldval field="pwSpecial" value="You can use this power as a minor action to sustain a power that normally requires a move action to sustain."/>
    <tag group="PowerType" tag="Utility"/>
    <tag group="ActionType" tag="Free"/>
    <tag group="ReqLevel" tag="2"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thOAdept"/>
    <tag group="PowerSrc" tag="Arcane"/>
    <tag group="PowerUse" tag="Daily"/>
    <tag group="AttackType" tag="Personal"/>
    <tag group="PowerAcc" tag="Weapon"/>
    </thing>
  <thing id="pwOAdept6" name="Far Reaching" description="{b}Trigger:{/b} You use a ranged or area arcane attack power.\n{b}Effect:{/b} You double the range of the triggering power. For example, a ranged 5 power becomes a ranged 10 power, and a power with a range of &#147;area burst 2 within 10&#148; becomes area burst 2 within 20. The area affected remains unchanged." compset="Power">
    <fieldval field="pwFlavor" value="You extend the range of a spell beyond its normal limit."/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="PowerType" tag="Utility"/>
    <tag group="ActionType" tag="Free"/>
    <tag group="ReqLevel" tag="6"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thOAdept"/>
    <tag group="PowerSrc" tag="Arcane"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="AttackType" tag="Personal"/>
    </thing>
  <thing id="pwOAdept10" name="Mnemonic Enhancer" description="{b}Requirement:{/b} You must have expended all your arcane encounter attack powers.\n{b}Effect:{/b} You regain your lowest-level expended arcane encounter attack power." compset="Power">
    <fieldval field="pwFlavor" value="You recall to mind a spell you&#146; ve already used in this battle."/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="PowerType" tag="Utility"/>
    <tag group="ActionType" tag="Minor"/>
    <tag group="PowerSrc" tag="Arcane"/>
    <tag group="ReqLevel" tag="10"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thOAdept"/>
    <tag group="PowerUse" tag="Daily"/>
    <tag group="AttackType" tag="Personal"/>
    </thing>
  <thing id="fOAdept1" name="Order Adept Starting Feature" description="You gain the argent rain power." compset="ThemeFeat">
    <tag group="ReqLevel" tag="1"/>
    <bootstrap thing="pwOAdept1"></bootstrap>
    </thing>
  <thing id="fOAdept5" name="Order Adept Level 5 Feature" description="You gain a +2 power bonus to Arcana checks. If you have a spellbook, add one 2nd-level wizard utility power to it. If you don&#146;t have a spellbook, 2nd-level wizard utility powers can be selected when you gain or retrain utility powers." compset="ThemeFeat">
    <comment>No clue how to allow somebody the ability to select a level 2 wizard utility power only or to add an additional one to a spellbook if somebody has a spellbook.</comment>
    <tag group="ReqLevel" tag="5"/>
    <eval phase="Traits" priority="5000"><![CDATA[   #traitmodify[skArcana,trtPower,2,""]]]></eval>
    </thing>
  <thing id="fOAdept10" name="Order Adept Level 10 Feature" description="You gain a +2 power bonus to Will. Your power bonus to Arcana checks from this theme increases to +4." compset="ThemeFeat">
    <tag group="ReqLevel" tag="10"/>
    <eval phase="Traits" priority="5000"><![CDATA[   #traitmodify[skArcana,trtPower,4,""]
#traitmodify[defWill,trtPower,2,""]]]></eval>
    </thing>
  </document>
