Feature Request Dice roller for forum rpg games

Discussion in 'Suggestions & Bug Reports' started by ronishamay, Apr 8, 2017.

  1. ronishamay

    ronishamay Well-Known Member

    Joined:
    Dec 2, 2015
    Messages:
    105
    Likes Received:
    60
    Reading List:
    Link
    if you can add a random number genarator that can do 1d4 1d6 1d8 1d10 1d12 1d20 +x -x also xd4 xd6...
    we can use it to run community rpg games in the forum more easily...
    i know such a thing exists but not how hard it would be to implement on the NUF.
     
  2. AliceShiki

    AliceShiki 『Ms. Tree』『Magical Girl of Love and Justice』

    Joined:
    Apr 27, 2016
    Messages:
    24,650
    Likes Received:
    98,372
    Reading List:
    Link
    Well, I would certainly like it, but there is a simple problem with it... Tony doesn't really develop NUF, NU is the one that gets development, NUF is the forgotten child.

    If there is a plug-in that can easily implement it, then great, someone can try finding it (I honestly have no idea on how to find plug-ins for xenforo) and linking it on this thread.

    Otherwise... We would need to wait until Tony is in the mood for programming for NUF... So... A loooooong time, most likely.
     
  3. Tony

    Tony Moderator Staff Member

    Joined:
    Oct 20, 2015
    Messages:
    5,021
    Likes Received:
    44,798
    Reading List:
    Link
    A simple random number generator wouldn't take more than a few minutes. I just have so much going on that it's hard to drop things to work on even the simple things.

    I'll do it if I'm feeling bored working on my current projects.
     
    AliceShiki and ronishamay like this.
  4. Tony

    Tony Moderator Staff Member

    Joined:
    Oct 20, 2015
    Messages:
    5,021
    Likes Received:
    44,798
    Reading List:
    Link
    "!roll min,max" now works in the Community Games forum only. Min being The lowest value to return and max being the highest value to return.
     
    ronishamay, Qt and udonsage like this.
  5. AliceShiki

    AliceShiki 『Ms. Tree』『Magical Girl of Love and Justice』

    Joined:
    Apr 27, 2016
    Messages:
    24,650
    Likes Received:
    98,372
    Reading List:
    Link
    *grumbles about like limit*

    Thanks a bunch!!! \(^^)/
     
    Aiiee likes this.
  6. AliceShiki

    AliceShiki 『Ms. Tree』『Magical Girl of Love and Justice』

    Joined:
    Apr 27, 2016
    Messages:
    24,650
    Likes Received:
    98,372
    Reading List:
    Link
    Btw, just wanted to say that I tested it on both the games and roleplaying games, and it works just fine!

    ... I assume you had already tested it on a proxy server, but it doesn't hurt to give feedback!
     
  7. Tony

    Tony Moderator Staff Member

    Joined:
    Oct 20, 2015
    Messages:
    5,021
    Likes Received:
    44,798
    Reading List:
    Link
    I meant Community Games subforum and everything in it. I did test it out but only barely so thanks.
     
  8. trap

    trap 红烧排骨

    Joined:
    Apr 4, 2017
    Messages:
    104
    Likes Received:
    432
    Reading List:
    Link
    Thank you for this!

    Is there a way that @justabot can roll multiple dice at once?

    For instance:
    "!roll min,max,number_of_dice (defaulting to 1 if not specified)"
    "!roll 1,6,3" would return
    You rolled: 3, 5, 1
     
  9. Arcturus

    Arcturus Cat, Hidden Sith Lord

    Joined:
    Jan 1, 2016
    Messages:
    9,273
    Likes Received:
    17,815
    Reading List:
    Link
    Now for some natural 1 critical failures:
    [​IMG]
    [​IMG] [​IMG] [​IMG] [​IMG]
     
    Last edited by a moderator: Apr 14, 2017
  10. Tony

    Tony Moderator Staff Member

    Joined:
    Oct 20, 2015
    Messages:
    5,021
    Likes Received:
    44,798
    Reading List:
    Link
    trap likes this.
  11. AliceShiki

    AliceShiki 『Ms. Tree』『Magical Girl of Love and Justice』

    Joined:
    Apr 27, 2016
    Messages:
    24,650
    Likes Received:
    98,372
    Reading List:
    Link
    Some tests:

    So... Apparently:

    1) You can write something small before the roll and it will work.
    2) If the thing before the roll is too big, it will fail.
    3) If there is something after the roll, it will also fail.
    4) The 3rd number you put when rolling dice is 1 less than the amount of dices rolled.

    Edit: Forgot about those.

    5) Quoting the command of !roll also triggers the Bot-chan, though it will probably end up in a failed roll.
     
  12. Tony

    Tony Moderator Staff Member

    Joined:
    Oct 20, 2015
    Messages:
    5,021
    Likes Received:
    44,798
    Reading List:
    Link

    1. That wasn't planned but that's fine.
    2. The 'thing'? What is the 'thing'?
    3. That's intentional
    4. That's fixed
     
  13. AliceShiki

    AliceShiki 『Ms. Tree』『Magical Girl of Love and Justice』

    Joined:
    Apr 27, 2016
    Messages:
    24,650
    Likes Received:
    98,372
    Reading List:
    Link
    The thing is: "whatever you wrote before the !roll"

    So, the "Test" still allows the roll to work, but the "zghjkashctnawuiongvauiwrnygviausncklglcisercgnilrv" doesn't allow it.
    Thank you!

    Also, I added a new thing in an edit.
     
  14. Tony

    Tony Moderator Staff Member

    Joined:
    Oct 20, 2015
    Messages:
    5,021
    Likes Received:
    44,798
    Reading List:
    Link
    Oh then that's fine if it fails.
     
  15. Tony

    Tony Moderator Staff Member

    Joined:
    Oct 20, 2015
    Messages:
    5,021
    Likes Received:
    44,798
    Reading List:
    Link
    Yup, that's fine. People should just do a normal roll...
     
  16. AliceShiki

    AliceShiki 『Ms. Tree』『Magical Girl of Love and Justice』

    Joined:
    Apr 27, 2016
    Messages:
    24,650
    Likes Received:
    98,372
    Reading List:
    Link
    Testing:
    Yep! Fixed! Good job! \(^^)/
    ^^)7
     
  17. trap

    trap 红烧排骨

    Joined:
    Apr 4, 2017
    Messages:
    104
    Likes Received:
    432
    Reading List:
    Link
  18. AliceShiki

    AliceShiki 『Ms. Tree』『Magical Girl of Love and Justice』

    Joined:
    Apr 27, 2016
    Messages:
    24,650
    Likes Received:
    98,372
    Reading List:
    Link
    Credits to @Aca1814ina for finding this one.

    There is a typo on the text, it's written: "The maxmium dice you may use is 100.", should be "The maximum dice you may use is 100.".
     
  19. AliceShiki

    AliceShiki 『Ms. Tree』『Magical Girl of Love and Justice』

    Joined:
    Apr 27, 2016
    Messages:
    24,650
    Likes Received:
    98,372
    Reading List:
    Link
    @Tony
     
  20. Tony

    Tony Moderator Staff Member

    Joined:
    Oct 20, 2015
    Messages:
    5,021
    Likes Received:
    44,798
    Reading List:
    Link
    Fixed. Thanks
     
    udonsage and AliceShiki like this.