Jump to content
Aveyond Studios Community
Duffer123

Diceroll HeroActions based upon RogueSharp and using Dice Notation

Recommended Posts

@Ant,

I converted over RogueSharp to Unity C# some time ago.  It is under an open MIT License on Github.  Here is the link:- https://bitbucket.org/FaronBracy/roguesharp

Here are some links on Dice Notation:-

https://roguesharp.wordpress.com/2015/02/14/roguesharp-2-0-released-dice-notation/

https://en.wikipedia.org/wiki/Dice_notation

To be fair RogueSharp does a whole lot more than Dice Notation and parsing of strings to get integer results of 'diceroll strings' but...

I've created 5 HeroActions:-

- Get Integer (from Diceroll);     // calcs an integer result based on a string Diceroll ie. "3D8-4"  //

- Get Float (from Diceroll);     // calcs a float result based on a string Diceroll ie. "2D6-1" //

- Get Integer Minimum (from Diceroll);     // calcs an integer based on the lowest of X dicerolls ie. the highest result of "3D12+9" having been rolled X times //

- Get Integer Maximum (from Diceroll);     // calcs an integer based on the highest of X dicerolls ie. the lowest outcome of "2D10+2" having rolled that string X times //

- Get Integer Average (from Diceroll);     // calcs an integer based on the average of X dicerolls //

Attached is a Unity Package for it (including my conversion of RogueSharp).  There's probably far more that can be used in RogueSharp...

HeroActions - DiceRoll Actions - Based On RogueSharp - v1.0.unitypackage

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×