RolePlay onLine RPoL Logo

, welcome to RPoL Development

12:47, 29th April 2024 (GMT+0)

Dice Roller Link.

Posted by Zag24
C-h Freese
member, 77 posts
Survive - Love - Live
Mon 14 Jun 2010
at 10:39
  • msg #3

Re: Dice Roller Link

Would there be a problem that each time you edit you get a new roll or could it be set not roll for an edit?
matthewfenn
member, 121 posts
www.nj-pbem.com
Northern Journey PBeM DM
Mon 14 Jun 2010
at 11:04
  • msg #4

Re: Dice Roller Link

Fantastic idea.  Especially for the character sheet - but I also like the idea of being able to post the pre-configured link into a post...  though I see more complications in this... for example, a generic "spot check" type link being posted by the DM won't work that well for multiple people, since of course they'll presumably all have different skill modifiers - which the dice roller knows nothing about.  Good enough if all you want is a standard roll from everyone.  I can see the link taking the user directly to the dice log and the results of their roll (since it should know WHO they are (hmmm... though in retrospect maybe not if they have multiple characters per player...  maybe this does need to be limited to just via the character sheet - which should be specific to 1 character).
Zag24
member, 314 posts
Mon 14 Jun 2010
at 13:33
  • msg #5

Re: Dice Roller Link

C-h Freese:
Would there be a problem that each time you edit you get a new roll or could it be set not roll for an edit?

The tag isn't the roll and doesn't represent one.  It is just a link to the dice roller with some fields pre-filled in.  It is something the GM would create and the players would click on.  My point is that editing doesn't matter.

It might also be used by a player in his own character sheet.  He could make all the things he might roll into links so that whenever he needs to use them, rather than the current process of {Check my character sheet to get the right numbers - switch to the dice roller - fill in those numbers - roll} the process becomes {Go to the character sheet - click the link - roll}
This message was last edited by the user at 13:34, Mon 14 June 2010.
LoreGuard
member, 196 posts
Mon 14 Jun 2010
at 17:53
  • msg #6

Re: Dice Roller Link

matthewfenn:
...
(hmmm... though in retrospect maybe not if they have multiple characters per player...  maybe this does need to be limited to just via the character sheet - which should be specific to 1 character).

I'd prefer it take you to the dice screen and you request the roll, could help accidental stray clicks making it look like you were trying to re-roll, or that you were going to do one thing, but got a bad roll so claimed you miss, clicked and tried another skill/weapon and re-rolled.  Two clicks although not guaranteeing no mistakes could be made, it at least severely reduces them.

So interesting idea.  potentially tied back to the dynamic sheet. having Value tags in the character sheet so if you specify <dice manual="1d20" bonus=spot,blindness>

Blindness would be +0 for undefined characters, but could otherwise might be defined as a standard penalty that could be applied.

In the character sheet you would have
Skill Ranks Attribute Total
Spot  +3    +2        <value name=spot>+5</value>

Nearly Blind  <value name=blindness>-4</value> to any chance to notice anything visible.

I'd suggest the valued tags be set up so browsers that support tooltips would display the name of the value if you hover over the value.
Zag24
member, 315 posts
Mon 14 Jun 2010
at 18:52
  • msg #7

Re: Dice Roller Link

While that is a great idea, it is also about 50 times harder to implement than a simple link.  The problem is that it means storage for all the defined attributes for each character, and looking those up as you traverse the link.  (Also consider that players may have more than one character, so it means selecting which character you meant when you followed the link.)

What I'm talking about is two pretty simple steps.
1.  Change the dice roller page to be able to initialize values that come in as arguments attached to the URL.
2.  Create a new tag that creates a link to the dice roller and appends the arguments on the URL.

No extra data storage, no other lookups, etc.
matthewfenn
member, 122 posts
www.nj-pbem.com
Northern Journey PBeM DM
Mon 14 Jun 2010
at 20:15
  • msg #8

Re: Dice Roller Link

Having followed the discussions, I think Zag has it right in 2 point summary.

I see the main functional use of this would be for DMs to simplify things for their players by building specific pre-programmed rolls into their character sheets for them...  I agree putting them into posts might make it easy to mis-click - but I would suggest that perhaps to counter that, the link could take them instead to a "pre-configured" dice roller (in a separate window?) but they still then would have to click on "roll" to actually make the roll happen...

Just a thought...

Personally, I'd prefer to have it jump to the dice roller with the roll already made myself though.
C-h Freese
member, 79 posts
Survive - Love - Live
Tue 15 Jun 2010
at 03:48
  • msg #9

Re: Dice Roller Link

  If I understand what is being said which I didn't before, the link takes you to the page with most or all filled out and ready to roll the 'Reason for Roll' lets the GM tell you what you are rolling for and the other items filled out as the GM wants.  The GM can leave off the bonuses letting each put their own in before they hit roll. or put them in if one chooses.
matthewfenn
member, 123 posts
www.nj-pbem.com
Northern Journey PBeM DM
Tue 15 Jun 2010
at 13:50
  • msg #10

Re: Dice Roller Link

I think the original idea was that the link takes you to the dice roller page with all the fields filled in and the dice actually rolled. Then, all you have to do is copy the results into your post...

My last post suggested a variation which simply took you to the dice roller page with all the fields filled in - and you would then have to edit as you saw fit, and THEN hit the roll dice button.  This was suggested to address the point made by LoreGuard that there may well be lots of "accidental" rolls otherwise.  Personally, I'd go for the first version.

I can see an entry in a character sheet that might look like this:

  SKILL NAME                    KEY   SKILL ABILITY RANKS  MISC.
                             ABILITY   MOD.   MOD.         MOD.


   Appraise¹                    INT     +2    = 2    + 0    + 0
   Balance¹                     DEX*    +3    = 3    + 0    + 0
X  Bluff¹                       CHA     +2    = 2    + 0    + 0
   Climb¹                       STR*    +0    = 0    + 0    + 0

SNIP

----------------------------------------------------------------------------
WEAPONS
NAME  : Masterwork Light Mace Click here to roll attack + Damage rolls
ATTK  : +8 [+3(BAB)+3(DEX)+1(Wpn Focus)+1(Masterwork)]
DMG   : 1d6
CRIT  : 20/x2
RANGE : n/a
WGHT  : 4.0 lb.
SIZE  : medium
TYPE  : Bludgeoning
COST  : 2gp
AMMO  : -
NOTES : Masterwork                                         



With the code looking something like this:



<b>  SKILL NAME                    KEY   SKILL ABILITY RANKS  MISC.
                             ABILITY   MOD.   MOD.         MOD.</b>

   Appraise¹                    INT     <a roll="1d20+2", reason="Appraise Roll">+2</a>    = 2    + 0    + 0
   Balance¹                     DEX*    <a roll="1d20+3", reason="Balance Roll">+3</a>    = 3    + 0    + 0
X  Bluff¹                       CHA     <a roll="1d20+2", reason="Bluff Roll">+2</a>    = 2    + 0    + 0
   Climb¹                       STR*    <a roll="1d20", reason="Climb Roll">+0</a>    = 0    + 0    + 0

SNIP

----------------------------------------------------------------------------
<Red><u><b>WEAPONS</b></u></Red>
NAME  : <Blue>Masterwork Light Mace</blue> Click <a roll="1d20+8,1d6", reason="Light  Mace Attack and Damage rolls">here</a> to roll attack + Damage rolls
ATTK  : <a roll="1d20+8", reason="Light Mace Attack roll">+8</a> [<i>+3(BAB)+3(DEX)+1(Wpn Focus)+1(Masterwork)</i>]
DMG   : <a roll="1d6", reason="Light Mace Damage roll">1d6</a>
CRIT  : 20/x2
RANGE : n/a
WGHT  : 4.0 lb.
SIZE  : medium
TYPE  : Bludgeoning
COST  : 2gp
AMMO  : -
NOTES : Masterwork




I would also like to think that a tool-tip could well come up over the link to say something like "ROLL DICE: Light Mace Attack and Damage rolls - 1d20+8,1d6" to warn the player of what clicking there will do...
This message was last edited by the user at 14:13, Tue 15 June 2010.
Zag24
member, 316 posts
Tue 15 Jun 2010
at 16:21
  • msg #11

Re: Dice Roller Link

matthewfenn:
I think the original idea was that the link takes you to the dice roller page with all the fields filled in and the dice actually rolled.

Umm, no.  The original idea was that the user would still have to hit the roll button.

In general, I wouldn't want it to automatically do the roll.  It becomes too likely to re-re-re-roll accidentally.  However, I wouldn't object to the tag including a keyword that causes the auto-roll behavior, as long as it isn't the default.  (I'm not sure how difficult that would be.)

I like your sample, though the tag would be "dice" rather than "a".  (Also, I would have made the skill name be the link, but obviously the feature would support either way.)
This message was last edited by the user at 16:24, Tue 15 June 2010.
Genghis the Hutt
member, 1803 posts
AKA Banaticus
Tue 15 Jun 2010
at 17:43
  • msg #12

Re: Dice Roller Link

I like this idea.  I think you'd possibly need some way to pass the name of the system to the diceroller, for games in which you're not simply rolling one die (like Shadowrun).
matthewfenn
member, 124 posts
www.nj-pbem.com
Northern Journey PBeM DM
Tue 15 Jun 2010
at 18:50
  • msg #13

Re: Dice Roller Link

The reason I put <a> as the tag is because it is similar to the <a href="www.rpol.net">Click me</a> sort of link - but of course any tag will do as long as the code behind it recognises it :-)
Genghis the Hutt
member, 1804 posts
AKA Banaticus
Tue 15 Jun 2010
at 20:33
  • msg #14

Re: Dice Roller Link

The dice roller page is a cgi page, so using an ordinary "a" link tag and sending the extra things as extra html link parameters then having the cgi parse the link would probably be easiest instead of trying to use a new HTML tag that would have to be custom created.  For instance...
<a href="http://rpol.net/usermodules/diceroller.cgi?gi=GameID&date=1276633481&system=d20&dice=d20+2,d20+4,2d6&reason=James_Bond">d20+2, d20+4, 2d6 for initiative, attack, and damage for James Bond</a>

You'd possibly need to check for invalid characters.

That link uses the following new parameters (in addition to the old gi and date parameters):
system (match string variables?  integer?)
dice (add it as though it were in the ? field)
reason (add it to the "reason for roll" field, truncating if necessary)
Zag24
member, 317 posts
Tue 15 Jun 2010
at 22:48
  • msg #15

Re: Dice Roller Link

Of course it becomes an A tag after it is evaluated, much the same way that a Red tag becomes a font tag with color="red".
C-h Freese
member, 83 posts
Survive - Love - Live
Sat 19 Jun 2010
at 03:01
  • msg #16

Re: Dice Roller Link

   If we are asking for custom fill-in with the link, what about custom results added to the normal results? To possibly speed up what is a slow part of play in combat "if <'#' then 'text' [maybe 'hit', ‘succeed’ or ‘fall on your head’] or >'#2' then 'text2' else 'text3' "- in whatever the correct verbiage is for the system to understand. That way the GM can not only get a roll but give a preliminary response.
jase
admin, 2511 posts
Cogito, ergo procuro.
Carpe stultus!
Sat 19 Jun 2010
at 05:20

Re: Dice Roller Link

You can actually already fill in the sheet with rolls to do.

<a href="/usermodules/diceroller.cgi?gi=[game_id]&man=[dice_to_roll]">Roll 2d6</a>

You can also add in all the other variables;
  • Set a system:  system=advant|artesia|wod1e|wod2e|wod2es|wod3e|wod3es|nwod|nwodcd|nwodcw|nwoda|ex|sh|sho|sh4e|
                            spooky|d6c|d6l|rm|fudge|rifts|1roll|sorc|hero|earth|target|tat|hackp|dead|deck52|deck54|coda|unisys|fmwerk|fullf
    (Hopefully you can guess what most of them stand for.)

  • Set the extra information for a system:  target=(target number, fumble range, step number, # of cards)

  • Drop/keep:  dok=dl|kh|dh|kl + drop=# of dice to drop or keep
    ('d' stands for drop, 'k' for keep, 'h' for highest, 'l' for lowest)

  • Reroll maxes:  maxes=yes

  • Reroll ones:  ones=yes

  • Record each dice:  record=yes

  • Unique dice:  unique=yes

  • Reason for roll information:  memo=[text]


Make sure there's an ampersand ('&') between each option.

e.g. To roll 1d20,1d8,1d6, recording each dice for game #12345 you'd have;

<a href="/usermodules/diceroller.cgi?gi=12345&man=1d20,1d8,1d6&record=yes">Roll attack and damage on flaming longsword</a>

When clicking on the link it will take you to the dice screen and ask to confirm the roll, loading in the information from the hyperlink.  If you have more than one character you'll need to select the character before clicking on "Roll The Dice".


Edit:  Updated to reflect the minor tweak I just hacked in to stop rolls immediately happening.
This message was last edited by admin at 09:11, Sat 19 June 2010.
Genghis the Hutt
member, 1815 posts
AKA Banaticus
Sat 19 Jun 2010
at 07:39
  • msg #18

Re: Dice Roller Link

Awesome, amazing!  Minor quibble, the usual Shadowrun abbreviation is SR instead of SH, could that be changed?

It's late tonight (in my time zone) but the next time I'm around here I'm going to start updating character sheets.  Thanks. :)
matthewfenn
member, 127 posts
www.nj-pbem.com
Northern Journey PBeM DM
Sat 19 Jun 2010
at 07:50
  • msg #19

Re: Dice Roller Link

Me too!   I have several players who have great difficulty figuring out what they should roll, so putting some pre-configured links into their character sheets will make it much easier for them/me!
stm
member, 33 posts
Sat 19 Jun 2010
at 09:07
  • msg #20

Re: Dice Roller Link

Why did you keep this secret? It should  be added to the help pages.
jase
admin, 2512 posts
Cogito, ergo procuro.
Carpe stultus!
Sat 19 Jun 2010
at 09:30

Re: Dice Roller Link

Because it's potentially very confusing and you can end up with links like;

<a href="/usermodules/diceroller.cgi?gi=6&count=6&dice=10&mod=5&dok=dl&drop=1&maxes=yes&ones=yes&record=yes&unique=yes&memo=testing 123">testing 123</a>

<a herf="/usermodules/diceroller.cgi?gi=6&man=6d10&maxes=yes&record=yes&target=8&system=target&memo=testing 456">testing 456</a>

I'd much rather make a nicer way to do it all, something like [dice=6d6 system=shadrowrun record comment=testing 789]

The variables I've supplied (above) are just ones the form uses, not necessarily making much sense to the end user, but if you want to muddle through what is available until I've made a nicer interface, then be my guest!
This message was last edited by admin at 09:30, Sat 19 June 2010.
Genghis the Hutt
member, 1817 posts
AKA Banaticus
Sat 19 Jun 2010
at 16:23
  • msg #22

Re: Dice Roller Link

I don't think the memo= part is working for the reason field, is it working for anyone else or is it just me?
Zag24
member, 320 posts
Sun 20 Jun 2010
at 01:25
  • msg #23

Re: Dice Roller Link

Way cool!  Thanks, jase!

One slight correction for anyone trying to use this:

You can't put a plus sign directly in a URL, since it will be converted to a space.  If you want to put, for instance,

man=d20+3,d20+6,2d6

then you have to change all plus signs to be %2b, so it will look like this

man=d20%2b3,d20%2b6,2d6
jazzman831
member, 432 posts
Mon 21 Jun 2010
at 01:42
  • msg #24

Re: Dice Roller Link

Hrm, are players able to use the <a> tag in their character sheets? I can get it to work as a GM, but as a player it is keeping the entire thing in plain text.
matthewfenn
member, 129 posts
www.nj-pbem.com
Northern Journey PBeM DM
Mon 21 Jun 2010
at 09:36
  • msg #25

Re: Dice Roller Link

What is the option for making it a "secret roll?"
stm
member, 36 posts
Mon 21 Jun 2010
at 10:43
  • msg #26

Re: Dice Roller Link

No, players can't use <a> tags. Maybe an exception could be added for internal links??

Use "secret=yes" for secret rolls. -- Actually, "secret=foo" works just as fine right now. ;)
matthewfenn
member, 130 posts
www.nj-pbem.com
Northern Journey PBeM DM
Mon 21 Jun 2010
at 11:15
  • msg #27

Re: Dice Roller Link

Hmmm... struggling to get this to work at the moment...  I can't get the memo (aka reason) to fill in.

Here is what I'm trying:
(Click <a href="/usermodules/diceroller.cgi?gi=11111&man=d20%2b7&secret=yes&memo=Fortitude_Saving_Throw">HERE</a> to roll)

Also, I read above that Jase hacked things so that the link wouldn't auto-roll - but instead take them to the dice roller with things filled in... what is the chance of an option similar to:  "&autoroll=yes" to allow the link to be configured to roll immediately - with the default being "no" of course!
This message was last edited by a moderator at 20:08, Mon 21 June 2010.
Sign In