FG Spreadshirt Swag
  1. #1

    morecore dice rolls using parameters

    if a dice roll has #d6 i can use p1 by coding (p1)d6

    but can I add p1 and p2 together in some way ie (p1+p2) (tried so many options of this) or do i need to code another dice type for the ruleset

    Thanks again

  2. #2
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,684
    Blog Entries
    1
    Adding support in for math operations to the code for 150 odd rolls is incredibly difficult and I have not found a way to do it.
    There are ways around it using code in an extension - I believe you are trying a little coding - or manually sum the numbers into (p1)

  3. #3
    Quote Originally Posted by damned View Post
    Adding support in for math operations to the code for 150 odd rolls is incredibly difficult and I have not found a way to do it.
    There are ways around it using code in an extension - I believe you are trying a little coding - or manually sum the numbers into (p1)
    OK Damned thanks for this, I was going about it the wrong way

  4. #4
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,684
    Blog Entries
    1
    Some rolls will accept something like (p1)d6+(p2)d6 but again many will not.
    The code that parses the dice string has to know how to handle the format you are putting in - in most cases there is only one acceptable string format.

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
  •  
Starfinder Playlist

Log in

Log in