Skip to content

Commit

Permalink
Adjustments (ShadowChemosh)
Browse files Browse the repository at this point in the history
-Merged over my "Equipment, Notes" adjustment from the Pathfinder Basic Pack.
-Added "Equipment, Notes" that allows you to append up to 100 characters to a selected piece of gear description text.
  • Loading branch information
shadowchemosh committed Mar 3, 2016
1 parent 86d0974 commit b4dbe0d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions COM_5ePack_PHB - Adjustments.user
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,20 @@
NumOfProf = field[pAdjust].value
call 5CAddProf]]></eval>
</thing>
<thing id="pS2EqText" name="Equipment, Notes" description="Select this adjustment to allow for adding text notes (up to 100 characters) to equipment that will display as part of the items description text." compset="InPlay">
<fieldval field="pCandExpr" value="component.MyGear &amp; !(Helper.Static|thingid.mNatural)"/>
<fieldval field="pSource" value="Notes"/>
<usesource source="5ePHBCP"/>
<tag group="Adjustment" tag="S2Custom"/>
<tag group="OthAdjCat" tag="Equipment"/>
<tag group="Helper" tag="NoIncr"/>
<eval phase="Final" priority="50000"><![CDATA[
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~ If nothing's been chosen, get out now
doneif (field[pChosen].ischosen = 0)
~ Append the entered text to the gear item
field[pChosen].chosen.field[DescAppend].text &= field[pSource].text]]></eval>
</thing>
</document>

0 comments on commit b4dbe0d

Please sign in to comment.