Require( "dice/dice.ts" ) return DiceAconf({ displayWidth = 0.8, frames = 5, strips = 5, material = { name = "Dice", colormap = "dice/d20_dice.jpg", opacitymap = "dice/d20yy_dice.png", lit = 0, twosided = 0, drawmode = 2, -- 2: alpha blend, 3: filter, 4: cutout, 5: additive, 6: premultiplied }, -- the dice actually define each die (you can have a max of five) dice = { { -- name is optional name = "First", -- slots are optional; default, all slots are used; these map to -- frames across and strips down the material. firstSlot = 2, -- Very important: -- firstSlot always starts with 1 or above!! 0th slot is the cleared state slot. -- (the "?" texture that shows up when you clear the history) -- numSlots determines how many values this die can take! -- the maximum allowed for numSlots is 62 numSlots = 20, -- color is optional, and will multiply in with material -- red die -- color = 0xffff6060, -- rollSlot is a frame that will be shown while rolling. -- if not set, a random die frame will be shown. -- if set, it cannot have the value 0 (that's the same as un-set) -- rollSlot = 6, }, }, })