View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 5th, 2010, 10:44 PM
Spell: Bristle
Code:
  <thing id="pS2Bristle" name="Bristle" description="You give a creature the ability to redirect a portion of its innate toughness away from its own defense and toward the amount of damage it deals with natural attacks. Each round, as a swift action at the start of its turn, the creature can choose to reduce some or all of its natural armor bonus to AC and gain an enhancement bonus on all damage rolls for natural attacks equal to that amount. The reduction to natural armor, and thus the enhancement bonus on damage rolls, cannot exceed 1 point per 3 caster levels, to a maximum penalty/bonus of -5/+5 at 15th level. A creature cannot reduce its natural armor bonus to less than 0 with this spell. All attacks directed against the creature use its adjusted AC until the start of its next turn, at which time it can choose to modify its AC again or keep it at its current level. Creatures make this decision without any need for conscious thought or reflection; even creatures with no Intelligence score can benefit from this spell, although they always opt for the maximum possible reduction and bonus, regardless of any tactical advantage they might lose." compset="InPlay">
    <fieldval field="pMinimum" value="0"/>
    <fieldval field="pMaximum" value="5"/>
    <fieldval field="pDuration" value="1 min/level"/>
    <usesource source="APG"/>
    <tag group="Helper" tag="AdjSpell" name="Spell Adjustment" abbrev="Spell Adjustment"/>
    <eval phase="Final" priority="10000"><![CDATA[~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~ Only take the minimum between the Adjust value or the Natural AC
field[abValue].value = minimum(field[pAdjust].value,hero.child[ArmorClass].field[tACNatural].value)

~ Add/Subtrack to our natural armor class
hero.child[ArmorClass].field[tACNatural].value -= field[abValue].value

~ Modify all natural attack damage
foreach pick in hero from BaseWep where "wGroup.Natural"
  ~ give a +1 Enhancment bonus on damage
    eachpick.field[wDamBonus].value += field[abValue].value
nexteach]]></eval>
    </thing>

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #22 Reply With Quote