RolePlay onLine RPoL Logo

, welcome to RPoL Development

14:09, 29th March 2024 (GMT+0)

Dice Roller - Roll Result Text w/ Reason for Roll.

Posted by ionathas
ionathas
member, 15 posts
Wed 27 Feb 2019
at 16:52
  • msg #1

Dice Roller - Roll Result Text w/ Reason for Roll

Hi!
Is there a reason the Result Text when you make a roll on the Die Roller doesn't include the Reason for Roll? 'Cuz it'd be totally wiz if it did.

One of the other players, when I mentioned it, brought up the fact that it'd also be nice to have a button or link to copy the text to the clipboard for you automagically.
I don't like JavaScript enough to know how much trouble it is to interact with the clipboard on different web browsers and OSes, but a cursory glance of the Google suggested that it was, at least theoretically, possible. Therefore, I humbly submit his request, as well.

I realize that adding a field to sometimes-lengthy synopsis text can be a turnoff to some people, and those people will probably accuse me of being lazy (I love you guys!) for wanting the web code to add the text to the result for me, instead of just doing it my own dang self.
I accept that. I'm an efficiency fanatic, so I get that a lot from people that look at the world differently than I do. :)
theseeker
member, 4 posts
Wed 27 Feb 2019
at 21:25
  • msg #2

Dice Roller - Roll Result Text w/ Reason for Roll

What is missing from

[dice=11d6 memo="Matrix Theory(Resonance)(5/7) Knowledge" text="Resonance" record=yes system=sh4e target=5]



That you want?  Other than copy to clipboard.

Example output
Dice Roller:
… rolled 2 successes using 11d6 with the Shadowrun 4th ed system with a target of 5 with rolls of 3,3,2,5,1,5,2,2,2,4,2.  Matrix Theory(Resonance)(5/7) Knowledge.


The memo field goes to 'reason for roll'.  The only issue I might have with it, is that the reason gets cleared when clicking `roll the dice`.
This message was last edited by a moderator, as it was against the forum rules, at 21:29, Wed 27 Feb 2019.
theseeker
member, 5 posts
Thu 28 Feb 2019
at 08:14
  • msg #3

Dice Roller - Roll Result Text w/ Reason for Roll

My example link got moderated out.  Is there a way to create a valid dice roller link that does not include a reference to a specific game?
ionathas
member, 16 posts
Thu 28 Feb 2019
at 16:04
  • msg #4

Dice Roller - Roll Result Text w/ Reason for Roll

In reply to theseeker (msg # 3):

The synopsis text at the top that holds the color formatting, which you can copy and paste into your posts. I know there's a checkbox you can set to include the individual dice rolls in it. Is there a way to include the Reason text that I missed? 'Cuz I would be delighted to be wrong about this...

Hm. I mean, this isn't really what I was talking about, but I suppose it could work in its place. I've never actually seen anybody use these codes in a game before... I'll have to try it out.

Hm. And for that matter, how do you use the dice codes with the AGE system? It keeps telling me I can't use modifiers with that system...
This message was last edited by the user at 16:26, Thu 28 Feb 2019.
theseeker
member, 6 posts
Thu 28 Feb 2019
at 21:08
  • msg #5

Dice Roller - Roll Result Text w/ Reason for Roll

What I was providing is a way to use a link to automatically fill in the reason text on the dice roller page when it was opened.  I have put links in my character details page to open the dice roller prepopulated with information for most needed cases.  For me, the generated text from clicking `Roll The Dice` does include whatever was in the `Reason for Roll` field.  I do not use the AGE system, and can not show you what I do use looks like, since it requires a game id.
ionathas
member, 17 posts
Sat 2 Mar 2019
at 02:12
  • msg #6

Dice Roller - Roll Result Text w/ Reason for Roll

In reply to theseeker (msg # 5):

Okay, wait, so when you click the Roll the Dice button, the table at the top (under the "contents" division) includes the text in the memo field?
Mine doesn't; it just says "<time> Today: <name> rolled x using <dice> with <system>. (<individual dice results>)"

It's just HTML, so I don't see why different web browsers should make any difference...
What gives?!?
MalaeDezeld
member, 103 posts
Sat 2 Mar 2019
at 02:19
  • msg #7

Dice Roller - Roll Result Text w/ Reason for Roll

You are right, the one on top only said that. But the on in the log, under the dice roller also contain the reason to roll (but you need the option "Record Each Die" to see it in the log).
ionathas
member, 18 posts
Sat 2 Mar 2019
at 02:27
  • msg #8

Dice Roller - Roll Result Text w/ Reason for Roll

In reply to MalaeDezeld (msg # 7):

Yeah! That's how mine is.
But it's the text at the top that copies your color formatting (which I love, BTW!) for you. So I always wind up having to copy the top text, then go down to the log at the bottom and copy that, too. It's a pain on a laptop and nearly impossible on a mobile.
MalaeDezeld
member, 104 posts
Sat 2 Mar 2019
at 02:33
  • msg #9

Dice Roller - Roll Result Text w/ Reason for Roll

Oh, I don't use the aesthetic, so I never notice that it was missing, so I always copied the bottom one.
ionathas
member, 19 posts
Sat 2 Mar 2019
at 14:27
  • msg #10

Dice Roller - Roll Result Text w/ Reason for Roll

Yeah, I really like the way the colors make the numbers pop or I would do the same thing. I mean, I could just add the formatting myself, I suppose, but the field at the top does it so well that I'd just wind up copying the same thing it does already.
horus
member, 654 posts
Wayfarer of the
Western Wastes
Sun 3 Mar 2019
at 04:31
  • msg #11

Re: Dice Roller - Roll Result Text w/ Reason for Roll

MalaeDezeld:
You are right, the one on top only said that. But the on in the log, under the dice roller also contain the reason to roll (but you need the option "Record Each Die" to see it in the log).


I might be misunderstanding here:  why is "Record Each Die" needed to display a reason for the roll?

In my own experience:

Memo and Text Options:

memo="{reason text}"
text="{reason text}"


These options both display a "reason text" in quotes which is passed to a dice roll link .  For example, the link:

[dice=2d6 memo="Basic Task Roll"],

which includes a memo option, would appear in a message as:

Roll 2d6  {Note:  not an actual link - this is not cricket here.}

It's output in the dice roller log would appear similar to:

20:06, Today: {Character Name} rolled 9 using 2d6.  Basic Task Roll.

Contrast this with how the text option works.  For example, the link:

[dice=2d6 text="Unmodified Task Roll"]

would appear in a message similar to:

Unmodified Task Roll  Again, not an actual link for... reasons.

and it's output to the dice roller log would appear similar to:

20:17, Today: {Character Name} rolled 10 using 2d6.

Using both a memo= and a text= field in the same link code statement is permissible.
MalaeDezeld
member, 105 posts
Sun 3 Mar 2019
at 05:21
  • msg #12

Re: Dice Roller - Roll Result Text w/ Reason for Roll

horus:
MalaeDezeld:
You are right, the one on top only said that. But the on in the log, under the dice roller also contain the reason to roll (but you need the option "Record Each Die" to see it in the log).


I might be misunderstanding here:  why is "Record Each Die" needed to display a reason for the roll?

It isn't. And this isn't about the link either. That was about the differences between the temporary result (the one over the dice roller) and the permanent one (the log, under the dice roller).
  • The temporary result always shows each die.
  • The temporary result has aesthetic.
  • The permanent result has the reason for roll.
  • They don't have the same format.

horus
member, 657 posts
Wayfarer of the
Western Wastes
Sun 3 Mar 2019
at 05:35
  • msg #13

Re: Dice Roller - Roll Result Text w/ Reason for Roll

MalaeDezeld:
horus:
MalaeDezeld:
You are right, the one on top only said that. But the on in the log, under the dice roller also contain the reason to roll (but you need the option "Record Each Die" to see it in the log).


I might be misunderstanding here:  why is "Record Each Die" needed to display a reason for the roll?

It isn't.


I'm truly sorry.  I thought that was what you said in your previous post, quoted above by me.  My misunderstanding.  I could have sworn the option needed to see the reason for rolling in the log was memo=, not record=...  No matter.

quote:
And this isn't about the link either. That was about the differences between the temporary result (the one over the dice roller) and the permanent one (the log, under the dice roller).
  • The temporary result always shows each die.
  • The temporary result has aesthetic.
  • The permanent result has the reason for roll.
  • They don't have the same format.


All of this is correct, except that if a memo= string is not specified, either in a link, or by specifying it "manually" in the dice roller's "Reason for roll" field, it will not be shown.
Sign In