5E Product Walkthrough Playlist
  1. #1

    draginfo.setDieList(dielist) Question

    So if I was to do something to the effect of:

    Code:
    dielist = { "d6", "d6", "d6", "d4", "d4", "d4" };
    draginfo.setDieList(dielist);
    Would that actually assign 3d6 and 3d4 to the dice in hand to be dropped?
    • Trying to find a community Ruleset, Extension or Information on how to complete a process? Try FGRepository.
    • PM Myself if you have new or updated community Rulesets, Extensions or Information that you'd like added to FGRepository.

  2. #2
    Yes, as long as the draginfo object is set during an onDrag event.

    In the onDiceLanded event, the dice list has a different structure, since the results are included as well.

    Cheers,
    JPG

  3. #3
    Perfect. That should work just the way I needed then. Thanks!
    • Trying to find a community Ruleset, Extension or Information on how to complete a process? Try FGRepository.
    • PM Myself if you have new or updated community Rulesets, Extensions or Information that you'd like added to FGRepository.

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
  •  
FG Spreadshirt Swag

Log in

Log in