Author Topic: Spoilers & dice roller enabled for your forum games!  (Read 10195 times)

Crafty_Alex

  • Crafty Staff
  • Control
  • *****
  • Posts: 3518
  • Damned if I do, damned if I don't.
    • View Profile
Spoilers & dice roller enabled for your forum games!
« on: July 20, 2007, 11:20:44 AM »
Hey gang! By popular request, we have added a Spoiler Tag module to the forums for your games. To use a spoiler, use the following formatting:

Code: [Select]
* [spoiler] Drops spoiled text under a dynamic link called "Spoiler" in the post, which opens when you click it.
* [spoiler="title"] Drops spoiled text under a dynamic link called "Spoiler: Title" in the post, which opens when you click it.
* [/spoiler] closes the spoiled text.

The spoiler="title" tag is quite useful if you want to drop spoiler text for particular players or label your spoilers as Out of Character info or provide notations. Good gaming!



We have also installed a dice roller! You can find the mod here with full instructions. If that site is for some reason down, here's the full text from that post.

This mod allows users to roll dice. They can use the preview function to preview dice rolls to make sure they have it right for what they want, but once they press Post, the dice rolls are embedded in the post, meaning that the only way they can change is if the post is edited, but a warning is issued if that is attempted.

It starts from a [roll] tag, and outputs a blockquote tag (implemented just for the mod) - trying to use the blockquote tag outside of [roll] circumstances (such as quoting the post, or better, editing the post) generates a visible warning.

There are a variety of options you can have inside the roll tag (in each instance, replace the vertical lines with open and close brackets):

|roll|1d6|/roll| - rolls 1 6-sided dice.
Might result in:
Quote
Rolled 1d6 : 2, total 2

|roll|2d12+5|/roll| - roll 2 12-sided dice and add 5 to the result
Might result in:
Quote
Rolled 2d12+5 : 6, 11 + 5, total 22

|roll|2d20^10|/roll| - roll 2 20-sided dice, re-rolling any result necessary so that the dice rolls are greater than 10.
Quote
Rolled 2d20^10 : 3 8 10 3 17, 2 10 9 10 14, total 31

|roll|2d20v10|/roll| - roll 2 20-sided dice, re-rolling any result necessary so that the dice rolls are less than 10.
Quote
Rolled 2d20v10 : 11 3, 3, total 6

|roll|2d20<10|/roll| - roll 2 20-sided dice, discarding any result where the roll was not less than 10.
Quote
Rolled 2d20<10 : 4, 20, total 4

|roll|2d20>10|/roll| - roll 2 20-sided dice, discarding any result where the roll was not greater than 10.
Quote
Rolled 2d20>10 : 9, 10

Normally it will add the word 'Rolled' in front - you can customise this. For example, a spell that does some serious damage in a game:
|roll|{Freezing} 1d10 {Fire} 1d20|/roll|
Quote
Freezing 1d10 : 1, total 1
Fire 1d20 : 2, total 2

You can also nest the requirements, with the proviso of stating the things as they are in order here.
|roll|{Uberdamage} 15d100+10^10v90<80>20|/roll| - 15 100-sided dice, adding 10 to the result, rerolling anything 10 or less, rerolling anything 90 or higher, and if after that, you have values 20 or less, or 80 or higher, they get dropped.
Quote
Uberdamage 15d100+10^10v90<80>20 : 82, 7 61, 3 36, 59, 30, 86, 14, 42, 70, 22, 99 58, 100 73, 46, 93 1 91 42, 12 + 10, total 549

Lastly you can also have an iterator at the end:
|roll|2d6x3|/roll| - roll 2d6 3 times and display the results overall
Quote
Rolled 2d6 : 6, 3, total 9
Rolled 2d6 : 1, 4, total 5
Rolled 2d6 : 1, 5, total 6

BBcode is not supported anywhere inside the [roll] tag.

Note I haven't provided a help file in the script, but generally this is going to be of limited use and for the forums it will be useful, they will likely want to explain it better to their users anyway.

(There is, as of 1.3, a button to click as well as RC2 support)

There are also limitations to prevent abuse; the most dice that can be used at once is 20, and the highest value of dice is 1000-sided.
« Last Edit: March 20, 2017, 01:47:46 AM by Crafty_Pat »
"Alex doesn't feel anything. He's more word processor than man anymore." - Krensky

"Simplicity is the ultimate sophistication" - Leonardo da Vinci

A reminder.

Alex Flagg
Crafty Games

spinningdice

  • Control
  • ******
  • Posts: 1455
  • The power of the Dice compels you!
    • View Profile
Re: Spoilers enabled for your forum games!
« Reply #1 on: July 20, 2007, 12:09:43 PM »
Ahh, I thought it was working already - I wondered what I as doing wrong.
Spoiler: testing • show

Oooooh


EDIT: heh, does help if I actually read the instructions too.

Crafty_Alex

  • Crafty Staff
  • Control
  • *****
  • Posts: 3518
  • Damned if I do, damned if I don't.
    • View Profile
Re: Spoilers enabled for your forum games!
« Reply #2 on: July 20, 2007, 03:00:44 PM »
It was working, but I was reminded I should probably include a note for players here in the forum we installed the module for :)
"Alex doesn't feel anything. He's more word processor than man anymore." - Krensky

"Simplicity is the ultimate sophistication" - Leonardo da Vinci

A reminder.

Alex Flagg
Crafty Games

Antilles

  • Mastermind
  • Control
  • *****
  • Posts: 4002
  • Do I look like a people person?
    • View Profile
Re: Spoilers enabled for your forum games!
« Reply #3 on: July 20, 2007, 05:25:19 PM »
Now, this is just nitpicking, but... any chance you could change it from blue text link to an actual button? Most other forums use buttons to open/close spoiler boxes, but if you really need an example, check out the ones on EnWorld.
"After all is said and done, more is said than done."
- Aesop
Mortality clarified in a single strike!

Crafty_Alex

  • Crafty Staff
  • Control
  • *****
  • Posts: 3518
  • Damned if I do, damned if I don't.
    • View Profile
Re: Spoilers enabled for your forum games!
« Reply #4 on: July 20, 2007, 05:53:15 PM »
Again, no, because I'd have to to hack the editor as far as I can tell, which is outside my skillset. Sorry :(
"Alex doesn't feel anything. He's more word processor than man anymore." - Krensky

"Simplicity is the ultimate sophistication" - Leonardo da Vinci

A reminder.

Alex Flagg
Crafty Games

spinningdice

  • Control
  • ******
  • Posts: 1455
  • The power of the Dice compels you!
    • View Profile
Re: Spoilers enabled for your forum games!
« Reply #5 on: July 21, 2007, 06:55:30 AM »
I'm sure I'm going to keep typing Sblock rather than Spolier, since the only other place I've used spoilertags is ENWorld.

Bubbalin

  • Jr. Agent
  • **
  • Posts: 77
    • View Profile
Re: Spoilers enabled for your forum games!
« Reply #6 on: July 24, 2007, 10:58:15 AM »
Again, no, because I'd have to to hack the editor as far as I can tell, which is outside my skillset. Sorry :(

So put more ranks in it next time you level up! :P

Crafty_Alex

  • Crafty Staff
  • Control
  • *****
  • Posts: 3518
  • Damned if I do, damned if I don't.
    • View Profile
Re: Spoilers enabled for your forum games!
« Reply #7 on: July 24, 2007, 01:49:48 PM »
So put more ranks in it next time you level up! :P

Computers is a cross-class skill for me, and my Intelligence modifier is not so good ;)
"Alex doesn't feel anything. He's more word processor than man anymore." - Krensky

"Simplicity is the ultimate sophistication" - Leonardo da Vinci

A reminder.

Alex Flagg
Crafty Games

Crafty_Pat

  • Crafty Staff
  • Control
  • *****
  • Posts: 9862
  • We have all the time in the world.
    • View Profile
    • Crafty Games
Re: Spoilers enabled for your forum games!
« Reply #8 on: July 24, 2007, 02:20:29 PM »
So put more ranks in it next time you level up! :P

Computers is a cross-class skill for me, and my Intelligence modifier is not so good ;)

His Wisdom's kinda shaky, too, and he's pretty frail, but his Charisma's pretty sweet.

...

What? You thought we kept him around for his dead lifting and juggling ability?
Patrick Kapera
Crafty Games

UPDATES/PRESS INFO
Newsletter: http://bit.ly/14FJIw7
Facebook: www.facebook.com/craftygames
Google Plus: https://plus.google.com/+Crafty-Games/
Twitter: www.twitter.com/Crafty_Games
YouTube: www.youtube.com/craftyhomeoffice

In game terms, reality is broken.

TheAuldGrump

  • Control
  • ******
  • Posts: 3417
  • Because The Cat Told Me To...
    • View Profile
Re: Spoilers enabled for your forum games!
« Reply #9 on: August 25, 2007, 12:04:31 AM »
I like the fact that the spoiler tag works with images as well as text - not always the case. :)

The Auld Grump
I don't know how the story ends...
But I do know what happens next.

Girlfriday

  • Operative
  • ****
  • Posts: 461
  • Proud owner of 2 beautiful sons.
    • View Profile
Re: Spoilers enabled for your forum games!
« Reply #10 on: May 09, 2010, 10:47:06 PM »
So put more ranks in it next time you level up! :P

Computers is a cross-class skill for me, and my Intelligence modifier is not so good ;)

His Wisdom's kinda shaky, too, and he's pretty frail, but his Charisma's pretty sweet.

...

What? You thought we kept him around for his dead lifting and juggling ability?

He could have been your 'Red shirt' :)

Catodon

  • Control
  • ******
  • Posts: 1948
  • AKA: Coronoides
    • View Profile
    • Gulliver's Trading Company RPG
Re: Spoilers enabled for your forum games!
« Reply #11 on: August 21, 2010, 04:56:41 AM »
THe internet is a cross-class skill for me. When I went to high school I saw a micro-bee once. Have cut and pasted the first post into a word document. (others in my pbp can breath a sigh of relief)
"I just do eyes"
Author of Gulliver's Trading Company and the map of the world of Gullivers travels:
http://www.scribd.com/doc/84956575/Gullivers-Trading-Co-Grub
http://browse.deviantart.com/#/art/Gulliver-s-Travels-World-Map-294804331?hf=1
Also check out RPG Review:
http://rpgreview.net