Oh gosh people are viewing this all of a sudden~ I'm hoping to work on a v.3.0 at some point, but who knows if I ever get the motivation to do so. Those who plan to make actual use of this will want to read the stuff below, cause I'm too lazy to put in any in-game instructions. This will be easily understood by people who are familiar with dice terms in TTRPGs such as Dungeons and Dragons. Input a dice expression for the system to roll for you. You first input the number of dice, then "d", then the die type (number of sides the die has), and then, if any, the modifier, which can be plus or minus. Note that if you're rolling just one die, you do not need to input "1d", you just need to input "d". Examples include... - d4 - 2d8+6 - 1d20-1 You can go big! - 150d85+1500 - 230d120-2250 - 830d1600-15000 Another new feature in this updated Dice System is you are able to see what dice expressions others used to roll. I added this feature because I expect I (and hopefully others) will be using this for RP studios on Scratch, and since modifiers are now a thing, this is to help make sure people are telling the truth with their rolls ;) Basically, just copy a Dice Expression code from the Cloud Data, and paste it into the input box within the project. Should give you the expression in the Result box. You can also hit enter with nothing in the input box to show your history of rolls; displaying all of the rolls you have made. And this is useful for the final feature; you can input a slash / and then a number after it, identical to the item number of an expression you wish to reroll present in your history. Example; if my third previously roll was 8d12+15, that'd mean it is in item 3 on my History log. I don't want to have to type the whole expression again, so I'll just type in "/3" and then *BOOM* 8d12+15 has been rolled again! Drats, I typed the whole expression again. If you encounter any bugs or glitches, please let me know, and be as detailed as you can with it, like what happened, how did it happen, what were you doing, when and where did it happen, etc. Hopefully, there won't be any, however. Wow, did you read all of this? Congrats :) Leave a love and favorite... please? Oh, feel welcome to criticize me on this, I welcome feedback that helps me improve :)
Thanks to Dungeons and Dragons for existing :) All code by me. Thanks to @Hi-I-am-Dovahnok for being the tester, as in, trying to break this project and reporting it to me so I can improve it ;) Changelog ------------------------------------------------------- ~ August 23, 2021 - Made it so that it returns an error if Infinity is inputted for one of the numbers (otherwise it lags... intensively), shoutout to @CrepperCode4Ever and @polkmnq6 for bringing this to my attention ~ March 11, 2020 - Fixed a lil bug with rolling d0's (though why I bothered, I don't know) ~ July 30, 2019 - Minor change to thumbnail ~ July 12, 2019 - Added even more checks so that it displays error if your dice expression contains any characters other than "d+-1234567890" ~ July 8, 2019 - Added more checks so that when you load a dice expression, if it ends up as something incorrect (i.e. 3d6+23d6+2), it'll display ERROR instead of the dice expression. ~ July 6, 2019 (20 hours later) - Minor change so that your dice expressions get recorded to the top of the History list, instead of the bottom, so you always see the most recent ones first. ~ July 6, 2019 - Complete revamp and upgrades, here's the list; *** Changed up how the program works (I did say complete revamp) *** Added the ability to use modifiers *** Added more safety guards to prevent corrupted results from getting recorded in cloud *** Added cloud for recording dice expressions, so people can check what dice expression others used to roll (since modifiers are now available, this is present to prevent cheating for use of RP studios like D&D) ~ June 11, 2019 - Made variables and lists hide when you click the stop sign (yeah, really small change, just really particular xD) ~ May 20, 2019 - Released! #dice #die #roll #random #dnd #rpg #game #system #d4 #d6 #d8 #d10 #d12 #d20 #modifier #modifiers #wotc #dungeons #dragons #5e #5 #e5 #sword #scratch #play #system