RolePlay onLine RPoL Logo

, welcome to RPoL Development

10:10, 29th April 2024 (GMT+0)

Dice Roller Link.

Posted by Zag24
jazzman831
member, 433 posts
Mon 21 Jun 2010
at 15:14
  • msg #28

Re: Dice Roller Link

Well I guess these are all reasons why jase kept this a secret then!
Genghis the Hutt
member, 1818 posts
AKA Banaticus
Mon 21 Jun 2010
at 16:21
  • msg #29

Re: Dice Roller Link

I think no autoroll is good -- should help stop a flood of mistakes as people test the links they're making.  I'm glad that someone else can't get the memo thing to fill in a reason, for the past couple of days since I posted that it wasn't working for me I've thought it was something that I was doing wrong. ;)

Yeah, I can't post this on a character sheet either.  I've been posting in a regular post, previewing it then opening the link in a new window, then not actually making the post when I'm done, but I can't post the link on a character sheet.
matthewfenn
member, 131 posts
www.nj-pbem.com
Northern Journey PBeM DM
Mon 21 Jun 2010
at 16:30
  • msg #30

Re: Dice Roller Link

Once we understand how it works and feel comfortable in using it - even players will be able to put it on their character sheets - but just not as an <a href=""></a> type link.  Instead, they'll just have to have the ugly long url there as a link.
This message was last edited by the user at 16:31, Mon 21 June 2010.
jazzman831
member, 434 posts
Mon 21 Jun 2010
at 22:33
  • msg #31

Re: Dice Roller Link

It actually says "link to another game", so it's better than the whole URL... but not as good as being able to just make my +7 attack bonus a link.
jase
admin, 2513 posts
Cogito, ergo procuro.
Carpe stultus!
Tue 22 Jun 2010
at 22:34
  • msg #32

Re: Dice Roller Link

In reply to jazzman831 (msg #28):

Yeah... not quite ready for prime-time.

I've hacked in a little bit more, the memo should now work (oops, typo stopped that working) and players should now see the full pretty links just like a GM (previously anyone could edit in a full hyperlink, but only the GM would see it as a hyperlink).
jazzman831
member, 435 posts
Tue 22 Jun 2010
at 23:24
  • msg #33

Re: Dice Roller Link

Jase you are so awesome!!!! I'm now going to go and hyperlink just about everything.
jase
admin, 2514 posts
Cogito, ergo procuro.
Carpe stultus!
Wed 23 Jun 2010
at 01:14
  • msg #34

Re: Dice Roller Link

Ah yes, and if you want a + in your roll you need to use "%2b" instead, as a "+" in HTML is converted to a space.  You can also list each part of the roll separately as "count=6&dice=10&mod=5" (or whatever), but that only lets you have the one roll, not multiples.

And speaking of pluses, if you want a space in your memo, then either use + or %20.  E.g.  "memo=This+is%20a+memo" will give you a memo of "This is a memo".
matthewfenn
member, 133 posts
www.nj-pbem.com
Northern Journey PBeM DM
Wed 23 Jun 2010
at 10:37
  • msg #35

Re: Dice Roller Link

Thanks Jase for sorting the memo argument.  That works well now.

Am I right in saying there is a cn=charactername argument that can also be used?  If so, then I don't seem to be able to get it to work...

Here is an example of the link I'm using:
http://www.rpol.net/usermodules/diceroller.cgi?gi=000000cn=Ceely&man=d20%2b7&secret=yes&memo=Fortitude_Saving_Throw

It doesn't fill in the character name...  which shouldn't be a problem for my players, since they only have one character each, but as DM (or for any players who have more than one character), I have a choice of "Character"/"On behalf of" when filling in the dice roller, so it would be useful from my perspective not to have to then perform another couple of clicks to select the character as well when it should be possible to fill it in automatically...  I quite often roll dice for my players on their behalf... and being able to do it one/two clicks from their character sheet would be excellent.
This message was last edited by a moderator at 14:01, Wed 23 June 2010.
stm
member, 37 posts
Wed 23 Jun 2010
at 11:27
  • msg #36

Re: Dice Roller Link

Those options are called "rc=CharacterName" or "bo=CharacterName". Works like a charm!
jase
admin, 2515 posts
Cogito, ergo procuro.
Carpe stultus!
Wed 23 Jun 2010
at 15:15
  • msg #37

Re: Dice Roller Link

stm:
Those options are called "rc=CharacterName" or "bo=CharacterName". Works like a charm!

"rc" is if you want to roll as the character, "bo" is if you want to roll on behalf of.

FYI they'll be changing in the next version as characters will be identified via their unique ID from then on.
Genghis the Hutt
member, 1820 posts
AKA Banaticus
Thu 24 Jun 2010
at 06:15
  • msg #38

Re: Dice Roller Link

Will it be difficult to figure out what a character's ID is?
burlingk
member, 1212 posts
Meep
http://bit.ly/1kFywP
Thu 24 Jun 2010
at 11:30
  • msg #39

Re: Dice Roller Link

I imagine it will simply be a matter of clicking on their character information link, and looking at the URL it sends you to. :)
Genghis the Hutt
member, 1822 posts
AKA Banaticus
Fri 25 Jun 2010
at 08:06
  • msg #40

Re: Dice Roller Link

So, not on an iPhone?
Alhaja
member, 402 posts
Sun 25 Jul 2010
at 07:22
  • msg #41

Re: Dice Roller Link

This is awesome!

If the new character ids are like the game id, it will be visible on an iPhone.
matthewfenn
member, 158 posts
www.nj-pbem.com
Northern Journey PBeM DM
Sun 25 Jul 2010
at 15:56
  • msg #42

Re: Dice Roller Link

jase:
stm:
Those options are called "rc=CharacterName" or "bo=CharacterName". Works like a charm!

"rc" is if you want to roll as the character, "bo" is if you want to roll on behalf of.

FYI they'll be changing in the next version as characters will be identified via their unique ID from then on.


As long as I can edit a character sheet outside of rpol and do a find and replace to change the character name into an ID - I'll be fine with it :-)

I've already documented most of the characters I play and most of the players in my game with pre-configured dice rolls for them...
jase
admin, 2567 posts
Cogito, ergo procuro.
Carpe stultus!
Sat 15 Jan 2011
at 07:55
  • msg #43

Re: Dice Roller Link

I've implemented more of this on the alpha site.

Using the "dice" keyword, you can get the character sheets (and messages) to setup dice roller links.

A simple example of this is...

[dice=2d6]

Spaces separate keywords for the roller, so where you previously had ampersands (&) you now have spaces.  This then means that the memo field must have quotes around it so we know when it ends.

To use my previous example (message 17)

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

... will become ...

[dice=1d20,1d8,1d6 record=yes memo="Attack and damage on flaming longsword"]

This will create a hyperlink that will be displayed as:

Roll 1d20,1d8,1d6 (for Attack and damage on flaming longsword)


Links from a character sheet will automatically select the character the sheet is for and setup the roll for that character.  If the viewing person is the GM then it will setup a "On Behalf of" roll.

The system also knows what game you're in, so game id (gi=) is no longer needed.

Viewing from a message will not automatically select a character, though if you only have one character (as I'd expect with most people) then this will be a moot point.

All other parameters stay the same as previously listed.

Input welcome on the way this is currently developing.

Note I'm not using the "roll" keyword as I'm still contemplating using this for in-line rolls.
Digital Mastermind
member, 580 posts
9+ years of Rpol, where
has the time gone?
Sat 15 Jan 2011
at 08:56
  • msg #44

Re: Dice Roller Link

Code that express the dice roll attempts' description AND inputs actual dice rolls itself?  Nifty Jase.  Do dice rolls made in a thread via code record themselves to the dice roller log, and are dice roll results in message editable?
stm
member, 90 posts
Sat 15 Jan 2011
at 15:26
  • msg #45

Re: Dice Roller Link

This sounds nice. I think it will improve my RPoL experience a lot. Now the only thing I need is a history for character sheet edits and I can use this instead of an external Wiki for my characters. ;)

Anyway, a few notes: I think I already mentioned somewhere else that I prefer the <dice> syntax to the [dice] syntax. Easier to type, especially on European keyboards and the majority of RuBB tags already use it.

Could you add a option that specifies the text displayed on the sheet? This way, more aesthetically pleasing sheets could be created if

<b>Attacks</b>
Longsword [dice=1d20+4,1d8+2,1d20,1d8+2 record=yes memo="Attack,dmg,confirm,critdmg" text="+4, d8+2 (x2)"]
<b>Skills</b>
Appraise [dice=1d20+2 memo="Appraise" text="+2"]
Bluff    [dice=1d20+2 memo="Bluff, bluff, bluff, bluff..." text="+4"]

becomes

Attacks
Longsword <a href="foo">+4,d8+2 (x2)</a>
Skills
Appraise +2
Bluff    +4

instead of

Attacks
Longsword Roll 1d20+4,1d8+2,1d20,1d8+2 (for Attack dmg,confirm,critdmg)
Skills
Appraise Roll d20+2 (for Appraise)
Bluff    Roll d20+4 (for Bluff, bluff, bluff, bluff...)


I'm not sure if I like the "If you're the DM, then it will setup 'On Behalf Of'" part. If I want to hide the result from the player in question (which is frequently the case) this costs me a couple of clicks, because "On Behalf Of" rolls are visible to the player (right?). An extra option like "onbehalf=no" might be super special awesome.
LoreGuard
member, 305 posts
Sat 15 Jan 2011
at 17:24
  • msg #46

Re: Dice Roller Link

Cool, this feature will certainly be a great addition to the current dice roller link functionality.

I would second the usefulness of a option to specify an override for the display text.  I'd then suggest having the 'full' text show up as the tooltip when you mouse over it.  If allowing free text over-ride of the text isn't considered something you want to allow, I'd suggest you at least allow a 'short' form which would just display the 3d4+2 instead of the whole part (again with the tooltip showing the full text).
jase
admin, 2568 posts
Cogito, ergo procuro.
Carpe stultus!
Sun 16 Jan 2011
at 09:05
  • msg #47

Re: Dice Roller Link

Digital Mastermind:
Do dice rolls made in a thread via code record themselves to the dice roller log, and are dice roll results in message editable?

Currently this is just a link to roll the dice, all logging is done in the dice roller as per usual.  The GM can, however, say "everyone roll a reflex saving throw", and add in [roll=1d20 memo="Save vs fireball" text="Save vs fireball (don't forget to add your bonus!)"].  Each user would click on the link, change the +/- modifier to their saving throw bonus and then hit "Roll the Dice".  Everything else will be filled out for them (users with more than one character would also have to select the appropriate character).


Added the "text" portion.  Without it it will now just have "Roll <dice>".  The hover-over in either situation will have the memo information.

I've kept it [dice=..] at this stage as angled brackets is more for formatting options.  Private lines, private notes, languages and other such stuff are still square brackets.

I'm still up for changing anything of this.
This message was last edited by the user at 09:12, Sun 16 Jan 2011.
Alhaja
member, 469 posts
Sun 16 Jan 2011
at 09:17
  • msg #48

Re: Dice Roller Link

I love it!

Setting systems requires knowing what all the codes for each system are, but aside from that it should be fairly straightforward for users.

jase:
I've kept it [dice=..] at this stage as angled brackets is more for formatting options.  Private lines, private notes, languages and other such stuff are still square brackets.


This is a really good point. I'd vote to keep it this way even if it's a little harder to type.
matthewfenn
member, 194 posts
www.nj-pbem.com
Northern Journey PBeM DM
Sun 16 Jan 2011
at 14:28
  • msg #49

Re: Dice Roller Link

Fantastic work Jase.

One thought - as DM, I often use the "DM's Character sheet" to contain links for rolls that I make on behalf of the party.  Would it be possible to have an optional argument so that you can override the default that it chooses the owner of the character sheet or "on behalf of"?  Plus the secret option.

For example:
[dice=1d20+5 record=yes memo="Spot Check" DM=yes secret=yes]
jase
admin, 2569 posts
Cogito, ergo procuro.
Carpe stultus!
Sun 16 Jan 2011
at 16:41
  • msg #50

Re: Dice Roller Link

Argh, Alhaja, you highlighted my poor grammar!  (c;


In reply to matthewfenn (msg #49):

You can use all the old options listed previously in this thread, including rc and bo, which will override whatever it would default to otherwise.
Ryees
member, 416 posts
Enough youth; how about a
fountain of "smart?"
Mon 17 Jan 2011
at 23:37
  • msg #51

Re: Dice Roller Link

Just to clarify: This means that in your sheet, you'd have Walter PPK, and when you clicked it, it would bring to the dice roller with either the stats already rolled, or entered so all you have to do is click "Roll the dice," correct?
jase
admin, 2570 posts
Cogito, ergo procuro.
Carpe stultus!
Tue 18 Jan 2011
at 00:25
  • msg #52

Re: Dice Roller Link

Yep.  That link might look something like;

[roll=1d20+5,1d10+2 memo="Walter PPK Attack and Damage" text="Walker PPK"]
Sign In