This is what I did but the button does not generate any numbers:
Code:
<portal
id="Random"
style="actBig"
tiptext="Click here to randomly generate attributes.">
<action
action="trigger"
buttontext="Roll Stats"
confirm="This will generate random values for all attributes. Proceed?">
<trigger><![CDATA[
hero.child[attrStr].field[trtUser].value = random(6) + random(6) + 1
hero.child[attrAgl].field[trtUser].value = random(6) + random(6) + 1
hero.child[attrCon].field[trtUser].value = random(6) + random(6) + 1
hero.child[attrInt].field[trtUser].value = random(6) + random(6) + 1
hero.child[attrEdu].field[trtUser].value = random(6) + random(6) + 1
hero.child[attrChr].field[trtUser].value = random(6) + random(6) + 1
]]></trigger>
</action>
</portal>
Any ideas?