Monster creation in dungeons
#16
Thank you so much for the insight! I just assumed that each combination was equally probable than the others and didn't think otherwise. I quickly wrote another program that does the same, and it all worked out. After the weekend I will get back to the original project of creating the histrogram instead of the probabilities. At least my first program is somewhat interesting. It can output all possible combinations (most recorded was 10,270 on dlvl 3 - not counting dlvls 4-6 which take at least an hour of computing to determine) for a level and lists how many combination each monster appears in.

>Also, from your program, it seems you assume there never spawn more than 3 types of monsters on a level, that is not true.

I only posted three levels to keep it from getting too confusing and that is all that is needed for dlvl 14 and 15. The actual source goes up to ten.

Here are some quick results from the routine. The values are virtually those that are in the guide, plus or minus a percent. I ran 500,000 iterations, but it doesn't seem to be anymore accurate than 100,000 for smaller levels. Speaking of which, I know the random values aren't actually random, but what is going on with dlvl 1? Can you make the random numbers MORE random - is there a way to get more accurate results?

Code:
mSize    Prob.
~~~~~~~~~

Dlvl 1:
799     81.8808%
543     83.0794%
553     83.756%
623     87.3978%
410     121.625%
575     132.085%
(average probability for dlvl 1 ~ 100%)

Dlvl 6:
570     30.6454%
578     30.442%
413     42.2644%
366     46.4796%
367     48.2684%
993     22.9128%
994     23.0402%
1030     22.1982%
1031     22.3858%
1032     22.3006%
1040     22.2794%
1041     22.3398%
1042     22.4784%
1130     22.077%
1650     16.7808%
716     30.0854%

Dlvl 14:
719     26.1026%
1743     10.0414%
2202     9.5376%
2203     9.5392%
1271     21.144%
1272     21.126%
980     21.856%
981     21.7238%
982     22.3446%
2120     9.5238%
2121     9.551%
2122     9.5396%
2123     9.5144%
2000     9.4948%
2001     9.564%

Dlvl 15:
2203     16.6936%
1273     32.7402%
981     32.8576%
982     32.918%
983     34.74%
2121     16.7978%
2122     16.595%
2001     16.6094%
2002     16.6766%
--Lang

Diabolic Psyche - the site with Diablo on the Brain!
Reply


Messages In This Thread
Monster creation in dungeons - by the Langolier - 06-22-2003, 10:30 PM
Monster creation in dungeons - by --Pete - 06-23-2003, 01:03 AM
Monster creation in dungeons - by Jane - 06-23-2003, 06:56 AM
Monster creation in dungeons - by the Langolier - 06-23-2003, 07:13 AM
Monster creation in dungeons - by Yogi_Baar - 06-23-2003, 08:05 AM
Monster creation in dungeons - by Yogi_Baar - 06-23-2003, 08:53 AM
Monster creation in dungeons - by dfn - 06-23-2003, 09:09 AM
Monster creation in dungeons - by hell-bringer - 06-23-2003, 05:32 PM
Monster creation in dungeons - by Yogi_Baar - 06-23-2003, 05:59 PM
Monster creation in dungeons - by dfn - 06-24-2003, 06:34 AM
Monster creation in dungeons - by Jarulf - 07-10-2003, 08:01 PM
Monster creation in dungeons - by Zenda - 07-11-2003, 04:42 PM
Monster creation in dungeons - by Jarulf - 07-17-2003, 12:44 PM
Monster creation in dungeons - by the Langolier - 07-22-2003, 09:22 PM
Monster creation in dungeons - by Jarulf - 07-23-2003, 09:38 AM
Monster creation in dungeons - by the Langolier - 07-24-2003, 08:20 AM
Monster creation in dungeons - by Jarulf - 07-24-2003, 11:14 AM
Monster creation in dungeons - by --Pete - 07-24-2003, 04:02 PM
Monster creation in dungeons - by the Langolier - 07-28-2003, 07:29 PM
Monster creation in dungeons - by the Langolier - 07-28-2003, 07:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)