REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cheat-Proof Dice Roller for Play-by-Post RPG
#1
Note: First off, before anyone suggests it, I have seen the mod in thread-8715 and unfortunately it is not at all what I need.

SYNOPSIS: I need a dice roller for my Pathfinder RPG Play-by-Post. The mod needs to be able to parse the #d# syntax (i.e. 1d20, 3d6) like a the mathematical operand it is, and it needs to be possible to sum the results of multiple rolls in the same statement (i.e. 1d8+4+2d6). In addition to this, it needs to be cheat proof.

Yes, I am willing to pay for this, and would like some estimates on a fair amount from anyone with the skills needed to make it a reality.

DETAILED REQUIREMENTS:
Input/Output: There are two different approaches I can see here. One is to add die rolls to posts thru inline BBCode (this being the method I currently use), the other would be to add a separate form for die rolls to the post window. For the inline method, please see this post on the Paizo Publishing forums (i.e. where I currently run my game).

Inline BBCode Example:
Current Syntax: [ooc]Longbow [dice]1d20+10 + 1 + 1d6 [/dice] point blank shot, mythic surge [/ooc]
Current Output: Longbow 1d20 + 10 + 1 + 1d6 ⇒ (13) + 10 + 1 + (4) = 28 point blank shot, mythic surge
Desired Syntax: [dice="Longbow"]1d20+10 + 1 {point blank shot} + 1d6 {mythic surge}[/dice]
Desired Output: Longbow 1d20 + 10 + 1 + 1d6 ⇒ (13) + 10 + 1 point blank shot + 4 mythic surge

Form Example:
The other method I can visualize is to display a second textarea strictly for die rolls below the main textarea on the new/edit post template. Here, the user could type in their rolls and modifiers as above, except all of the output would be kept within a spoiler that the users could not directly edit. If the user needed to go back and add/remove rolls from this post, the prior output would be saved and quoted similar to how some of the edit reason and version history mods work. It IS desireable for users to be able to edit a post to add/remove rolls since a particularly good attack result might indicate a critical hit (which would mean an additional roll to confirm the crit, and also more damage dice, etc.), of the GameMaster might want a player to make a roll that they forgot ("Hey, you were trying to sweet-talk that informant, but you forgot to make a Diplomacy check.")

Part of the reason why I would want a second textarea for dice rolls (rather than having dynamically-added form fields for individual rolls) is that there are MANY instances in which it is necessary to reuse prior rolls. For instance, when the group enters a new room, I'll roll Perception for everyone in the group by typing "prtp" and my ShortKeys app will output the roll syntax for everyone in the group without me needing to manually enter every last roll and modifier by hand.

Usage Examples: Note that on the forums I'm linking to, users cannot modify the color of text. Out-of-Character text is always blue, and die rolls are always green. I have already modded my own forums to remove the ability for users to change the color of their text, so forging rolls by emulating the output won't be an issue.

Multiple Die Rolls in the same attack: page=200#9963

Multiple NPCs attacking in the same post: 200#9968

Die Roll Syntax and Preview: [Image: 20130428040221%21Screenshot.png]

Now I'm not saying the implementation on Paizo is perfect, in fact there are a few things it can't do such as dropping lowest from a set, taking the better of two rolls, or any other such logic-based conditions. One improvement I personally would desire would be the ability to label individual bonuses so that they appear in the actual roll instead of having to manually note them in the out of character text (see my inline example above).

I have more requirements to add (for cheat prevention, and logic), but it's late and I need some rest.

Cheat Prevention: Follow are some additional consideration where legit usage and preventing cheating are concerned.
  • For any given roll, randomization must take place ONLY the first time that die roll is previewed or posted!
    Why? This is because player and the GM will first preview their rolls to get an idea if they have succeeded or failed on an attempt before narrating the results in the story. If a swing and a hit on the preview gets rerandomized as a miss when they click submit, edit, or preview subsequent times, then they'll never be able to have their writing match the actual rolls.
    How? I'd imagine that an extra table would need to be added to the database. Whenever a die roll is generated, it is permanently tracked there. Rolls would need to be keyed per-account per thread.
  • Once a particular type of roll is added, if the user attempts to remove and readd it later, or cancel their post and then start over that roll result should be remembered.
    Why? Let's say a character make a Diplomacy attempt to bribe an official and they I roll so badly that not only was the bribe unsuccessful, the official is now angry and liable to send them to jail. Players should not be able to cancel or delete the post and have that bad roll disappear. Similarly, they shouldn't be able to evade the bad roll by adding a 'junk' post (with an out-of-character question, or a joke or something) and then reattempting the roll in a subsequent post. Likewise, they shouldn't be able to go and make that post in a completely different thread and have the bad roll show up there instead.
    How? Like above, could be stored in a database table and keyed to a particular forum account on a per-thread basis. If they preview a d20, a d8, another d20 and a d6 roll and decide to omit the second d20 and the d6, the dice roller should remember what those results were the next time that use makes a roll with a d20 and a d6 in it.
Reply


Messages In This Thread
Cheat-Proof Dice Roller for Play-by-Post RPG - by Larathiel - May 12, 2013, 03:38 AM

Possibly Related Threads...
Thread Author Replies Views Last Post
  MyBB User Profile Post activity (No Plugin) Snow. 0 2,320 Nov 26, 2013, 03:21 PM
Last Post: Snow.
  YouTube Post Bit & Twitter brettuk 1 1,421 Apr 30, 2013, 07:09 AM
Last Post: Neil Patrick Harris
Big Grin Double Post into one post. TheSpeedyFeed 0 1,096 Mar 09, 2013, 09:21 PM
Last Post: TheSpeedyFeed
  [I can pay] Hide post until reply. TheMantis 0 975 Aug 28, 2012, 04:34 PM
Last Post: TheMantis
  Must Post Before Gaining Access To Forums Imtiax 1 1,570 Jul 18, 2012, 03:52 PM
Last Post: GuNeRkId

Forum Jump:


Users browsing this thread: 1 Guest(s)