5E Character Create Playlist

Thread: Rolling Dice

  1. #1

    Rolling Dice

    I cannot figure this out, though I am no scripting expert.


    I want to roll a d100, more specifically the 2d10 version. I know /die 2d10 works, but on a doubleclick command I cannot figure out how to roll 2d10. I can get it to roll d20, d100, etc -- but not 2d10.

    What am I missing?

    Code:
    function d10Check(type, bonus, desc, custom)
    	
    	table.insert(dice, "d10");
    	DieControlThrow(type, bonus, desc, custom, dice);
    end

  2. #2
    Foen's Avatar
    Join Date
    Jan 2007
    Location
    Suffolk, England
    Posts
    2,007
    Insert a "d10" twice. A separate table entry is needed for each virtual die that is rolled.

  3. #3
    Valarian's Avatar
    Join Date
    Mar 2007
    Location
    Worcestershire, UK
    Posts
    2,567
    Using Ultimate license - that means anyone can play.
    Valarian's Fantasy Grounds Rulesets

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in