[3.2][RC] Dice rolls

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
3Di
Former Team Member
Posts: 13688
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

[3.2][RC] Dice rolls

Post by 3Di » Fri Jan 18, 2019 12:21 am

: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 Studio
                      :label: 2.1.1
                       :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.

:bookmark_tabs: Github: https://github.com/phpBB-Studio/DiceRolls

But hey, why explain things when you can just test it out yourself!
:game_die: Live demo test page!
Last edited by 3Di on Mon Jun 10, 2019 1:35 am, edited 16 times in total.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
3Di
Former Team Member
Posts: 13688
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][DEV] Dice rolls

Post by 3Di » Fri Jan 18, 2019 12:21 am

Image

Image
Last edited by 3Di on Fri Jan 18, 2019 12:28 am, edited 1 time in total.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
3Di
Former Team Member
Posts: 13688
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][DEV] Dice rolls

Post by 3Di » Fri Jan 18, 2019 12:21 am

Image



Image
Last edited by 3Di on Fri Jan 18, 2019 12:31 am, edited 1 time in total.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
3Di
Former Team Member
Posts: 13688
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][DEV] Dice rolls

Post by 3Di » Fri Jan 18, 2019 12:29 am

Image


Image
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
3Di
Former Team Member
Posts: 13688
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][DEV] Dice rolls

Post by 3Di » Fri Jan 18, 2019 9:07 pm

ACP - Locations selector

Image

On a per Forum Basis

Image

UCP - Also Text Mode is available.

Image
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10932
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Re: [3.2][DEV] Dice rolls

Post by battye » Sun Jan 20, 2019 9:44 am

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

User avatar
Toxyy
Registered User
Posts: 695
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek
Contact:

Re: [3.2][DEV] Dice rolls

Post by Toxyy » Sun Jan 20, 2019 10:11 am

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!

My extensions:
[3.2][BETA] Anonymous Posts || [3.2][BETA] Sticky Ad || [3.2][RC] Show User Activity ||
[3.2][DEV] User Delete Topics

User avatar
mrgoldy
Jr. Extension Validator
Posts: 1045
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

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

Post by mrgoldy » Sun Jan 20, 2019 10:44 am

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

User avatar
3Di
Former Team Member
Posts: 13688
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Sun Jan 20, 2019 10:06 pm

Who doesn't appreciate compliments on things done with true dedication?
Thank you from the Studio. :)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

deScourge
Registered User
Posts: 6
Joined: Tue Feb 05, 2019 8:46 pm
Location: Chile
Name: Luis Faúndez
Contact:

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

Post by deScourge » Tue Feb 05, 2019 8:51 pm

Nice contribution, dude, it's exactly what I need for my Forum :)
I'm truly looking forward for your release! I could contribute you a Spanish translation then.

Lavarinth
Registered User
Posts: 28
Joined: Sat Jun 04, 2005 8:59 am

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

Post by Lavarinth » Thu Feb 21, 2019 10:30 pm

Been waiting forever for a dice roll return, hyped!
- - Lavarinth

User avatar
3Di
Former Team Member
Posts: 13688
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][DEV] Dice rolls

Post by 3Di » Sat Mar 02, 2019 3:43 am

First post updated.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

User avatar
3Di
Former Team Member
Posts: 13688
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][BETA] Dice rolls

Post by 3Di » Sat Mar 02, 2019 8:29 am

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%
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

locust shell
Registered User
Posts: 1
Joined: Fri Apr 26, 2019 1:11 am

Re: [3.2][BETA] Dice rolls

Post by locust shell » 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.

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
Former Team Member
Posts: 13688
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][BETA] Dice rolls

Post by 3Di » Fri Apr 26, 2019 9:14 pm

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.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

Post Reply

Return to “Extensions in Development”