Quote:
Originally Posted by Frodie
Very cool, could I ask for the xml for scrolls please? I always wanted to do the Spell App from the Modern Path. I messed with the above script and can't seem to get rid of the 50 charges. Spells Apps are 1 one shot like a scroll.
Thank you.
|
Code:
<thing
id="sCustomScr"
name="- Add custom scroll -"
compset="MagicItem"
description="Add this item to create a scroll with spells on it."
buytemplate="BuyGeneral"
xactspecial="2"> <!-- Barebones purchase, showing just coin fields -->
<tag group="Helper" tag="CustomItem"/>
<tag group="Helper" tag="CustSpCont"/>
<tag group="gType" tag="Scroll"/>
<tag group="SpecialTab" tag="GRScroll"/>
<eval value="1" phase="Render" priority="105100" name="Gen Custom Scroll Name">
<after name="Gen Custom Spell Name"/>
<after name="Default livename Modify"/><![CDATA[
var spelllist as string
call GenSplList
field[livename].text = "Scroll of " & spelllist
field[sbName].text = "scroll of " & spelllist
]]></eval>
<eval index="2" phase="Final" priority="10000"><![CDATA[
~our list of spells does not include wordspells
gizmo.child[CustScroll].field[abItemExpr].text = "!component.BaseWord & !Helper.Helper & !Helper.Obsolete"
]]></eval>
<eval index="3" phase="Final" priority="10000"><![CDATA[
~during play, this doesn't need to be on the Special tab, but we do want
~it displayed in the gear description appendix, so we add tags that will
~make it show up in that list if we're outputting this item, but *not* in
~the general special abilities list at the end of the statblock
if (state.isoutput <> 0) then
perform assign[Helper.ShowSpec]
perform assign[Hide.Statblock]
endif
]]></eval>
<evalrule index="1" phase="Validation" priority="5000" severity="warning" message="The scroll is empty."><![CDATA[
validif (tagcount[Helper.CustHasSpl] <> 0)
]]></evalrule>
<child entity="CustScroll"/>
</thing>