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

Old November 17th, 2010, 11:24 PM
Spells: Crafter's Curse; Crafter's Fortune
Code:
  <thing id="pS2CraftCu" name="Crafter’s Curse" description="The target of {I}crafter’s curse{/i} takes a -5 penalty on all Craft skill checks while the spell lasts." compset="InPlay">
    <fieldval field="pMinimum" value="-5"/>
    <fieldval field="pMaximum" value="-5"/>
    <fieldval field="pDuration" value="1 day/level"/>
    <usesource source="APG"/>
    <tag group="Helper" tag="AdjSpell" name="Spell Adjustment" abbrev="Spell Adjustment"/>
    <eval phase="PostLevel" priority="10000"><![CDATA[
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)

~ Give a penalty to all Craft Skills
foreach pick in hero from BaseSkill where "Helper.SkCatCraft"
    eachpick.field[Penalty].value += field[pAdjust].value
nexteach]]></eval>
    </thing>
  <thing id="pS2CraftFo" name="Crafter’s Fortune" description="The target is struck by inspiration and gains a +5 luck bonus on its next Craft skill check." compset="InPlay">
    <fieldval field="pMinimum" value="5"/>
    <fieldval field="pMaximum" value="5"/>
    <fieldval field="pDuration" value="1 day/level"/>
    <usesource source="APG"/>
    <tag group="Helper" tag="AdjSpell" name="Spell Adjustment" abbrev="Spell Adjustment"/>
    <eval phase="PostLevel" priority="10000"><![CDATA[
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)

~ Give a Luck bonus to all Craft Skills
foreach pick in hero from BaseSkill where "Helper.SkCatCraft"
    #applybonus[BonLuck,eachpick,field[pAdjust].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   #26 Reply With Quote