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

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
m (Taustin moved page encounter Tables (D&D 5e Style) to Encounter Tables (D&D 5e Style) without leaving a redirect)
 
(6 intermediate revisions by 3 users not shown)
Line 14: Line 14:


<hr>
<hr>
 
<syntaxhighlight line lang="java">
<syntaxhighlight 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 25: Line 24:


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


<syntaxhighlight lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>

Latest revision as of 23:59, 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"