Layonara
Hordes
Advertise on Layonara
Layonara (nwn/sou/hotu-1.68)
Version 3.01.5
Threads: 31,919 • Posts: 221,244 • Gallery Images: 9,650 • Members: 7,960 • Online: 81 (Guests: 58)
Home Forums Gallery Classifieds Stores Donate
Go Back Layonara > The Layonara Community > Just for Fun
Layonara Fantasy Wear Shop Amazon
Calendar Search Today's Posts New Players Layonara Links Mark Forums Read Register

Just for Fun A forum section to lighten your day with jokes, funny links, and things that make you laugh. Keep them clean and remember this is a family server.


Welcome to the Layonara forums!

Layonara is so much more than a game. We started off as a tabletop Dungeons and Dragons campaign more than a decade ago. Since then we have developed into a fantasy world with as much compelling and engrossing detail as you will find anywhere.

Our current showcase is a Neverwinter Nights version of Layonara, where our world comes to life in a finely polished persistent world which you can play free of charge. These forums are set up to support and accentuate our player's experiences, but it goes far beyond that.

After years of passionate effort, our world is so well developed, so detailed, so refined that any of the handbooks, maps, historical accounts, legends, descriptions of artifacts, creature reports, character biographies, short stories, novels, movies and original art which populate these forums can surely serve as resources or inspiration for your own fantasy endeavors, whatever they may be. And our world is endlessly evolving, so resources are frequently added and updated.

There are also years of sage advice and commentary on role-playing, gaming and online community development stored in these forums. If camaraderie is what you seek, we offer that too. Our community is as active and supportive as you're likely to find on the internet. In short, these forums are a resource for you to use for whatever purpose or project brought you here.

We're confident that you will find what you are looking for, and likely, substantially more.

Please be our guest and browse around the forums which are available to you. As you do, keep in mind that you are sampling only a portion of what Layonara has to offer. Membership in our community is free, and allows you to establish a Layonara identity to pose your questions and share your thoughts on the forums. When you join you'll also be able to communicate privately to other members (PMs), establish and respond to polls, upload and download content and access many other special features. Registration is fast, simple and absolutely free. So please. join our community today!
Reply
 
Thread Tools Display Modes
Old 09-10-07, 02:11 PM #1
ycleption
Mind Flayer
Characters

ycleption's Avatar

Join Date: Dec 2006
Posts: 869
Thanks: 68
Thanked 334 Times in 187 Posts
Default Sometimes I get bored at Law school...

Okay, given the overwhelming response and outpouring of accolades generated by the first time I did something like this, and my burning curiosity on the subject, I decided to figure out the exact average of the best three out of four d6. (For those of you unfamiliar with non-layo D&D, often three out of four regular six sided dice is used to assign a character's abilities)
Sooo... I decided that the best way to go about this was, rather than calculate the roll as a whole, just to concentrate on the discarded die, and figure out the value of the average low die, and then subtract that from 14, which is the average of four dice.
With that decided, the problem becomes counting: I needed to figure out how many times a given value is the lowest die, then multiply that by the value, and add those numbers together:
So, I started at the top, because I knew there would be fewer, and thus it is easier to count.
The first one is real easy... six is the lowest die exactly one time: when all four dice are sixes.
1x6=6
yay.

Now, with five, it gets a little more complicated. To organize things (which will come in handy in a bit), we will separate things by how many fives turn up. (In mathematical terms we are "choosing" successive numbers out of four)
There is one case where there are four fives and five is the lowest number: (5555)
Four where there are three fives (5556), (5565), (5655), (6555)
Six where there are two: (5566),(5656),(5665),(6556),(6565),(6655)
and Four where there are one: (5666),(6566),(6656),(6665)

In math terms:
4 choose 1 = 4
4 choose 2 = 6
4 choose 3 = 4
4 choose 4 = 1

That's fifteen ways (4+6+4+1) that a five is the lowest die, and 15x5=75


Okay, I don't know about the rest of you, but I'm lazy, and counting the fives in my head is about my limit, so I'm going to have to figure out something better to use for the fours and below.

So, if I look at what I've written out in the fives, I can see that the other numbers will follow that pattern. Incidentally, the 4,6,4,1 pattern is part of pascal's triangle (the fourth line, because there are four dice), and crops up in various other things. With 5, there was only one other number to consider, but with four and below, we have to multiply the number of ways the number we're looking at can occur, by all the permutations of however many larger numbers there are. Luckily, permutations is easy to figure out. We just have to take the number of dice we are looking at, to the power of the available slots.

For example, take the specific case where there are three fours: there are two numbers greater than four (five and six, in case you have trouble counting), and one available slot. So, we have (2^1)(4 choose 3) = 2x4=8

We can confirm this by counting them out:
(4445),(4446),(4454),(4464),(4544),(4644),(5444),( 6444)

Now we have a general rule for four six-sided dice (I have this written in formal summation notation on a post-it note, but don't know how to display math symbols on the forum): The sum from one to six of each value multiplied by the sum from one to four (we'll call it n) of six minus the die value to the four minus n power, multiplied by four choose n.

Because that's a mouthful, (and probably not terribly well stated) here's the actual numbers:

1[(5^3)4+(5^2)6+(5^1)4+(5^0)1]
+2[(4^3)4+(4^2)6+(4^1)4+(4^0)1]
+3[(3^3)4+(3^2)6+(3^1)4+(3^0)1]
+4[(2^3)4+(2^2)6+(2^1)4+(2^0)1]
+5[(1^3)4+(1^2)6+(1^1)4+(1^0)1]
+6[(0^3)4+(0^2)6+(0^1)4+(0^0)1]

Performing the calculations, 671 + 738 + 525 + 260 + 75 + 6 = 2274
So, dividing 2274 by the total number of possible rolls which is 6^4, or 1296, we get about 1.745
As we said at the top, we subtract that from the average of four dice which is fourteen, so 14-1.745 = 12.245

There's what we've been looking for: the average of the best three out of four d6 is about 12.25

Whew!

Of course, it's no fun to end there.... what if we needed to rollthe best 7 out of 8 d10 instead? We can generalize to the best x out of x+1 dice of any number of faces..
(We could potentially generalize to the best x out of y, but that would need an addition summation, and would be much much more complicated, and it's messy enough as it is. Also, we could make it look a lot neater using summation notation). We'll call the number of faces d, the number of dice n, and designate xCy as the choose function, x choose y.

1[((d-1)^(n-1))(n)+((d-1)^(n-2))(nC2)+ . . . +((d-1)^2)(nCn-2)+((d-1)^1)(nCn-1)+((d-1)^0)1]
+2[((d-2)^(n-1))(n)+((d-2)^(n-2))(nC2)+ . . . +((d-2)^2)(nCn-2)+((d-2)^1)(nCn-1)+((d-2)^0)1]
+3[((d-3)^(n-1))(n)+((d-3)^(n-2))(nC2)+ . . . +((d-3)^2)(nCn-2)+((d-3)^1)(nCn-1)+((d-3)^0)1]
+
.
.
.
+(d-1)[(1^(n-1))(n)+(1^(n-2))(nC2)+ . . . +(1^2)(nCn-2)+(1^1)(nCn-1)+(1^0)1)]
+d[a bunch of stuff I don't feel like writing out but equals 1]

Wasn't that exciting?
__________________
~Why should wee nott loves purblind charmes resist? Must wee be servile, doing what hee list? Noe, seeke some hoste to harbour thee: I fly Thy babish tricks and freedome do profess. Butt O, my hurt makes my lost hart confess: I love, and must: so farewell liberty.
~Time remains tomorrow, when we've used today, it will take the sorrow, and wash it all away. Love can play a new tune, on this carousel, it may be tomorrow, but only time will tell.
ycleption is offline Reply With Quote
The Following User Says Thank You to ycleption For This Useful Post:
Stephen_Zuckerman (02-16-08)
Old 09-11-07, 09:41 PM #2
Pseudonym
Gamemaster
Characters

Pseudonym's Avatar

Join Date: Jun 2006
Location: Melbourne, Australia
Posts: 2,257
Thanks: 134
Thanked 992 Times in 523 Posts
Default Re: Sometimes I get bored at Law school...

You know, sometimes I get bored at work too (like right now) but I don't think I have ever been as bored as you must have been on this day.
__________________


This signature has been intentionally left blank

Pseudonym is offline Reply With Quote
The Following User Says Thank You to Pseudonym For This Useful Post:
Stephen_Zuckerman (02-16-08)
Old 09-11-07, 10:49 PM #3
merlin34baseball
Mind Flayer
Characters

merlin34baseball's Avatar

Join Date: Jan 2006
Location: Fort Collins, CO
Posts: 1,032
Thanks: 57
Thanked 92 Times in 44 Posts
Default Re: Sometimes I get bored at Law school...

That looks suspiciously like calculus.
__________________
My hands are tied - The billions shift from side to side - And the wars go on with brainwashed pride - For the love of God and our human rights - And all these things are swept aside - By bloody hands time can't deny - And are washed away by your genocide - And history hides the lies of our civil wars
G n R - Civil War

merlin34baseball is offline Reply With Quote

Old 09-13-07, 02:23 PM #4
Marswipp
Mind Flayer
Characters

Join Date: Jun 2005
Location: Richardson, Texas, United States, GMT-6
Posts: 973
Thanks: 207
Thanked 134 Times in 131 Posts
Default Re: Sometimes I get bored at Law school...

It's algebra, not calculus.
__________________
Warning: Chance of inane remarks.
Caution: Possible chance of off-topic statements.


It's easy to clock more time than you've used in total. Just let the game run while you're away.
Marswipp is offline Reply With Quote
Old 09-13-07, 02:30 PM #5
ycleption
Mind Flayer
Characters

ycleption's Avatar

Join Date: Dec 2006
Posts: 869
Thanks: 68
Thanked 334 Times in 187 Posts
Default Re: Sometimes I get bored at Law school...

Quote:
Originally Posted by Marswipp View Post
It's algebra, not calculus.
Well, it's combinatorics, which uses some algebra.... but definitely not calculus.
__________________
~Why should wee nott loves purblind charmes resist? Must wee be servile, doing what hee list? Noe, seeke some hoste to harbour thee: I fly Thy babish tricks and freedome do profess. Butt O, my hurt makes my lost hart confess: I love, and must: so farewell liberty.
~Time remains tomorrow, when we've used today, it will take the sorrow, and wash it all away. Love can play a new tune, on this carousel, it may be tomorrow, but only time will tell.
ycleption is offline Reply With Quote
Old 02-16-08, 11:37 PM #6
Stephen_Zuckerman
Ancient Dragon
Characters

Stephen_Zuckerman's Avatar

Join Date: Oct 2005
Location: Look at me still talking when there's Science to do...
Posts: 3,885
Thanks: 2,649
Thanked 284 Times in 207 Posts
Default Re: Sometimes I get bored at Law school...

I just read this, and yes. I do stuff like this regularly. I think this walkthrough in particular is REALLY cool.
__________________



That his heart is a seething mass of black evil, there can be little doubt. ~ Darkstorme, on Barret Glib.
Stephen_Zuckerman is offline Reply With Quote

Old 02-16-08, 11:46 PM #7
ShiffDrgnhrt
Lich
Characters

ShiffDrgnhrt's Avatar

Join Date: Dec 2006
Location: Jersey (Exit 88)
Posts: 1,847
Thanks: 266
Thanked 245 Times in 181 Posts
Default Re: Sometimes I get bored at Law school...

Math makes my brain bleed
__________________
The victorious warrior only seeks battle after the victory has been won, whereas he who is defeated first fights and seeks to win. ~ Sun Tzu, Art of War
There is nothing noble about killing desperate men... ~ Bowen, Dragonheart


Shiff Dragonheart ~ "Heroically Stupid" R.I.P. 7/13/08
ShiffDrgnhrt is offline Reply With Quote
Old 02-17-08, 12:13 AM #8
jan
Mind Flayer
Characters

jan's Avatar

Join Date: Apr 2005
Location: behind my comp
Posts: 1,171
Thanks: 270
Thanked 112 Times in 68 Posts
Default Re: Sometimes I get bored at Law school...

Quote:
Originally Posted by Stephen_Zuckerman View Post
I just read this, and yes. I do stuff like this regularly. I think this walkthrough in particular is REALLY cool.
You read this ?!?!?!?!?!?

I fail to figure the cool part , but could use it i guess

My mind was fried at the third row
__________________
Power corrupts....absolute power corrupts absolute,

As a final touch, God created the Dutch

Sometimes its better to just shrug and leave .
jan is offline Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -7. The time now is 03:15 PM.


© 2007 Layonara Studios, LLC All rights reserved. Layonara is a registered trademark and copyright of Daniel R. Scott.
Privacy Policy - Terms and Conditions Of Use

Search Engine Friendly URLs by vBSEO 3.0.0