Fantasy Grounds Fridays Pre
  1. #1

    check for success in throwDice()

    I try to roll the attack roll, hitlocations and damage in one double click on the attack field in the combat manager. But as far as I can see the successes of the roll is calculated in control.throwDice(), so I can't see if the attack roll is a success, before I add the damage to the hitlocation.

    Is there a way, where I can adjust the thowDice() function, so I can get it to call a function for hitlocations and damage if the attack roll is successful?

  2. #2
    The Comm.throwDice API call will eventually call the chatwindow.onDiceLanded event.

    If you are building off of the CoreRPG ruleset as a layer, you’ll want to use the built in ActionsMaganer script calls by reviewing examples from 3.5E or 5E rulesets. (ActionAttack, ActionInit, etc.)

    If you’re building a ruleset from scratch, you can get handle the chatwindow.onDiceLanded event directly.


Thread Information

Users Browsing this Thread

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

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