<portal
id="oSplBkTb2"
style="outtable">
<output_table
component="BaseSpell"
showtemplate="osPick"
showpicks="yes"
varyheight="yes"
showsortset="SpellOut">
<list><![CDATA[
Spellbook.? & !Helper.CustomItem & ((hero#Classes.StuSu_v1 & Spellbook.cHelpMMT) | Spellbook.PrayerBook | Spellbook.MeditaBook) & !Hide.Spell & !Helper.ActMythSpl
]]></list>
</output_table>
</portal>
<layout
id="oSpellboo2">
<portalref portal="oSplBkTb2"/>
<position><![CDATA[
perform portal[oSplBkTb2].autoplace
]]></position>
</layout>
<sheet
id="splbkdes2"
name="Spellbook sheet, spillover2 (Description)"
spillover="yes">
<layoutref layout="oSpellboo2" reference="left"/>
<layoutref layout="oSpellboo2" reference="right"/>
<layoutref layout="osBkHeader"/>
<position><![CDATA[
~ Set our global variable to 'output description'
scenevalue[spellout] = 0
~setup the gap to be used between the various sections of the character sheet
autogap = 40
scenevalue[sectiongap] = autogap
layout[osBkHeader].width = width
perform layout[osBkHeader].render
layout[left].top = layout[osBkHeader].bottom + 40
layout[right].top = layout[osBkHeader].bottom + 40
~calculate the width of the two columns of the character sheet, leaving a
~suitable center gap between them
var colwidth as number
colwidth = (width - 50) / 2
~output the layout on the lefthand side with whatever information will fit
layout[left].width = colwidth
layout[left].height = height - layout[left].top
perform layout[left].render
~output the layout on the righthand side with whatever information will fit
layout[right].width = colwidth
layout[right].height = height - layout[right].top
layout[right].left = width - colwidth
perform layout[right].render
]]></position>
</sheet>
<sheet
id="splbksum2"
name="Spellbook sheet, spillover (Summary)"
spillover="yes">
<layoutref layout="oSpellboo2" reference="left"/>
<layoutref layout="oSpellboo2" reference="right"/>
<layoutref layout="osBkHeader"/>
<position><![CDATA[
~ Set our global variable to 'output summaries'
scenevalue[spellout] = 1
~setup the gap to be used between the various sections of the character sheet
autogap = 40
scenevalue[sectiongap] = autogap
layout[osBkHeader].width = width
perform layout[osBkHeader].render
layout[left].top = layout[osBkHeader].bottom + 40
layout[right].top = layout[osBkHeader].bottom + 40
~calculate the width of the two columns of the character sheet, leaving a
~suitable center gap between them
var colwidth as number
colwidth = (width - 50) / 2
~output the layout on the lefthand side with whatever information will fit
layout[left].width = colwidth
layout[left].height = height - layout[left].top
perform layout[left].render
~output the layout on the righthand side with whatever information will fit
layout[right].width = colwidth
layout[right].height = height - layout[right].top
layout[right].left = width - colwidth
perform layout[right].render
]]></position>
</sheet>
<!-- Various spellbook output formats -->
<dossier
id="splbkdes2"
name="Spells in Spellbook (Custom Class) - Full Descriptions">
<dossier_sheet
grouping="spellbook">
<live><![CDATA[
(Hero.Spellbook | HasBook.?) & !CharType.typArmy & !CharType.typKing
]]></live>
<sheetref sheet="splbkdes2"/>
</dossier_sheet>
</dossier>
<dossier
id="splbksum2"
name="Spells in Spellbook (Custom Class) - Summaries">
<dossier_sheet
grouping="spellbook">
<live><![CDATA[
(Hero.Spellbook | HasBook.?) & !CharType.typArmy & !CharType.typKing
]]></live>
<sheetref sheet="splbksum2"/>
</dossier_sheet>
</dossier>