Encounter Tables (D&D 5e Style): Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(A cookbook example for encounter tables)
 
m (Taustin moved page encounter Tables (D&D 5e Style) to Encounter Tables (D&D 5e Style) without leaving a redirect)
 
(9 intermediate revisions by 2 users not shown)
Line 14: Line 14:


<hr>
<hr>
 
<syntaxhighlight line lang="java">
<source lang="mtmacro" line>
[h, if(1d20>16), CODE:{
[h, if(1d20>16), CODE:{
[output = "You've spent too long in the area and encountered <b>" + eval(table("Wandering Moster - Wave Echo Cave")) + "!!</b>"]
[output = "You've spent too long in the area and encountered <b>" + eval(table("Wandering Moster - Wave Echo Cave")) + "!!</b>"]
Line 22: Line 21:
}]
}]
[r: output]
[r: output]
</source>
</syntaxhighlight>


If you'd rather just roll the encounter directly, you can use this:
<syntaxhighlight lang="mtmacro" line>
["You've spent too long in the area and encountered <b>" + eval(table("Wandering Moster - Wave Echo Cave")) + "!!</b>"]
</syntaxhighlight>


===Table===
===Table===
Line 29: Line 33:


Please note that we aren't using image, though you can add an image of the monster if you'd like!
Please note that we aren't using image, though you can add an image of the monster if you'd like!
Window - Tables - Click the + to add a new table and fill out as follows


<b>Name:</b> Wandering Moster - Wave Echo Cave<br>
<b>Name:</b> Wandering Moster - Wave Echo Cave<br>
<b>Roll:</b> 1d12<br>
<b>Roll:</b> 1d12<br>


{| class="wikitable"
{| class="wikitable" style="text-align: center;"
! Range
! Range
! Value
! Value

Latest revision as of 18:29, 2 May 2023


This macro and table automate D&D 5e style wandering monster encounters. The macro will roll to see if the encounter happens, and, if it does, roll to lookup what kind of encounter from a specified Maptool table. The Macro can be reused with any table. You can even embed the number of monsters in the table!

Example output when this macro is run:

jimshank: You thought you heard something but trouble passes you by

jimshank: You've spent too long in the area and encountered 6 stirges!!

Macro


[h, if(1d20>16), CODE:{
[output = "You've spent too long in the area and encountered <b>" + eval(table("Wandering Moster - Wave Echo Cave")) + "!!</b>"]
};{
[output = "You thought you heard something but trouble passes you by"]
}]
[r: output]

If you'd rather just roll the encounter directly, you can use this:

["You've spent too long in the area and encountered <b>" + eval(table("Wandering Moster - Wave Echo Cave")) + "!!</b>"]

Table


Please note that we aren't using image, though you can add an image of the monster if you'd like!

Window - Tables - Click the + to add a new table and fill out as follows

Name: Wandering Moster - Wave Echo Cave
Roll: 1d12

Range Value
1-3 2d4 + " stirges"
4-5 1d4 + " ghouls"
6 1d4 + " gricks"
7-8 1d4 + " bugbears"
9 1d6 + " skeletons"
10 1d4 + " zombies"
11-12 "1 Ochre Jelly"