gitlab riccisi/foundryvtt-dice-so-nice 4.0.0-beta2

latest releases: 5.2.4, 5.2.3, 5.2.2...
4 years ago

This new major release of Dice So Nice changes the module code extensively to allow more flexibility and features for system and module developers.
This improved flexibility is also available to users through a significant improvement to the dice management interface.

Major features

  • Users can now customize their dice independently of each other.
  • Users can save and load their customization settings through multiple save files.
  • They can also export and import their settings through JSON files.
  • Added two new special effects: "Play Custom Sound" and "Execute Macro".

Other changes

  • Redesigned the special effects interface to guide users better and take into account custom DiceTerm of systems. Multiple results can also be selected for a single line.
  • GMs can now mark a special effect as "Global" to automatically apply to every player.
  • Added a "Test Roll" button to preview your settings before saving.
  • Added a GM setting to disable the display of 3D dice on an initiative roll.

API changes

  • [BREAKING] Changed the "addColorset" function. There are now only two possible mode values: "default" and "preferred". This changes the behavior of the "default" mode that should now be set as "preferred". A "preferred" colorset will be enabled by default until a user chooses otherwise by modifying its settings. This breaking change was made to keep consistency with the other API parameters as it was a source of confusion and bugs for developers.
    Changed the "addSystem" function. There's now only two possible mode values: "default" and "preferred". To maintain compatibility, the old "force" and "exclusive" values will be interpreted as "preferred". A "preferred" system will be enabled by default until a user chooses otherwise by modifying its settings.
  • It is now possible to pass appearance settings to a DiceTerm. This allows a system to create a color die dynamically.
  • The showForRoll method can now take a new ChatSpeaker argument to allow the API to respect the "Hide for NPCs" parameter.
  • It is now possible to force the display of a special effect by passing it to a DiceTerm
  • Added a method "addTriggerSFX" that allows a system or a module to add a trigger type that can be selected by a user.
  • It is now possible to pass a special effect trigger to a DiceTerm. Used in combination with the "addTriggerSFX" method, this allows a system to trigger special effects on complex rolls. For example, it could trigger on the total result of 3d6 instead of being limited to the result of a single d6.

Bugfix

  • Fixed the bump maps on the D4.
  • Fixes the display of custom faces on the D4
  • Improves the display of dice in the settings when there are many types of dice.
  • Fixes interactivity with dice when windows are opened over the canvas.

Don't miss a new foundryvtt-dice-so-nice release

NewReleases is sending notifications on new releases.