
Dice Functions for Ink
Dice. Everyone's favourite physical randomness generator. I love dice and how they can make mechanics easy to grok but still be very versatile. I made these functions for use in my Ink projects but they can be plugged into anyone's Ink project easily using the INCLUDE command to link the file.
The functions build up from basic building blocks to more complicated systems with out dictating how you have to use them.
They go from rolling 1 six-sided dice to rolling X number of Y-sided dice against a target number of Z. And throw in M modifiers. There are functions for single successes in a pool of dice, or a total success. Or even counting the number of individual successes in a pool - for example you roll 10 d6 attack dice, how many come up 6?
The demo above is also a tutorial and is made with Atrament Web UI.
In addition this set up can show dice faces. You'll need Atrament to use those functions and for clarity they are in a separate file. Atrament is a versatile web wrapper for ink games. Find it at github.com/technix/atrament-web-ui
| Status | Released |
| Category | Assets |
| Author | Jon Keevy |
| Tags | Dice, dice-roller, functions, ink, Text based |
Download
Click download now to get access to the following files:

Comments
Log in with itch.io to leave a comment.
Hello Jon, thanks for creating this! Do I need the include file FUNC_Dice_Atrament.ink? It is not included in the downloads.
Hi JJ, Not including it was an oversight, but the functions work with only the Func_dice file. The Atrament file adds images if you're using the atrament framework - I also have more functions on my git page, but be warned they are not all in as good shape as the dice functions https://github.com/Jonkeevy/INK-FUNCTION-LIBRARY
Thanks for this, Jon! I am using Atrament so I downloaded the missing file from your github. This is exactly what I need for my game.
Rad - I look forward to seeing what you create!
The functions are plug-and-play, so the problem lies with my explanations. I'll work on an update with clearer instructions.