<thing
foreach pick in hero from BaseFact
id="thingid.fac?"
name="thingid.fac?"
compset="CustUser"
uniqueness="unique"
description="At 1st level, a ranger selects a creature type from the ranger favored enemies table. He gains a +2 bonus on Bluff, Knowledge, Perception, Sense Motive, and Survival checks against creatures of his selected type. Likewise, he gets a +2 bonus on weapon attack and damage rolls against them. A ranger may make Knowledge skill checks untrained when attempting to identify these creatures.{br}{br}At 5th level and every five levels thereafter (10th, 15th, and 20th level), the ranger may select an additional favored enemy. In addition, at each such interval, the bonus against any one favored enemy (including the one just selected, if so desired) increases by +2.{br}{br}If the ranger chooses humanoids or outsiders as a favored enemy, he must also choose an associated subtype, as indicated on the table below. (Note that there are other types of humanoid to choose from—those called out specifically on the table below are merely the most common.) If a specific creature falls into more than one category of favored enemy, the ranger's bonuses do not stack; he simply uses whichever bonus is higher.">
<fieldval field="shortname" value="thingid.fac?"/>
<fieldval field="abUser" value="2"/>
<fieldval field="abUserMin" value="2"/>
<tag group="AbilType" tag="Extra"/>
<link linkage="selections" thing="resEnemSel"/>
<link linkage="upgrades" thing="resEnemUpg"/>
<eval index="1" phase="PostAttr" priority="200000">
<before name="Calc resLeft"/><![CDATA[
doneif (tagis[Helper.ShowSpec] = 0)
var favbonus as number
favbonus = field[abValue].value
call FavEnemy
]]></eval>
nexteach