<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data">
  <thing id="thSohei" name="Sohei" description="In Kara-Tur, as in the West, grand shrines can be found in the teeming cities. However, those seeking a quicker path to enlightenment or total devotion to the gods prefer remote monasteries or temples. Such places of worship offer immersion in spiritual pursuits and isolation from the distractions of civilization. Most are hidden high in remote hills or mountains, making the very act of finding the place a show of one&#146;s dedication to the sacred.\n    An urban shrine&#146;s clergy can look to the local authorities for protection from monsters, bandits, and enemies of the faith. A wilderness temple&#146;s devotees cannot&#151;most secluded places of worship are as much fortress as monastery. Just as such a holy place needs walls, it also needs guardians who share the spiritual values of their less militant fellows.\n    A sohei, sometimes called a yamabushi (&#147;mountain warrior&#148;) due to the usual site of farflung monasteries and shrines, is a monastic soldier trained as a temple guardian. Rather than focusing on intense religious instruction, a sohei receives training in meditation, body control, and martial techniques. Although devoted clergy of the same religion or sect might practice pacifism, a sohei warrior-monk does not.\n    The difference between a sohei and a fellow priest is type of duty. The warrior-monk looks out for the safety of the temple, allowing other priests to fulfill duties that are more spiritual. A sohei can also serve as the face of a religious order, going out into the world to spread the faith, strike against the temple&#146;s enemies, and seek objects and people important to the religion.\n    A sohei&#146;s superiors are figures higher in his or her religious hierarchy. Every sohei is a devoted combatant with mastery over preferred weapons, and each serves those higher in the hierarchy with obedience. As part of their service to the religion, they also learn to wield magical power. Often divine in nature, this power is a blessing of the sohei&#146;s commitment to a deity. However, legendary sohei&#151;even those from the same religious sect&#151;wield varying mystical capabilities.\n    A sohei can come from any walk of life. Children given into the service of a temple, whether orphans or nobles, can become sohei. Older initiates might be anything from outlaws to ronin. Requirements for becoming a militant priest include strength and willpower, as well as an abundance of energy and ambition that compels the individual to abandon the wholly meditative life.\n    An adventuring sohei frequently takes on a quest for his or her religious order. A few sohei go into the world to experience its mysteries, using worldly knowledge as part of a path to enlightenment. Other sohei, such as ronin, have been expelled from or have lost their temples. These wanderers search for a new purpose as much as any ronin does." compset="Theme" uniqueness="unique">
    <usesource source="Dragon"/>
    <tag group="Hide" tag="Special" name="Special" abbrev="Special"/>
    <bootstrap thing="fThmSoh3"></bootstrap>
    <bootstrap thing="fThmSoh1"></bootstrap>
    <bootstrap thing="fThmSoh2"></bootstrap>
    </thing>
  <thing id="fThmSoh1" name="Sohei Starting Feature" description="You gain the Sohei Flurry Power." compset="ThemeFeat" uniqueness="unique">
    <tag group="ReqLevel" tag="1"/>
    <bootstrap thing="pwSohFlur"></bootstrap>
    </thing>
  <thing id="fThmSoh2" name="Sohei Level 5 Feature" description="You gain a +2 power bonus to Insight checks and Perception checks." compset="ThemeFeat" uniqueness="unique">
    <tag group="ReqLevel" tag="5"/>
    <eval phase="Traits" priority="1000"><![CDATA[ doneif (activated = 0)

      #traitmodify[skInsight,trtBonus,2,""]
      #traitmodify[skPercepti,trtBonus,2,""]]]>
      <before name="Calc resLeft"/>
      </eval>
    </thing>
  <thing id="fThmSoh3" name="Sohei Level 10 Feature" description="You gain a +1 power bonus to saving throws against fear effects and effects that render you dazed, dominated or stunned." 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="pwSohPar" name="Sohei Parry" description="{b}Effect{/b}: You gain a +2 power bonus to the defense targeted by the attack until the end of your next turn." compset="Power">
    <fieldval field="pwFlavor" value="Divine guidance helps you place your weapon in the path of an attack."/>
    <usesource source="Dragon"/>
    <tag group="PowerType" tag="Utility"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="ReqLevel" tag="2"/>
    <tag group="User" tag="AttrPhys"/>
    <tag group="PowerTheme" tag="thSohei"/>
    <tag group="ActionType" tag="ImmedInt"/>
    <tag group="PowerSrc" tag="Divine"/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="AttackType" tag="Personal"/>
    </thing>
  <thing id="pwSohClar" name="Sohei Clarity" description="{b}Trigger:{/b} You start your turn subjected to a dominating or stunning effect that a save can end.\n{b}Effect:{/b} You make a saving throw against the effect." compset="Power">
    <fieldval field="pwFlavor" value="Your mind instinctively finds its center, ridding you of a hindrance to the performance of your duty."/>
    <usesource source="Dragon"/>
    <tag group="PowerType" tag="Utility" name="Utility Power" abbrev="Utility"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="ReqLevel" tag="6"/>
    <tag group="ActionType" tag="None"/>
    <tag group="PowerTheme" tag="thSohei"/>
    <tag group="AttackType" tag="Personal" name="Personal" abbrev="Personal"/>
    <tag group="PowerSrc" tag="Divine"/>
    </thing>
  <thing id="pwSohInv" name="Sohei Invincibility" description="{b}Trigger:{/b} You start your turn dominated, stunned, or unconscious and have at least 1 hit point.\n{b}Effect:{/b} You ignore the triggering condition and are instead dazed for the same duration as the triggering condition." compset="Power">
    <fieldval field="pwFlavor" value="Your conscious mind can no longer be relied upon, so your sense of self retreats to your innermost soul and keeps acting."/>
    <usesource source="Dragon" parent="Adventure" name="Dragon Magazine"/>
    <tag group="PowerSrc" tag="Divine"/>
    <tag group="PowerTheme" tag="thSohei"/>
    <tag group="PowerType" tag="Utility" name="Utility Power" abbrev="Utility"/>
    <tag group="PowerUse" tag="Daily"/>
    <tag group="ReqLevel" tag="10"/>
    <tag group="ActionType" tag="None"/>
    <tag group="AttackType" tag="Personal" name="Personal" abbrev="Personal"/>
    </thing>
  <thing id="pwSohFlur" name="Sohei Flurry" description="{b}Requirement:{/b} You must have hit an enemy with a weapon attack during this turn.\n\n{b}Attack:{/b} Highest ability modifier vs. AC\n\nLevel 11: 2[W] damage." compset="Power">
    <fieldval field="pwDamBase" value="1d8"/>
    <fieldval field="pwFlavor" value="The blood you&apos;ve drawn spurs you on; and you lash at other enemies around you with divinely inspired fury."/>
    <fieldval field="pwTarget" value="1 creature (Level 21: 1 or 2 creatures)"/>
    <usesource source="Dragon" parent="Adventure" name="Dragon Magazine"/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="PowerSrc" tag="Divine"/>
    <tag group="PowerTheme" tag="thSohei"/>
    <tag group="PowerType" tag="Encounter" name="Encounter Power" abbrev="Encounter"/>
    <tag group="ActionType" tag="Minor"/>
    <tag group="AttackType" tag="MeleeWep"/>
    <tag group="AttackVs" tag="defAC"/>
    <eval phase="Traits" priority="5000"><![CDATA[var bonus as number
var attidstr as string

~ Use Str as default - this might not be necessary
bonus = #attrbonus[attrStr]
attidstr = "attrStr"

~ 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["Attack." & attidstr]]]>
      <after name="Calc attrBonus"/>
      </eval>
    </thing>
  <thing id="pwSohAdv" name="Sohei Advance" description="{b}Effect:{/b} You can draw a weapon before making the attack.\n{b}Special:{/b} When charging, you can use this power in place of a melee basic attack. If you have actions remaining, you can use your sohei flurry power after the charge, but if you do, you grant combat advantage until the end of your next turn." compset="Power">
    <fieldval field="pwFlavor" value="Centering yourself as you move, you draw your weapon and rush to engage your enemies."/>
    <fieldval field="pwTarget" value="One creature"/>
    <usesource source="Dragon" parent="Adventure" name="Dragon Magazine"/>
    <tag group="ReqLevel" tag="3"/>
    <tag group="ActionType" tag="Standard"/>
    <tag group="PowerTheme" tag="thSohei"/>
    <tag group="PowerSrc" tag="Divine"/>
    <tag group="AttackType" tag="MeleeWep"/>
    <tag group="AttackVs" tag="defAC"/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="PowerType" tag="Encounter"/>
    <tag group="Damage" tag="Weapon2"/>
    <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[attrStr]
attidstr = "attrStr"

~ 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="pwSohRush" name="Sohei Rush" description="{b}Effect:{/b}:You can draw a weapon before making the attack.\n{b}Special:{/b} When charging, you can use this power in place of a melee basic attack. If you have actions remaining, you can use your sohei flurry power after the charge, but if you do, you grant combat advantage until the end of your next turn." compset="Power">
    <fieldval field="pwFlavor" value="You attack without consideration for your own safety, trusting in the power of the divine to see you through the fight."/>
    <fieldval field="pwTarget" value="One creature"/>
    <usesource source="Dragon" parent="Adventure" name="Dragon Magazine"/>
    <tag group="PowerType" tag="Encounter"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="ReqLevel" tag="13"/>
    <tag group="ActionType" tag="Standard"/>
    <tag group="PowerTheme" tag="thSohei"/>
    <tag group="AttackVs" tag="defAC"/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="AttackType" tag="MeleeWep"/>
    <tag group="PowerSrc" tag="Divine"/>
    <tag group="Damage" tag="Weapon3"/>
    <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="pwSohSupr" name="Sohei Supremacy" description="{b}Effect:{/b} You can draw a weapon before making the attack.\n{b}Special:{/b} When charging, you can use this power in place of a melee basic attack. If you have actions remaining, you can use your sohei flurry power after the charge, but if you do, you grant combat advantage until the end of your next turn." compset="Power">
    <fieldval field="pwFlavor" value="More than one foe faces your attack, which you bring to bear with a swiftness granted by unshakable focus and the power of faith."/>
    <fieldval field="pwTarget" value="One or two creatures"/>
    <usesource source="Dragon" parent="Adventure" name="Dragon Magazine"/>
    <tag group="PowerType" tag="Encounter"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="ReqLevel" tag="23"/>
    <tag group="ActionType" tag="Standard"/>
    <tag group="PowerTheme" tag="thSohei"/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="PowerSrc" tag="Divine"/>
    <tag group="AttackVs" tag="defAC"/>
    <tag group="Damage" tag="Weapon3"/>
    <tag group="AttackType" tag="MeleeWep"/>
    <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>
  </document>
