I did have to modify a couple of things, but it works.
Just in case anyone else wants to use it:
Code:
<template
id="baRoll"
name="Roll Abilities"
compset="Actor"
marginhorz="16"
marginvert="3">
<portal
id="rollability"
style="actBig"
tiptext="Click to roll your ability scores.">
<action
action="trigger"
confirm="This will reroll your base attributes. Proceed?">
<trigger><![CDATA[
call RollAbilities
]]></trigger>
<buttontext><![CDATA[
@text = "Roll Abilities"
]]></buttontext>
</action>
</portal>
<position><![CDATA[
~set up our height based on our tallest portal
height = portal[rollability].height
~if this is a "sizing" calculation, we're done
doneif (issizing <> 0)
~position our tallest portal at the top
portal[rollability].top = 0
~position the rollability portal on the far right
perform portal[rollability].alignedge[right,0]
]]></position>
</template>
Code:
<templateref template="baRoll" thing="actor" taborder="60" />