DiceRoller.gd
A downloadable Script
Download NowName your own price
A short utility script that handles dice rolling logic in Godot.
DiceRoller.gd doesn't need to be added as an Autoload or added to the scene tree. Since it inherits from RefCounted and utilizes static functions, it can be called from anywhere in your project at anytime while still being lightweight.
To use:
Add the script to your project.
In any script that you need a dice result, call `DiceRoller.method_name()`
Examples:
```
var dice_result = DiceRoller.roll_1d6()
var attribute_score = DiceRoller.roll_4d6_drop_the_lowest()
```
Free-to-use in your project. Credit not necessary, but appreciated.
Download
Download NowName your own price
Click download now to get access to the following files:
DiceRoller.gd 1.8 kB
Development log
- DiceRoller.gd Godot Utility Script1 day ago

Leave a comment
Log in with itch.io to leave a comment.