[ home / rules / faq ] [ overboard / sfw / alt ] [ leftypol / edu / labor / siberia / lgbt / latam / hobby / tech / games / anime / music / draw / AKM ] [ meta ] [ wiki / shop / tv / tiktok / twitter / patreon ] [ GET / ref / marx / booru ]

/meta/ - Ruthless criticism of all that exists (in leftypol.org)

Discussions, querries, feedback and complaints about the site and its administration.
Name
Options
Subject
Comment
Flag
File
Embed
Password(For file deletion.)

Not reporting is bourgeois


File: 1728397890341-0.png (84.26 KB, 417x312, dice.png)

File: 1728397890341-1.png (227.61 KB, 1000x1000, 22 edit.png)

 

Ultimatum to modocracy:
Add dice rolls.
We can't roll dice.
AND IT'S YOUR FAULT

>>35946
how exactly would this be done

>>35971
my 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.

>>36001
maybe 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

>>35946
I 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

>>36011
If 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.

>>35971
You put NdM+A in the email field, it's supported by the board.

There is no mail field

>>36068
>>36075
Wonder if I can inspect element it in

>>36076
dang I guess there's more to it than that

We demand dice rôlls by the royal warrant of her majesty Queen of siberia

>>36077
It needs to be enabled in the configurations or something.

>>36078
Konata supremacy

Inline dices are now available: 5 d 17 + -3 13 5 d 17 + -3 3 5 d 17 + -3 -3 5 d 17 + -3 5 5 d 17 + -3 10
Check the FAQ for the syntax: https://leftypol.org/faq.html

>>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

10 d 10 + 0 10 10 d 10 + 0 10 10 d 10 + 0 7 10 d 10 + 0 5 10 d 10 + 0 2 10 d 10 + 0 1 10 d 10 + 0 3 10 d 10 + 0 10 10 d 10 + 0 4 10 d 10 + 0 1

test dood fletected
24 d 2 + 0 2 24 d 2 + 0 2 24 d 2 + 0 0 24 d 2 + 0 2 24 d 2 + 0 0 24 d 2 + 0 0 24 d 2 + 0 1 24 d 2 + 0 2 24 d 2 + 0 0 24 d 2 + 0 1 24 d 2 + 0 0 24 d 2 + 0 2 24 d 2 + 0 2 24 d 2 + 0 2 24 d 2 + 0 0 24 d 2 + 0 0 24 d 2 + 0 1 24 d 2 + 0 1 24 d 2 + 0 2 24 d 2 + 0 1 24 d 2 + 0 2 24 d 2 + 0 2 24 d 2 + 0 2 24 d 2 + 0 0
test

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

1 d 10000 + 0 3518

24 d 1000 + 0 832 24 d 1000 + 0 47 24 d 1000 + 0 664 24 d 1000 + 0 630 24 d 1000 + 0 712 24 d 1000 + 0 800 24 d 1000 + 0 974 24 d 1000 + 0 154 24 d 1000 + 0 769 24 d 1000 + 0 478 24 d 1000 + 0 604 24 d 1000 + 0 348 24 d 1000 + 0 446 24 d 1000 + 0 768 24 d 1000 + 0 454 24 d 1000 + 0 208 24 d 1000 + 0 390 24 d 1000 + 0 183 24 d 1000 + 0 989 24 d 1000 + 0 41 24 d 1000 + 0 854 24 d 1000 + 0 832 24 d 1000 + 0 872 24 d 1000 + 0 405

>>36091
Fukken PHP can't decide if it's a high level language or C

>>36095
>z should be added to the total
It is https://gitlab.leftypol.org/leftypol/leftypol/-/merge_requests/2/diffs#55993353b962995469c29ad25e2b4203ffc6e18d_2789_2818
>"4d10+3 = X" is easier to understand
Alright
>and it shouldn't add text for every dice
>doesn't pollute the post with irrelevant per-dice messages
Wdym?

Dices updated
dice 1d8-3 = 2
dice 2d20 = 15 14

>>36103
it should be 2d20 = 29 (and it if were 2d20+1 = 30, not 31)
dice 2d100+1 = 45 89

>>36105
You mean that the total sum of all the dices should be displayed instead of the result of each roll?

>>36106
>>36105
Maybe 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.

>>36105
Should 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?

>>36108
to the sum of all rolls

>>36107
maybe, 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: dice 3d8-1 = 8

testing
dice 1d100 = 82

File: 1728982981460-0.png (294.51 KB, 1000x1000, 40 Grace lemonade.png)

File: 1728982981460-1.png (84.26 KB, 417x312, dice.png)

The modocracy did it!
They finally added dice!
dice 1d20 = 3
Going to play dice games with the anons, now.

Can I do smaller than 6? dice 1d6 = 6 dice 1d2 = 1 dice 1d3 = 3 dice 1d4 = 4 dice 1d5 = 2

dice 1d6+100 = 103

What happens if it's a negative number?
dice 8d6 = 31

>>36131
Huh? That was 8d-8, how'd it get 6?
here's a 1d-20: dice 1d6 = 6

>>36132
It seems to default to 6 for numbers it does not like. What about zero? dice 10d6 = 37

dice 10d9223372036854775807 = 5.0351060692637E+19

dice 1d6+10 = 12

dice 100d6 = 343

dice 100d9223372036854775807 = 4.3732409755913E+20

dice 1d10 = 6

dice 2d17+16 = 28

>>36134
>>36138
Should have been patched

>>36141
What does it do now? dice 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
>>36143
Eval-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

>>36146
Arithmetic expressions aren't turing complete. You'd need to use unix dc as a base for example.

>>36147
>Arithmetic expressions
? I said turing complete

>>36148
Then 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

[Return][Go to top] [Catalog] | [Home][Post a Reply]
Delete Post [ ]
[ home / rules / faq ] [ overboard / sfw / alt ] [ leftypol / edu / labor / siberia / lgbt / latam / hobby / tech / games / anime / music / draw / AKM ] [ meta ] [ wiki / shop / tv / tiktok / twitter / patreon ] [ GET / ref / marx / booru ]