Register

Random Encounters

An Add-on Module for Foundry Virtual Tabletop

Author: lostix Project Source: Project URL Version 10 Last Updated 5 months, 2 weeks ago

Random Encounters module for FVTT

Adds the ability to create Random Encounters for Scenes.

Each random encounter can be run on time intervals and dice chance, and will roll from a RollTable.

Will not trigger an encounter if players are already in combat.

NEW FEATURE You can now roll from Compendiums! See below to configure.

How To Use

FoundryVTT Version 9 Updates

With the new keybind capabilities built into Foundry Random Encounters now only requires the about-time module as a dependency, and some of the settings have moved/changed as noted below. The same basic functionality still exists.

About-Time Bugs

Figured out some bugs with my code and about-time module see about-time issues for more information on.

Settings

You can find the settings for Random Encounters

Settings

Click on Configure to add new Random Encounters.

Keybind Settings

The keybind setting has now moved to the Configure Controls Setting Menu

Settings

You can change the Hot Key to trigger any Random Encounters.

Adding new Encounter

Click on the Add Encounter button.

Random Encounter Settings

It will create a new Random Encounter Template. Which is now collapsible for better viewing.

Random Encounter Example

Example of a RollTable for Random Encounters

Random Encounter RollTable Example

See https://foundryvtt.com/article/roll-tables/ for more examples on how RollTables work.

Settings to note:

Rolling from Compendiums

You can now roll directly from compendiums without having to import them into your world.

First you must select which RollTable Compendiums should be included, click on the Include Tables from Compendiums button.

Random Encounter Configure Compendiums

Select which RollTable Compendiums to include, and you should now see additional RollTable options when creating a random encounter.

Random Encounter Compendium Tables

Examples

Random Encounter for a Scene

If you have a random encounter that triggers anywhere on a scene, you can set one up using settings similar to the following:

RollTable

Random Encounter Scene RollTable Example

Roll a 1d4 to find a Random Encounter from the list.

Random Encounter Settings

Random Encounter Scene Example

Set the Encounter Name. Select the Scene for the random encounter. Set a Dice Formula and On Result. Set RollTable.

Trigger Random Encounter

Random Encounter Scene Result

Either hit the Trigger Random Encounter Hot Key or if you specified a time wait for the random encounter to be triggered.

First chat box is the result of the Dice Formula not rolling the On Result condition.

Second chat box is the result of the Dice Formula rolling the On Result condition.

Random Encounter for a Room/Area within a Scene

If you have a random encounter that only needs to happen within a specific area or room within a scene you can using the drawing tools to create a room/area. Make sure to name the drawing, Random Encounters will check for use the name to find the room/area to check if Player Characters are within the room.

NOTE: if no player characters are within a room and you trigger a random encounter, either by hitting the hot key or the specified time is reached, not chat box will be displayed.

RollTable

Random Encounter Room RollTable Example

Defined two room Random Encounter RollTables.

Room/Area Drawings

Random Encounter Room Setup

Use the drawing tools to create a drawing, Random Encounter can use either the Rectangle, Ellipse, or Polygon drawings to determine the area/room trigger.

NOTE: make sure to name the drawing using the Text Label settings. This will be used to tie back to the Random Encounter.

Random Encounter Room Drawing

Random Encounter Settings

Random Encounter Room Setting Example

Setup two random encounters for each room within the scene. Settings to Note:

Trigger Random Encounter

Random Encounter Room Result

Rolling for a random encounter in the test room.

First chat box is a success of a random encounter trigger.

Second chat box is a failure of a random encounter trigger.

Random Encounter Room Result 2

Rolling for a random encounter in the test1 room.

First chat box is a success of a random encounter trigger.

Second chat box is a failure of a random encounter trigger.

Random Encounter for a Day/Night

If your random encounter has a specification of only triggering if the player characters are at night or during the day, you can set the settings to make sure the RollTable is only triggered based on the lighting settings.

RollTable

Random Encounter Day/Night RollTable Example

Setup two different RollTables, one to roll for Day Encounters and one to roll for Night Encounters.

Random Encounter Settings

Random Encounter Scene Example

Setup two different Random Encounter settings, one to roll for Day Encounters and one roll for Night Encounters. Settings to Note:

Trigger Day Random Encounter

Random Encounter Day Example

With the Lighting Settings and having the Transition to Daylight enabled, will trigger the day roll table.

Trigger Night Random Encounter

Random Encounter Night Example

With the Lighting Settings and having the Transition to Darkness enabled, will trigger the night roll table.

Categories

Available Versions

  1. Version 0.3.0

    Compatible Foundry Versions: 10 - 10 Installation Link: Manifest URL
  2. Version 0.2.9

    Compatible Foundry Versions: 10 - 10 Installation Link: Manifest URL
  3. Version 0.2.8

    Compatible Foundry Versions: 10 - 10 Installation Link: Manifest URL
  4. Version 0.2.7

    Compatible Foundry Versions: 10 - 10 Installation Link: Manifest URL
  5. Version 0.2.6

    Compatible Foundry Versions: 10 - 10 Installation Link: Manifest URL
  6. Version 0.2.4

    Compatible Foundry Versions: 9 - 9 Installation Link: Manifest URL