RNF: Random number of floors. If set to "yes", ignores the input in the "Floors" field.
Reroll factions: If set to "yes", it will roll a new set of factions for every floor, otherwise it will use the same set for the entire dungeon.
If the "Traversal depth exceeded" error is encountered it probably means it tried to chain too many hallways together (this can become very common at higher floor counts or if floor size is set to "Large"), simply try rolling again.
{% Currentfloors = 0%}
{% Level = 0%}
{% Purpose = {d20}%}
{% Keys = {2d3-1}%}
{% Currentk = 0 %}
{% KC1 = {2d6} %}
Originally built by Roll on "Dungeon builders" for Roll on "Dungeon purpose" (dice="d1+{$Purpose}-1"), abandoned due to Roll on "Dungeon abandonment cause"
{%if RNF == "Yes"%}
{% Floors = {d3+1} %}
{%end%}
Entrance 1 (Connects to Floor 1): Roll on "Dungeon entrance"
{%if {d6} <= 4%}
Entrance 2 (Connects to Floor Roll d{$Floors}): Roll on "Dungeon entrance"
{%if {d6} <= 4%}
Entrance 3 (Connects to Floor Roll d{$Floors}): Roll on "Dungeon entrance"
{%end%}
{%end%}
{%while Currentk < Keys%}{% Currentk = {{$Currentk}+1} %} Key #{$Currentk}: Roll on "Untitled - Sun 19 Oct 04:25:59"{%end%}
{%if Reroll_factions == "No"%}
{%HD = {{3d2}-{3d2}+{$Difficulty}}%}{% Faction1 = {CHART(116566)} %}{%HD1 = {$HD}%}
{%HD = {{3d2}-{3d2}+{$Difficulty}}%}{% Faction2 ={CHART(116566)} %}{%HD2 = {$HD}%}
{%HD = {{3d2}-{3d2}+{$Difficulty}}%}{% Faction3 ={CHART(116566)} %}{%HD3 = {$HD}%}
{% Rel1 = {CHART(114329)} %}
{% Rel2 = {CHART(114329)} %}
{% Rel3 = {CHART(114329)} %}
Faction 1: {$Faction1}s, Motive: Roll on "Faction motive"
Relationships: Faction 2: {$Rel1}, Faction 3: {$Rel3}
Faction 2: {$Faction2}s, Motive: Roll on "Faction motive"
Relationships: Faction 1: {$Rel1}, Faction 3: {$Rel2}
Faction 3: {$Faction3}s, Motive: Roll on "Faction motive"
Relationships: Faction 1: {$Rel3}, Faction 2: {$Rel2}
{%end%}
{%while Currentfloors < Floors%}
{% Currentrooms = 0%}
{% Roomnumber = 1%}
{% Corridornumber = 1%}
{% Currentfloors = {{$Currentfloors}+1}%}
{%if Difficulty == "1"%}
{% Level = {{$Level}+1}%}
{%end%}
{%if Difficulty == "2"%}
{% Level = {{$Level}+d2}%}
{%end%}
{%if Difficulty == "3"%}
{% Level = {{$Level}+d3}%}
{%end%}
{%if Difficulty == "4"%}
{% Level = {{$Level}+d4}%}
{%end%}
{%if Difficulty == "5"%}
{% Level = {{$Level}+d6}%}
{%end%}
{%HD = {{3d2-2}-{3d2}+{$Level}}%}{% Creature1 = {CHART(114250)} %}{%HD4 = {$HD}%}
{%HD = {{3d2-1}-{3d2}+{$Level}}%}{% Creature2 = {CHART(114250)} %}{%HD5 = {$HD}%}
{%HD = {{3d2}-{3d2}+{$Level}}%}{% Creature3 = {CHART(114250)} %}{%HD6 = {$HD}%}
{%HD = {{3d2}-{3d2}+{$Level}}%}{% Creature4 = {CHART(114250)} %}{%HD7 = {$HD}%}
{%HD = {{3d2}-{3d2}+{$Level}}%}{% Creature5 = {CHART(114250)} %}{%HD8 = {$HD}%}
{%HD = {{3d2+1}-{3d2}+{$Level}}%}{% Creature6 = {CHART(114250)} %}{%HD9 = {$HD}%}
{%HD = {{3d2+2}-{3d2}+{$Level}}%}{% Creature7 = {CHART(114250)} %}{%HD10 = {$HD}%}
{%if Reroll_factions == "Yes"%}
{% Rel1 = {CHART(114329)} %}
{% Rel2 = {CHART(114329)} %}
{% Rel3 = {CHART(114329)} %}
{%HD = {{3d2}-{3d2}+{$Level}}%}{% Faction1 = {CHART(116566)} %}{%HD1 = {$HD}%}
{%HD = {{3d2}-{3d2}+{$Level}}%}{% Faction2 ={CHART(116566)} %}{%HD2 = {$HD}%}
{%HD = {{3d2}-{3d2}+{$Level}}%}{% Faction3 ={CHART(116566)} %}{%HD3 = {$HD}%}
Faction 1: {$Faction1}s, Motive: Roll on "Faction motive"
Relationships: Faction 2: {$Rel1}, Faction 3: {$Rel3}
Faction 2: {$Faction2}s, Motive: Roll on "Faction motive"
Relationships: Faction 1: {$Rel1}, Faction 3: {$Rel2}
Faction 3: {$Faction3}s, Motive: Roll on "Faction motive"
Relationships: Faction 1: {$Rel3}, Faction 2: {$Rel2}
{%end%}
2: Roll on "Number" (dice="2d6+10-{$Level}+{$HD1}") {$Creature1}
3: Roll on "Number" (dice="2d6+10-{$Level}+{$HD2}") {$Creature2}
4: Roll on "Number" (dice="2d6+10-{$Level}+{$HD3}") {$Creature3}
5: Roll on "Number" (dice="2d6+10-{$Level}+{$HD4}") {$Creature4}
6: Roll on "Number" (dice="2d6+10-{$Level}+{$HD7}") {$Faction1} (Faction 1)
7: [Roll twice and combine]
8: Roll on "Number" (dice="2d6+10-{$Level}+{$HD8}") {$Faction2} (Faction 2)
9: Roll on "Number" (dice="2d6+10-{$Level}+{$HD9}") {$Faction3} (Faction 3)
10: Roll on "Number" (dice="2d6+10-{$Level}+{$HD5}") {$Creature5}
11: Roll on "Number" (dice="2d6+10-{$Level}+{$HD6}") {$Creature6}
12: Roll on "Number" (dice="2d6+10-{$Level}+{$HD10}") {$Creature7}
{% Rooms ={2d4+8}%}
{%if Floorsize == "Small"%}
{% Rooms = {2d4+3}%}
{%end%}
{%if Floorsize == "Large"%}
{% Rooms = {2d4+13}%}
{%end%}
{%while Currentrooms < Rooms%}
{%if {d6} <= 5%}
{%if {d100} <= {$KC1}%}
{% Key = "1" %}
{% KC1 = 0%}
{%else%}
{% Key = "0" %}
{% KC1 = {{$KC1}+d12} %}
{%end%}
{%var = {3d4}%}{% Creature = {CHART(name="Creatures", dice="d1+{$var}-1")}%}{% HD = {CHART(name="HD", dice="d1+{$var}-1")}%}
Roll on "Room generator"
{% Roomnumber = {{$Roomnumber}+1}%}
{% Currentrooms = {{$Currentrooms}+1}%}
{%else%}
Roll on "Hallway generator"
{% Corridornumber = {{$Corridornumber}+1}%}
{%end%}
{%end%}
{%end%}
| 2d6 | Result |
|---|---|
2 |
{$Creature1} |
3 |
{$Creature2} |
4 |
{$Creature3} |
5 |
{$Creature4} |
6 |
{$Faction1} (Faction 1) |
7 |
{$Faction3} (Faction 3) |
8 |
{$Faction2} (Faction 2) |
9 |
{$Creature5} |
10 |
{$Creature6} |
11 |
{$Creature7} |
12 |
Roll on "Creature picker" |
| 2d6 | Result |
|---|---|
2 |
War |
3-5 |
Hostile |
6-8 |
Neutral or indifferent |
9-11 |
Friendly |
12 |
Allied |
| d100 | Result |
|---|---|
1-10 |
2d8 x |
11 |
d12 x |
12 |
2d6 x |
13 |
d8 x |
14 |
2d4 x |
15-16 |
d8 x |
17 |
d6 x |
18 |
2d3 x |
19 |
d4 x |
20 |
d3 x |
21-100 |
1 x |
| d10 | Result |
|---|---|
1 |
Hiding from stronger creature |
2 |
Waiting for wounded members to recover |
3 |
Hoarding a resource |
4 |
Protecting young |
5 |
Expanding their territory |
6 |
Scavenging for food or resources |
7 |
Exploring |
8 |
Got trapped/lost in the dungeon and can't leave |
9 |
Following or hunting another creature |
10 |
Guarding passage from intruders |
| 2d6 | Result |
|---|---|
2 |
{$HD4} |
3 |
{$HD5} |
4 |
{$HD6} |
5 |
{$HD7} |
6 |
{$HD1} |
7 |
{$HD3} |
8 |
{$HD2} |
9 |
{$HD8} |
10 |
{$HD9} |
11 |
{$HD10} |
12 |
{$Level} |