DICE PACKS BUNDLE
  1. #1

    check for success in throwDice()

    Hi
    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.

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

Log in

Log in