Die Roller Request: D616
I'm not a tester, but I used to be a programmer
Assuming each game system that has a custom die roller here is a separate program, this one would be 11 lines of code. The choice of picking the Marvel MRPG system from the main menu takes care of "Only when it's this system" as it does for all such other choices already. That bit of programing was done years ago. I'm pretty sure it's foolproof at this point.
Again, the way the die roller and the special game convention options on it seem to work already makes any worry about breaking the die roller pure fiction. My (informed)guess is that each and every one is a different sub program, independent of the main program. Worst case is that they get this special option wrong slightly, the first time.
And here's a flow chart to show how simple it is, and to avoid just that:
--
-First 3 lines: The generators for the 3d6. Call the variables Die1, Die2, Die3.
-4th line: the total. Call the variable Total. A bit of arithmetic that adds the first 3 variables.
-An If/Then That determines if Die2 is a "1". If so, skip two lines of code.
-Not-a-one: Print/Display Total, and the 3 Die (as part of the Record Each Die feature)
-Skip the next 2 lines
-It's-a-0ne: Add 5 to Total
-Print/Display Total, Die1, 'M', Die3
-Let Die1 = 0
-Let Die2 = 0
-Let Die3 = 0
-Let Total = 0
--
This is a very careful and conservative flow chart that works for any language I've encountered, but I'm a dinosaur. I used to use Fortran, basic, Visual basic, C++, Assembler, and Cobol. Most of them are out of use these days. Oh, and HTML2, with Netscape enhancements. Frankly, I expect the much more modern skills of the site folks could do it in less.
Your perceived issues are nonexistent. All you've really done is imply the site developers know less about programming than some guy that hasn't programmed in 30 years and wasn't all that good when he did. Not really respectful, but then, I'm thinking you don't really realize just how simple it really is.
And, again, you could say that NONE of the special Die roll options are needed, and have the basic functions. So what? They've been implemented, which means "need" isn't a factor here, and never has been. So it's another non issue.
Edit: Apologies. In some languages you may need to define the 4 variables as whole number integers. That could add up to 4 lines, to 15 total.
This message was last edited by the user at 03:20, Tue 23 Apr.