Require( "dice/coin.ts" ) dieNames = { "heads", "tails", }; return DiceAconf({ -- 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 = 1, -- Very important: -- firstSlot always starts with 1!! 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 = 2, -- 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 = 2, dieNames = dieNames, }, }, })