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

Old October 31st, 2010, 10:29 AM
Spell: Aspect of the Stag
Code:
  <thing id="pS2AspStag" name="Aspect of the Stag" description="When you cast this spell, you take on an aspect of a stag, including some of its physical characteristics. Your features become elongated and sinewy, and you grow a set of antlers you can use for defense. You gain a +2 dodge bonus to AC against attacks of opportunity, your base speed increases by 20 ft., you can move through any undergrowth (including magically manipulated undergrowth) at your normal speed, and can even make a 5-foot step within such terrain. Furthermore, when you are hit with an attack of opportunity, you can make a single attack with your antlers against the opponent that hit you as an immediate action. This attack uses your highest base attack bonus plus your Strength or Dexterity bonus (your choice) and deals 1d8 points of piercing damage (if you are Medium; 1d6 points of damage if Small) plus your Strength modifier on a successful hit. The antlers have a critical multiplier of 19-20/×2." compset="InPlay">
    <fieldval field="pMinimum" value=" "/>
    <fieldval field="pMaximum" value=" "/>
    <fieldval field="pDuration" value="1 min/level"/>
    <tag group="Helper" tag="AdjSpell" name="Spell Adjustment" abbrev="Spell Adjustment"/>
    <tag group="Helper" tag="NoIncr"/>
    <bootstrap thing="wGore">
      <autotag group="wMain" tag="1d8_6"/>
      <autotag group="Value" tag="1"/>
      <assignval field="livename" value="Antlers"/>
      </bootstrap>
    <eval phase="Final" priority="9900"><![CDATA[~Final Phase 9900
~if we're not active, just get out now
doneif (field[pIsOn].value = 0)

hero.child[Speed].field[tSpeedMod].value += 20]]></eval>
    <eval phase="PreLevel" priority="5000" index="2"><![CDATA[~ Modify the antler attack crit range
~ I have to assume that Pathfinder races don't have gore attacks so
~ only this spells bootstrapped wGore will be modified.
foreach pick in hero from BaseWep where "thingid.wGore"
  ~Make the horns 19-20/x2
  perform eachpick.assign[Broadcast.ImpCrit]
  ~Adjust antlers size based on hero
  if (herofield[tSize].value = -1) then
     Perform eachpick.assign[Helper.DamageDown]
  endif
nexteach]]></eval>
    </thing>
For this one the only thing I can't seem to get to work is how to stop the bootstrap of the wGore if the condition is not check marked. Hopefully that is something easy for you to add. The other thing is I am having a problem trying to figure out how to modify only the wGore that was added by the above.

So this is really close, but not perfect.

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   #14 Reply With Quote