• Dice Roller in Messages?

    From StevetheNPC@21:1/190 to All on Sat Mar 7 02:51:24 2020
    Hi all! I've been thinking about setting up a new Mystic BBS for the purpose
    of Play by Post (PBP) Role Playing Games (RPGs). As rolling dice is normally
    a core part of most RPGs, I was wondering if anyone has attempted to add Dice Rolling functionality to the Mystic Message code? Usually, on most PBP
    forums, the poster will include a "dice code" or tag in their message text, which generally looks something like this:

    [roll 1d20+5]

    Then, when the message is submitted, the code will replace the tag with the results of a random number generator, something like:

    Steve rolled (17 + 5) = 22

    Or whatever the results are.

    Does anything like this already exist, or has anyone else tried to implement something like this?

    Cheers, Steve

    --- Mystic BBS v1.12 A45 2020/02/18 (Windows/64)
    * Origin: Abacus BBS (21:1/190)
  • From g00r00@21:1/108 to StevetheNPC on Sat Mar 7 18:29:26 2020
    [roll 1d20+5]

    Then, when the message is submitted, the code will replace the tag with the results of a random number generator, something like:

    Steve rolled (17 + 5) = 22

    Or whatever the results are.

    This is interesting and I do think it might be possible to do. I am pretty sure it hasn't been done though. Let me see what I can come up with.

    --- Mystic BBS v1.12 A46 2020/03/05 (Windows/64)
    * Origin: Sector 7 (21:1/108)
  • From Captain Obvious@21:1/157 to StevetheNPC on Sun Mar 8 09:59:58 2020
    On 06 Mar 2020, StevetheNPC said the following...

    is normally a core part of most RPGs, I was wondering if anyone has attempted to add Dice Rolling functionality to the Mystic Message code? Usually, on most PBP forums, the poster will include a "dice code" or

    Not sure how we could get it to work in messages but the actual dice rolling could be implemented in Mystic using Python. There are a few examples of dice rolling python scripts around the web.

    https://github.com/ThePlasmaRailgun/py-rolldice

    http://pythonfiddle.com/rpg-dice-roller/

    -=>Richard Miles<=-
    -=>Captain Obvious<=-
    -=>bbs.shadowscope.com<=-

    --- Mystic BBS v1.12 A46 2020/03/04 (Windows/32)
    * Origin: Shadowscope BBS | bbs.shadowscope.com | Temple, GA (21:1/157)
  • From Alpha@21:4/158 to StevetheNPC on Mon Mar 9 07:49:41 2020
    Then, when the message is submitted, the code will replace the tag with the results of a random number generator, something like:

    This is a pretty cool idea.

    |08.|07..|15.. |11Alpha |07- |11Card & Claw BBS
    |08.|07..|15.. |03fsxNet AgoraNet GameNet SciNet Fidonet
    |08.|07..|15.. |05Doorparty! |07/ |05Local Doors |07/ |05Board Game Discussion |08.|07..|15.. |13Join |07@ |13cardandclaw.com|07:|138888

    --- Mystic BBS v1.12 A46 2020/03/07 (Linux/64)
    * Origin: Card & Claw BBS | Analog Gaming: Board Games, RPGs (21:4/158)
  • From StevetheNPC@21:1/190 to Alpha on Mon Mar 16 09:27:26 2020
    On 09 Mar 2020, Alpha said the following...
    This is a pretty cool idea.

    It would be pretty handy for message based roleplaying. The tricky part is:
    how do you keep someone from editing a message after the dice tag (eg.
    [1d20]) has been replaced with a random number (eg. "Steve rolled [1d20] = 19"), in an attempt to re-roll the dice, hoping for a better result? Or, how
    do you prevent them from editing the message and just inserting fake results?

    I've seen some forum-based dice rollers that either add a warning, i.e. "Warning! This message has been edited by...", or do not allow editing after the message has been posted. There might be other ways to resolve this, like storing the actual results of the dice roll somewhere else, and just pointing to them. *shrugs*

    Even just a simple text replacement function would be fine, and then you just have to trust people to not cheat.

    --- Mystic BBS v1.12 A45 2020/02/18 (Windows/64)
    * Origin: Abacus BBS (21:1/190)