Encounter Tables (D&D 5e Style): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
<hr> | <hr> | ||
< | <syntaxhighlight line lang="html4strict"> | ||
[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 21: | Line 21: | ||
}] | }] | ||
[r: output] | [r: output] | ||
</ | </syntaxhighlight> | ||
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: |
Revision as of 05:32, 28 February 2022
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" |