"; for ($x=1;$x<=$node_num;$x++) { $element_num = mt_rand(1,4); if ($element_num == 1) { $main_event = 1; } else { $main_event = mt_rand(1,$element_num); } switch($element_num) { case 4: $relations = mt_rand(0, 2); break; case 3: $relations = mt_rand(0, 1); $loc = mt_rand(0, 1); break; case 2: $relations = mt_rand(0,1); $loc = 0; break; case 1: $relations = 0; break; } $tab = $tab . ""; $tab = $tab . "$x. "; for ($y=1;$y<=$element_num;$y++) { $tab = $tab . " "; if ($main_event == $y) $tab = $tab . "("; $tab = $tab . $arr[mt_rand(0,sizeof($arr)-1)]; if ($main_event == $y) $tab = $tab . ")"; if (($relations == 2) && ($y % 2)) $tab = $tab . "->"; else if (($relations > 0) && ($y-1 == $loc)) $tab = $tab . "->"; $tab = $tab . " "; if ($y != $element_num) { $tab = $tab . ""; } } $tab = $tab . ""; } $tab = $tab . ""; require($_SERVER['DOCUMENT_ROOT'] . "/includes/top.php"); // ?>
Stages:
MON Ratio: --

Help:
-STAGES are the number of "chapters" of a quest, change of stage signifies that the PCs must move elsewhere to continue the quest.

-MON RATIO (Monster/Object/NPC) is the weight that the particular elements have. The default of 1-1-1 means that, monsters, objects, NPC's are equal - each has a 33% chance of occuring. 2-1-1, means that monsters are roughly 50% of the quest, while the rest deals with NPC's and objects.

-A bold Monster, Object or NPC signifies that that particular entry is the primary goal for the current stage of the quest.

-A directional arrow means that the first object is directly related. For example NPC->Object, might mean that the npc gives the players a magical knife, while NPC, Object might mean that the player are sent to FIND a magical knife somewhere in the woods.