Thread: check for success in throwDice()
-
December 28th, 2017, 22:56 #1
- Join Date
- Oct 2017
- Posts
- 6
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?
-
January 2nd, 2018, 07:42 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,688
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