Packages
 Input
 Module
 User
 DB
 Interface

Objects
 bitmapwidget
 databasenode
 dragdata
 textwidget
 tokeninstance
 widget
 widgetcontainer

Elements
 buttoncontrol
 categoryselectioncontrol
 chatentry
 chatwindow
 databasecontrol
 diecontrol
 diefield
 genericcontrol
 imagecontrol
 numbercontrol
 numberfield
 portraitselectioncontrol
 script
 scrollercontrol
 stringcontrol
 stringfield
 subwindow
 textbasecontrol
 tokenbag
 tokencontrol
 tokenfield
 windowclass
 windowcontrol
 windowinstance
 windowlist
 windowreferencecontrol
 windowreferencefield

Components
 categoryselectionsettings
 customdie
 die
 font
 framedef
 desktopframe
 hotkeybar
 icon
 imageupdatefolder
 importinfo
 includefile
 panel
 portraitset
 template
 tokenroot
 tooltip
onValue



This definition is used to define a custom die resource. Custom dice are based on one of the built-in die types, and share the same graphical model. The result number of a custom dice can be calculated based on custom logic or a formula translating the model die result number to a custom result.

Custom dice are available through the radial menu of the built-in die used as the model.



Definition

<customdie name="..." >
<model > ... </model> The name of a die resource used as the model
<menuicon > ... </menuicon> The name of an icon resource used in the radial menu of the built-in die
<script > ... </script> The name of an icon resource used in the radial menu of the built-in die
</customdie>


Interface

onValue

event function onValue( result )

This function is called to calculate the value for the custom die. The result of the roll made on the built-in die is passed as a parameter.

Parameters

result   (number)   
The result of the built-in die roll

Return values

(number)
The value to be used as the result of the custom die


'Fantasy Grounds' is a trademark of SmiteWorks Ltd.
'd20 System' and the d20 System logo are trademarks of Wizards of the Coast, Inc. in the United States and other countries and are used with permission.
© 2004-2008 SmiteWorks Ltd. ALL RIGHTS RESERVED.
Privacy policy