modulus function ?

Suggestions or feature requests for the dice roller, forums, or PbP games.
Post Reply
Message
Author
Eulalios

modulus function ?

#1 Post by Eulalios »

How much of a pain would it be to code a % function, like d20%6, for those few, those precious few, that band of geeks, who like to generate step-skewed probability distributions?
User avatar
ToniXX
Site Admin
Site Admin
Posts: 3236
Joined: Sat Sep 19, 2009 5:21 pm
Location: Long Beach, CA

Re: modulus function ?

#2 Post by ToniXX »

Hmm... my first reaction is that it probably won't happen, but depending on what it's needed for and how hard it may be, I could consider it. Could you give me an example of when you'd use it and what the results for a given macro (the example you gave) would be?
"Sir, our research shows that the bird is equal to or greater than the word."
Eulalios

Re: modulus function ?

#3 Post by Eulalios »

ToniXX wrote:Hmm... my first reaction is that it probably won't happen, but depending on what it's needed for and how hard it may be, I could consider it. Could you give me an example of when you'd use it and what the results for a given macro (the example you gave) would be?
This is not essential, but the idea is as follows:
d20mod8 = 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4
d20mod6 = 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 1, 2

It would be useful when there's a list of results, some of which definitely should happen more often than others, e.g.:
Events or Travelers
Roll d20mod8:
  1. Escort Party. Use Roger G. Sorolla’s Dramatic Personae (rolesrules.blogspot.com) to generate a character in need of escort. Roll 1d6 for either the red or the black die, and for the other die use the day of the year mod 6. Destination per seasonal table OR to the furthest Chapel OR Inn.
  2. Food/Ale. Per seasonal table OR to the nearest Guardpost OR House.
  3. Crone. OR Scholar. OR Escort Party per seasonal table.
  4. Shaman. OR Warlock. OR Food/Ale per seasonal table.
  5. Conquest. Rumor that the Soldiers, Guard, Patrol, and Company intend to capture or kill the Woodfolk, Lancers, Bashkars, and Rogues. OR Pillage. Rumor that the Bashkars plan to pillage at least one dwelling, and that the Soldiers and Patrol are on alert.
  6. Raid. Rumor that the Lancers and Woodsfolk intend to drive out the Bashkars and Rogues. OR Quest. Rumor that the Order have vowed to eradicate (d20mod6):
    1. Dragons
    2. Demons
    3. Magic users
    4. Goblins
    5. Trolls
    6. Giants and Ogres
  7. Revolt. Rumor that the Lancers, Woodfolk, Bashkars, and Rogues intend to overthrow the Soldiers, Guard, Patrol, and Company. OR War. The Soldiers, Guard, and Patrol are working to drive out the Company, Bashkars, and Rogues.
  8. Goblins! Rumor that Goblins have attacked travelers to the next-nearest Dwelling. OR Dragon! Rumor that a Dragon has attacked the furthest Dwelling.
Post Reply

Return to “Suggestions”