RolePlay onLine RPoL Logo

, welcome to Technical Discussions

13:15, 29th March 2024 (GMT+0)

Dice Roller coding question.

Posted by hellrazoromega
hellrazoromega
member, 18 posts
A Swift Jack
Who Explores Dark Places
Mon 21 Mar 2016
at 05:08
  • msg #1

Dice Roller coding question

I am trying to set up a line where it allows me to roll and keep ah la L5R.

So far I have---- dice=5d10 memo="Disguise" text="5k3" record=yes


What I can't figure out is how to code in to keep the highest 3 dice and reroll the max dice.

Can anyone help?

Thanks
This message was last edited by the user at 05:12, Mon 21 Mar 2016.
Skald
moderator, 684 posts
Whatever it is,
I'm against it
Mon 21 Mar 2016
at 05:18
  • msg #2

Dice Roller coding question

Have a look at all the dice roller options in the RuBB code in the FAQ - go to RuBB code /help/content.cgi?t=faqs&page=rubbcode and click on the Put die roller links in posts and character sheets? heading to expand.

And I think you're after the following settings:

dok=<d|k><l|h> drop=number to drop or keep sets drop/keep and lowest/highest options for the roll.

This allows you to discard, or only keep, the number of selected dice.

Example: [dice=4d6 dok=dl drop=1] or [dice=4d6 dok=kh drop=3] (still use the 'drop' keyword, even when keeping rolls)
(both keep the 3 highest rolls)

maxes=yes re-rolls maxes.

This is the option to use to re-roll any maximums.

Example: [dice=8d10 maxes=yes]
(roll eight ten-sided dice and re-roll any tens)



Cheers ;>

Skald
hellrazoromega
member, 19 posts
Mon 21 Mar 2016
at 17:04
  • msg #3

Dice Roller coding question

In reply to Skald (msg # 2):

Thank you for the tip and the link I was not sure where the options were.

HRO
Miss Scarlet
member, 285 posts
Sat 9 Apr 2016
at 15:35
  • msg #4

Dice Roller coding question

I have a question about the dice roller. It's not coding, but I thought I could use this topic instead of opening a new one.

The dice roller in my games is: Loading custom dice roller defaults ...

And it takes a long time to allow us to roll, but the only change I did was using 1d100 instead of 1d20. And when I open it's already 1d100.

Does anyone know why this is happen?

Thanks,
Tyr Hawk
member, 165 posts
You know that one guy?
Yeah, that's me.
Sun 10 Apr 2016
at 00:49
  • msg #5

Dice Roller coding question

Unless I am wildly off, Miss Scarlet, any change to the default will result in that message appearing. Whether it's changing the default dice type, or the system, or... anything.

Someone correct me if I'm terribly ignorant though.
Sign In