
Although I think using a colon after the options would probably be fine.
Moderators: dorpond, trevor, Azhrei
Aria wrote:; is used by many scripting languages as EOL. It wold be a bade idea to use it.
Naryt wrote:My real question though, is a delimiter besides a space actually needed?
Full Bleed wrote:Naryt wrote:My real question though, is a delimiter besides a space actually needed?
If it's not needed, then my vote easily swings to not having one. But I also don't mind the colon.
Full Bleed wrote:Someone also mentioned longhand versions (i.e. "quiet" versus "q".) I'd like to see that be valid as well so that macros can be made pretty for the macro-challenged.
Mrugnak wrote:
I vote heavily for "longhand" versions, and making them all case insensitive. I work in the aforementioned bad language, and also perl relying heavily on regular expressions. I love regexes, but they're NOT exactly easily accessible, even by programmers. Don't end up in a situation where Q and q and Quiet could all be different commands.
TK wrote:To allow for expanded rolls, could there be a way to add an optional argument to the roll() function that rather than returning a number returns a string of the individual results? or would that mess things up.
I'm envisioning that 3d6 could end up with an output of 12 or "4+3+5" depending on weather expansion is requested or not.
Mrugnak wrote:Full Bleed wrote:Naryt wrote:My real question though, is a delimiter besides a space actually needed?
If it's not needed, then my vote easily swings to not having one. But I also don't mind the colon.
So if the eventual idea to "Stack" modifiers ever takes off, ESPECIALLY if we go with the optional full-word modifiers (please, do), making whitespace be a serious separator means that
[Quiet Explode 10d10]
or whatever will cause a program error, and instead we'll need to come up with another separator to stack modifiers together.
Code: Select all
[C(3, ", "): d20] -> "5, 12, 14"
[C(3, "--"): d20] -> "5--12--14"
Mr. Pokeylope wrote:Okay, I'm working on the new implementation. For reference, here's the revised summary:
[ ] gets the new tooltip behavior. Just shows the output of the roll, blue text, light grey background. When you mouse over it, you get a tooltip showing the full roll expansion.
{ } keeps its current behavior. Just the output, no additional decoration.
[x,y: ] is used to implement any additional roll behavior. Options are:
[P: ] - plain output. Does the same thing as { }. (long option: "plain")
[E: ] - expanded output. Same as b40 [ ] rolls. ("expanded")
[H: ] - the output is hidden completely. Replaces HTML comments for hiding calculations. ("hide", "hidden")
Mr. Pokeylope wrote:[C(n): ] - execute the roll n times and display each result (for AoE attacks, for example). n can be an expression/variable name. ("count")
All options are case insensitive.
Thes are options that I'd like to add eventually but that I'm not worrying about for now:
[S: ] - tooltip for the person making the roll, plain output with no tooltip for everyone else. ("self")
[D: ] - display individual die rolls. [D: 3d8 + 4] displays as "3d8 + 4 = (3 + 2 + 5) + 4 = 14" (long option is... uh, something)