Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Calling Random Numbers
#4
Given that he requested one for a Dungeons and Dragons styled system, he would be more familiar with 4sided dice, 6 siders, 8siders and so forth. Hence, my version was designed to use method names that replicated the AD&D dice rolls, and include the number of dice at the same time. The call of ...
Code:
strength_roll = Dice.dice_roll(6, 3)

...would match that of the Dice.d6(3). It rolls a six-sided die 3 times. But the Dice.d6 command (and others included) are meant to make it easier to use. I went with an easy-to-use gamer mentality for d4, d6, d8, d10, d12 and d20 rolls.

And call it an old-school methodology that I grew up with that reinitialized values ( the result = 0 ) as well as a mentality to include failsafe routines.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png] [Image: liM4ikn.png] [Image: fdzKgZA.png] [Image: sj0H81z.png]
[Image: QL7oRau.png] [Image: uSqjY09.png] [Image: GAA3qE9.png] [Image: 2Hmnx1G.png] [Image: BwtNdKw.png%5B]
Above are clickable links

Reply }


Messages In This Thread
Calling Random Numbers - by Alistor - 09-06-2013, 07:46 PM
RE: Calling Random Numbers - by DerVVulfman - 09-07-2013, 03:14 AM
RE: Calling Random Numbers - by MechanicalPen - 09-07-2013, 06:09 PM
RE: Calling Random Numbers - by DerVVulfman - 09-08-2013, 12:27 AM
RE: Calling Random Numbers - by MechanicalPen - 09-08-2013, 01:02 AM
RE: Calling Random Numbers - by DerVVulfman - 09-08-2013, 03:09 AM
RE: Calling Random Numbers - by MechanicalPen - 09-08-2013, 06:16 PM
RE: Calling Random Numbers - by DerVVulfman - 09-08-2013, 08:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Making Forest Maps with the Random Map Generator ShadowIce 16 19,675 02-02-2014, 08:18 PM
Last Post: ShadowIce
   Help Making Random Maps ShadowIce 0 2,997 02-02-2010, 03:28 PM
Last Post: ShadowIce
   Calling Scripts aistinger 3 5,334 12-03-2009, 01:41 AM
Last Post: aistinger
   Random Monster Groups Yin 25 28,078 08-18-2009, 06:04 AM
Last Post: DerVVulfman



Users browsing this thread: