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.

Published 1 day ago
StatusReleased
CategoryAssets
AuthorVR00D
TagsDice, Godot, No AI, sourcecode

Download

Download NowName your own price

Click download now to get access to the following files:

DiceRoller.gd 1.8 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.