[ABD] Dice rolls 🎲

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
Locked
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

[ABD] Dice rolls 🎲

Post by 3Di »

:game_die: Dice rolls :game_die:

Authors' note: Of the old MOD "Dicemod v0.8.8b" we kept only 2 skins, not a single line of that one has been used, everything has been rewritten from ground zero. An additional skin created in SVG has been added.

phpBB 3.3.0 compatibility: viewtopic.php?p=15395856#p15395856

             » phpBB Studio
                      :label: 2.1.2
                       :tools:        PHP >= 5.5
                               phpBB >= 3.2.5
and optional also this PR 5474
                                       Usage of glob()

Are you a :scroll: RPG enthousiast? A role playing master :prince:? Then we've got just the rolls for you!
We have created a comprehensive dice roller extension that is flawlessly integrated into phpBB's native system.
Your users can throw dice within your forums and let the story continue in new directions.
All this while you as an Administrator are in control.


We have taken all precautions to make sure users can not manipulate their dice rolls into the desired outcome.
A custom PHP class was created to make sure all calculations are done “behind the scenes”.
And an additional way to gain more control over the individual rolls is done by mimicing the native attachment system.
A preview of some of the possibilities:
                  d6 or 1dA 6 sided die
                            2d6Two 6 sided dice
                      1d6+4Roll a 6 sided dice and add 4 to the result
      2d10*4+1d20Roll two 10 sided dice multiply by four, and roll one 20 sided die
2d10+4+2d20-LRoll two 10 sided dice add four, and roll two 20 sided die, taking away the lowest of the two
                              d%A percentile die - equivalent to d100
          dF or dF.2Astandard fudge dice - 2 thirds of each symbol
                           dF.1A non-standard fudge dice - 1 positive, 1 negative, 4 blank
                          2d6!Exploding dice - two 6 sided die, rolling again for each roll of the maximum value
                        2d6!!Exploding & compounding dice - like exploding, but adding together into single roll
                       2d6!pPenetrating dice - like exploding, but subtract 1 from each consecutive roll
                     2d6!!pPenetrating & compounding dice - like exploding & compounding, but subtract 1 from each consecutive roll
                 2d6!>=4Exploding dice, but only if you roll a 4 or greater - Also usable with compounding and penetrating dice
                     2d6>4Dice pool - anything greater than a 4 is a success. Counts the number of successes as the total


:inbox_tray: Download: https://phpbbstudio.com/extensions/dice-rolls
Be sure to enable the Dice roll on a per forum basis after the installation.


But hey, why explain things when you can just test it out yourself!
:game_die: Live demo test page!
Last edited by 3Di on Tue Feb 22, 2022 9:42 pm, edited 25 times in total.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][DEV] Dice rolls

Post by 3Di »

Image

Image
Last edited by 3Di on Fri Jan 18, 2019 12:28 am, edited 1 time in total.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][DEV] Dice rolls

Post by 3Di »

Image



Image
Last edited by 3Di on Fri Jan 18, 2019 12:31 am, edited 1 time in total.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][DEV] Dice rolls

Post by 3Di »

Image


Image
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][DEV] Dice rolls

Post by 3Di »

ACP - Locations selector

Image

On a per Forum Basis

Image

UCP - Also Text Mode is available.

Image
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 11048
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Re: [3.2][DEV] Dice rolls

Post by battye »

3Di wrote: Fri Jan 18, 2019 12:21 am Image
I just wanted to say that I think that styling looks terrific! :)
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D
User avatar
Toxyy
Registered User
Posts: 938
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek
Contact:

Re: [3.2][DEV] Dice rolls

Post by Toxyy »

battye wrote: Sun Jan 20, 2019 9:44 am I just wanted to say that I think that styling looks terrific! :)
Yes it does :D

good job 3Di/phpbb studio this has been long coming.
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

Some of my extensions:
[3.3][BETA] Post Form Templates || [3.3][BETA] Anonymous Posts || [3.2][3.3][BETA] ACP Merge Child Forums || [3.2][BETA] Sticky Ad || [3.2][DEV] User Delete Topics || [3.3][DEV] Moderate While Searching || [3.3][RC] Short Number Twig Extension
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [3.2][DEV] [for 3.2.6] Dice rolls

Post by mrgoldy »

I am glad you like the ACP module.
Always a struggle to make something nice out of phpBB's default ACP :P
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][DEV] [for 3.2.6] Dice rolls

Post by 3Di »

Who doesn't appreciate compliments on things done with true dedication?
Thank you from the Studio. :)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Lavarinth
Registered User
Posts: 30
Joined: Sat Jun 04, 2005 8:59 am

Re: [3.2][DEV] [for 3.2.6] Dice rolls

Post by Lavarinth »

Been waiting forever for a dice roll return, hyped!
- - Lavarinth
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][DEV] Dice rolls

Post by 3Di »

First post updated.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][BETA] Dice rolls

Post by 3Di »

Okay, let's roll the dice. :)

First public version 2.0.0-beta released, see first post for the download link.
Be sure to enable the Dice roll on a per forum basis after the installation.


PHP 74.6% - HTML 16.9% - CSS 4.8% - JavaScript 3.7%
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
locust shell
Registered User
Posts: 2
Joined: Fri Apr 26, 2019 1:11 am

Re: [3.2][BETA] Dice rolls

Post by locust shell »

I can't stress too much how awesome it is to see this! Some friends have been wanting to experiment with newer games using custom dice sets, so the option to add other dice skins is especially great.

I've noticed something while playing around with it: when the BBCode to show an already existing roll is quoted or copied onto another page (doesn't seem to matter whether it's the next page within the same topic, or a different topic entirely), the roll results don't always display.

If there happens to be a "new" roll displayed on the topic page in question--shown inline in the post that originated the roll--then any other rolls quoted/copied on that page display perfectly.

But, if that's not the case (no "new" rolls are present on the page) it seems like the dice-display doesn't generate properly for the quoted rolls.

For example, instead of seeing
[4, 2, 4]+[6, 9] = 25
3d6 2d12: [ 4 2 4 ] + [ 6 9 ] = 25
you only see
3d6 2d12
I'm not quite savvy enough with javascript to tell whether there's an easy tweak for this. :oops:
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][BETA] Dice rolls

Post by 3Di »

locust shell wrote: Fri Apr 26, 2019 1:40 am I can't stress too much how awesome it is to see this! Some friends have been wanting to experiment with newer games using custom dice sets, so the option to add other dice skins is especially great.
Thank you!
Feel free to share some custom dice sets with us if you so like, you could send me a PM in case. ;)
locust shell wrote: Fri Apr 26, 2019 1:40 am I've noticed something while playing around with it: when the BBCode to show an already existing roll is quoted or copied onto another page (doesn't seem to matter whether it's the next page within the same topic, or a different topic entirely), the roll results don't always display.

If there happens to be a "new" roll displayed on the topic page in question--shown inline in the post that originated the roll--then any other rolls quoted/copied on that page display perfectly.

But, if that's not the case (no "new" rolls are present on the page) it seems like the dice-display doesn't generate properly for the quoted rolls.
Confirmed. Thanks for feedback.

Bug reported here https://github.com/phpBB-Studio/DiceRolls/issues/1
We will take care of it as soon as we can.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Venatus Vinco
Registered User
Posts: 37
Joined: Wed Sep 26, 2018 12:53 am

Re: [3.2][BETA] Dice rolls

Post by Venatus Vinco »

This is fantastic!

How close is it to coming out of beta?

VV
Locked

Return to “Abandoned Extensions”