The Campaign Builder's Guild

The Archives => The Cogs (Archived) => Topic started by: Lmns Crn on November 18, 2010, 05:06:03 PM

Title: [Dumthread] Dice Rolling Testing Thread
Post by: Lmns Crn on November 18, 2010, 05:06:03 PM
Don't mind me, I'm just rolling some dice.
Quote from: the hideous way[dice]3+4d3-8[/dice]
 [dice]3+4d3-8[/dice]
 [dice]3+4d3-8[/dice]
Edited. Aditya'd.
Title: [Dumthread] Dice Rolling Testing Thread
Post by: Lmns Crn on November 18, 2010, 05:21:51 PM
I think it's pretty neat that the dice results aren't shown in the post preview, and are kept intact after the post is edited. How do they do that?
Title: [Dumthread] Dice Rolling Testing Thread
Post by: brainface on November 18, 2010, 05:36:06 PM
They use the timestamp of the post submission as (not edit timestamp!) as part of the random seed.

During the preview pane, that info is just never displayed or sent to the user's computer.

There's a couple ways to game it (there has to be without disabling editing), but they should generally be awkward and obvious.