Ultimatum to modocracy:
Add dice rolls.
We can't roll dice.
AND IT'S YOUR FAULT
>>35946how exactly would this be done
>>35971my guess would be check for some string like:
[rolldice:n]
and swap it for the output. So like
[rolldice:20] > "[name] rolled: 18"
Post digits: Am I a joke to you?
⚂⚄
You don't know how to roll dice? Cringe.
>>36001maybe it could be a poster writing [roll] and the php could random 1-6 twice and then write those out as the dice emoji and numbers
>>35946I checked and it doesn't seem to be compatible with our configuration. The email box is replaced by the options dropdown
>>36030!d6 would be easier
>>36011If it was implemented it should allow arbitrary XdY calls and use some kind of special text that you couldn't just type into the reply field.
>>35971You put NdM+A in the email field, it's supported by the board.
There is no mail field
>>36076dang I guess there's more to it than that
>>36077It needs to be enabled in the configurations or something.
>>36090>{"readyState":4,"responseText":"\nFatal error: Cannot redeclare get_or_default() (previously declared in /var/www/lp-prod/inc/functions.php:2799) in /var/www/lp-prod/inc/functions.php on line 2799\n{\"error\":\"Caught fatal error: Cannot redeclare get_or_default() (previously declared in \\/var\\/www\\/lp-prod\\/inc\\/functions.php:2799) in \\/var\\/www\\/lp-prod\\/inc\\/functions.php at line 2799\"}","status":200,"statusText":"parsererror"}well done
this isn't how dices usually work. z should be added to the total, and it shouldn't add text for every dice
"4d10+3 = X" is easier to understand and doesn't pollute the post with irrelevant per-dice messages
>>36091Fukken PHP can't decide if it's a high level language or C
>>36095>z should be added to the totalIt is
https://gitlab.leftypol.org/leftypol/leftypol/-/merge_requests/2/diffs#55993353b962995469c29ad25e2b4203ffc6e18d_2789_2818>"4d10+3 = X" is easier to understandAlright
>and it shouldn't add text for every dice>doesn't pollute the post with irrelevant per-dice messagesWdym?
Dices updated
1d8-3 = 2
2d20 = 15 14>>36103it should be 2d20 = 29 (and it if were 2d20+1 = 30, not 31)
2d100+1 = 45 89 >>36105You mean that the total sum of all the dices should be displayed instead of the result of each roll?
>>36106>>36105Maybe added in parenthesis after? Like:
2d100+1 = 45 89 (134)
Personally I think there's so many different reasons to roll more than one dice that just raw would be sufficient. Like say you wanna subtract one from the other, or compare the first from the second, or average them… I mean you could code in all the operations but it seems skeumorphic to it being dice to just have each number to do the math on by hand.
>>36105Should the Z component be summed to each dice roll which then get summed to form the result, or should it be added to the sum of all the rolls?
>>36108to the sum of all rolls
>>36107maybe, but in tabletop RPGs, the notation XdY+Z means "add Z to the sum of X dice rolls of Y faces"
for example, go to any dice roll calculator and 2d1+1 is always 3, not 4
Third dice update:
3d8-1 = 8testing
1d100 = 82The modocracy did it!
They finally added dice!
1d20 = 3Going to play dice games with the anons, now.
What happens if it's a negative number?
8d6 = 31>>36131Huh? That was 8d-8, how'd it get 6?
here's a 1d-20:
1d6 = 6 >>36132It seems to default to 6 for numbers it does not like. What about zero?
10d6 = 37 >>36134>>36138Should have been patched
>>36141What does it do now?
100d9223372036854775807+9223372036854775807 = 1343859443156779008 Wonder if it'll do math on parenthesis
1d(9+10): !1d(9+10)
>>36142>27 years of javashit>still no sane number types>>36143Eval-ing the arguments or embedding a context free language in the dice roll code don't seem like particularly good ideas and the usecases are marginal.
we do need turing complete dice rolls, actually
>>36146Arithmetic expressions aren't turing complete. You'd need to use unix dc as a base for example.
>>36147>Arithmetic expressions? I said turing complete
>>36148Then my suggestion for turing complete dice rolls is to reimplement dc in php but with r as a dice roll operator. I could do this in a few hours if i knew php.
Unique IPs: 17