DICE PACKS BUNDLE
  1. #1

    Question about rRoll.aDice fields

    What is the difference between the 'result' and 'value' fields in a die result passed into the modRoll or onRoll handler? They seem to always have the same numeric value.

    Context: There's a condition in the ruleset I'm working on that changes the highest die in a roll to a 1 (this is a count successes dice mechanic). Should my code change both 'result' and 'value' to 1, or is the answer to this question entirely dependent on the logic in my ruleset? Currently my code only looks at 'result' to determine overall results of the roll.

  2. #2
    the result would be the die face that is rolled. So if I roll a d6 and a 5 comes up the result would be a 5. Some systems use custom d6 die and that 5 might mean a different value. Like say a rolled 5 equals a 2 instead. In majority of cases, the result and value are the same as the result rolled equals the value on the die face.
    Dominic Morta
    Ruleset Developer
    Smiteworks

    How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it

    How to provide an Unity Connection issue?-Connection Issues and What to Provide

    Unity Updater issue?-Updater Issues

    Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained

    Comcast or Cox ISP User?-Comcast XFinity and Cox Users

    Have a suggestion?-Feature Request

  3. #3
    Ok, sounds like I can just ignore it in my case then. Thanks.

  4. #4
    If you look in the ActionsManager.total function that's used by many of the rulesets built on CoreRPG, it uses value, if available, and falls back to result. In the future, as I try to bring the new dice features slowly into CoreRPG, that specific implementation will become more important for different damage rolls. However, in many systems (such as D&D), it essentially should always be the same.

    Regards,
    JPG

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
  •  
Fantasy Grounds Merchandise

Log in

Log in