STAR TREK 2d20

Thread: Bug: D2

  1. #1
    Doswelk's Avatar
    Join Date
    Jul 2005
    Location
    Surrey, UK
    Posts
    2,681

    Bug: D2

    I added a custom die a D2 using the following code:

    Code:
    <customdie name="d2">
      <model>d4</model>
      <menuicon>customdice</menuicon>
      <script>
        function onValue(result)
          return math.ceil(result/2);
        end
      </script>
    </customdie>
    All is well as long as you roll a single d2, but as soon as you roll more then 1d2, all the extra D2s result in -1

  2. #2
    That's the same problem that the D3's had originally. How did that get fixed?

    https://suprfile.com/get.php?id=6zgie4v&get=1

  3. #3
    Insanity's Avatar
    Join Date
    Mar 2007
    Location
    Terra, Sol system
    Posts
    198
    I added the same custom die, no problems. I am using ver 2.0.11.

  4. #4
    Doswelk's Avatar
    Join Date
    Jul 2005
    Location
    Surrey, UK
    Posts
    2,681
    I moved the code to after the d3 code and it worked!
    Last edited by Doswelk; May 22nd, 2007 at 18:35.

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
  •  
5E Product Walkthrough Playlist

Log in

Log in