<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data">
  <thing id="thOrdPrst" name="Ordained Priest" description="Ordained priests are characters who are formally appointed to work in the service of a faith, a sect, or a system of worship. Although some are devout wielders of divine power, many have no magical abilities at all; the term &quot;ordained priest&#148; in this context means someone who holds the social position or occupation of being an ordained official of the faith. For example, typical village priests have no powers comparable to the attack and utility prayers of adventuring clerics. They hold a different sort of power: the deference of their neighbors, the trust of the authorities, and the respect of the great majority of the citizenry who rely on their counsel and good judgment. Ordained priests might serve as teachers, soldiers, confessors, advisors, students, magistrates, or powerful rulers, but whatever their role in society, they inspire and influence ordinary people to live up to the standards of their faith.\n    Ordained priests enjoy a bewildering variety of preferred titles. Depending on the land in which they&#146;re found and the faith to which they belong, they might be known as curates, elders, friars, imams, lamas, prelates, shepherds, rectors, or vicars. In some realms, temples are huge, powerful states within the nation, ruling over wide estates guarded by armies of temple guards. Ordained priests in rich, influential hierarchies such as these might have duties or titles that have little to do with ministering to commoners, and instead they could wield authority as judges, lawkeepers, and bureaucrats. However, most faiths in the mortal world are smaller organizations that rarely have much influence outside their own realm or kingdom.\n\n{b}Ordained Priest Starting Feature (1st level):{/b} Choose smiting symbol or shining symbol. You gain that power.\n{b}Ordained Priest Level 5 Feature (5th level):{/b} You gain a +2 power bonus to Religion checks and Insight checks.\n{b}Ordained Priest Level 10 Feature (10th level):{/b} While adjacent to you, your allies gain a +1 power bonus to saving throws." compset="Theme">
    <bootstrap thing="fOrdPrst5"></bootstrap>
    <bootstrap thing="fOrdPrst10"></bootstrap>
    <bootstrap thing="pwOrdPrsta">
      <autotag group="User" tag="FeatureChk"/>
      </bootstrap>
    <bootstrap thing="pwOrdPrstb">
      <autotag group="User" tag="FeatureChk"/>
      </bootstrap>
    <evalrule phase="Validate" priority="10000" message="Too Many Symbols Selected"><![CDATA[
      ~disable any of our blessings that aren't selected


      var total as number
      foreach pick in hero from Power where "User.FeatureChk & PowerLink.OrdPrst"
        if (eachpick.field[usrIsCheck].value <> 0) then
          total += 1
        else
          perform eachpick.assign[Hide.Special]
          perform eachpick.assign[Helper.Disable]
          endif
        nexteach


        validif ( total = 1 )
        if ( total <> 1 ) then
          @message = "Choose Only One Symbol"
        endif]]></evalrule>
    </thing>
  <thing id="pwOrdPrsta" name="Shining Symbol" compset="Power">
    <fieldval field="pwRange1" value="3"/>
    <fieldval field="pwTarget" value="Each enemy in the blast"/>
    <fieldval field="pwFlavor" value="Your holy symbol gleams with a brilliant radiance, searing your foes and dazzling them for a short time."/>
    <tag group="ActionType" tag="Standard"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thOrdPrst"/>
    <tag group="EffectType" tag="Radiant"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="AttackType" tag="CloseBlast"/>
    <tag group="PowerSrc" tag="Divine"/>
    <tag group="PowerAcc" tag="Implement"/>
    <tag group="PowerType" tag="Encounter"/>
    <tag group="AttackVs" tag="defWill"/>
    <tag group="PowerLink" tag="OrdPrst"/>
    <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="pwOrdPrstb" name="Smiting Symbol" description="{b}Hit:{/b} 1[W] + highest ability modifier damage.\n{b}Effect:{/b} Choose one ally within 3 squares of you. That ally gains a +2 bonus to all defenses until the end of your next turn. He or she also gains temporary hit points equal to 3 + one-half your level.\n    Level 11: 2[W] + highest ability modifier damage.\n    Level 21: 3[W] + highest ability modifier damage." compset="Power">
    <fieldval field="pwFlavor" value="The power of your deity shields a nearby ally while you smite the foe."/>
    <fieldval field="pwTarget" value="One enemy"/>
    <tag group="PowerType" tag="Encounter"/>
    <tag group="ActionType" tag="Standard"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thOrdPrst"/>
    <tag group="PowerSrc" tag="Divine"/>
    <tag group="EffectType" tag="Weapon"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="AttackType" tag="MeleeWep"/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="AttackVs" tag="defAC"/>
    <tag group="PowerLink" tag="OrdPrst"/>
    <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="pwOrdPrst2" name="Word of Comfort" description="{b}Effect:{/b} Each target can make a saving throw. In addition, each target regains 5 hit points, or 10 hit points if he or she is bloodied." compset="Power">
    <fieldval field="pwFlavor" value="You recite a verse offering a prayer of comfort and endurance in the face of adversity"/>
    <fieldval field="pwRange1" value="2"/>
    <fieldval field="pwTarget" value="You and each ally in the burst"/>
    <tag group="ActionType" tag="Standard"/>
    <tag group="ReqLevel" tag="2"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thOrdPrst"/>
    <tag group="PowerSrc" tag="Divine"/>
    <tag group="EffectType" tag="Healing"/>
    <tag group="PowerUse" tag="Daily"/>
    <tag group="AttackType" tag="CloseBurst"/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="PowerType" tag="Utility"/>
    </thing>
  <thing id="pwOrdPrst6" name="Word of Protection" description="{b}Effect:{/b} Each target gains a +5 power bonus to all defenses until the end of your next turn. If any target makes an attack, the effect ends for all targets.\n\n{b}Sustain Standard:{/b} The effect persists until the end of your next turn." compset="Power">
    <fieldval field="pwFlavor" value="You protect yourself and nearby allies with a prayer of peace."/>
    <fieldval field="pwRange1" value="3"/>
    <fieldval field="pwTarget" value="You and each ally in the burst"/>
    <tag group="ActionType" tag="Standard"/>
    <tag group="ReqLevel" tag="6"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thOrdPrst"/>
    <tag group="PowerSrc" tag="Divine"/>
    <tag group="PowerUse" tag="Daily"/>
    <tag group="AttackType" tag="CloseBurst"/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="PowerType" tag="Utility"/>
    </thing>
  <thing id="pwOrdPst10" name="Sanctifying Word" description="{b}Effect:{/b} The burst creates a zone that lasts until the end of your next turn. While in the zone, each ally gains a +2 bonus to all defenses and adds 5 to his or her healing surge value. Any undead creature that ends its turn in the zone takes 5 radiant damage.\n\n{b}Sustain Minor:{/b} The zone persists until the end of your next turn." compset="Power">
    <fieldval field="pwFlavor" value="Your prayer sanctifies the ground on which you stand, protecting allies and daunting foes that dare to approach."/>
    <fieldval field="pwRange1" value="1"/>
    <tag group="PowerType" tag="Utility"/>
    <tag group="ActionType" tag="Standard"/>
    <tag group="PowerSrc" tag="Divine"/>
    <tag group="ReqLevel" tag="10"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thOrdPrst"/>
    <tag group="EffectType" tag="Radiant"/>
    <tag group="EffectType" tag="Zone"/>
    <tag group="PowerUse" tag="Daily"/>
    <tag group="AttackType" tag="CloseBurst"/>
    <tag group="PowerAcc" tag="Weapon"/>
    </thing>
  <thing id="fOrdPrst5" name="Ordained Priest Level 5 Feature" description="You gain a +2 power bonus to Religion checks and Insight checks." compset="ThemeFeat">
    <tag group="ReqLevel" tag="5"/>
    <eval phase="Traits" priority="5000"><![CDATA[    #traitmodify[skReligion,trtPower,2,""]
    #traitmodify[skInsight,trtPower,2,""]]]></eval>
    </thing>
  <thing id="fOrdPrst10" name="Ordained Priest Level 10 Feature" description="While adjacent to you, your allies gain a +1 power bonus to saving throws." compset="ThemeFeat">
    <tag group="ReqLevel" tag="10"/>
    </thing>
  </document>
