Hi, I'm the current maintainer of the Cautious Gamemaster's Pack. One of the features of that module is the ability to hide rolls made by hidden tokens. This mostly works fine (apart from #295), but when Better Rolls is enabled, the Dice So Nice animations still display on other players' screens.
I tried catching the messageBetterRolls hook to modify the whisper data, but this whisper data is not passed to the Dice So Nice's showForRoll() call
CustomItemRoll.toMessage() (custom-roll.js line 837)...
It just calls Utils.getWhisperData() to get the whisper data from the roll mode drop down. However the whisper data was already calculated in CustomItemRoll.toMessage() and then possibly modified.
TL;DR - it would be nice if DiceCollection.flush() optionally used the already calculated whisper data, rather then calculating it again from scratch.
Hi, I'm the current maintainer of the Cautious Gamemaster's Pack. One of the features of that module is the ability to hide rolls made by hidden tokens. This mostly works fine (apart from #295), but when Better Rolls is enabled, the Dice So Nice animations still display on other players' screens.
I tried catching the
messageBetterRolls
hook to modify the whisper data, but this whisper data is not passed to the Dice So Nice'sshowForRoll()
callCustomItemRoll.toMessage()
(custom-roll.js line 837)...My hook callback is modifying the
chatData.whisper
property, but this is not passed todicePool.flush()
.DiceCollection.flush()
(dice-collection.js line 52)...It just calls
Utils.getWhisperData()
to get the whisper data from the roll mode drop down. However the whisper data was already calculated inCustomItemRoll.toMessage()
and then possibly modified.TL;DR - it would be nice if
DiceCollection.flush()
optionally used the already calculated whisper data, rather then calculating it again from scratch.