Register

Sense Walls Multisystem

An Add-on Module for Foundry Virtual Tabletop

Author: 4535992 Project Source: Project URL Versions 9+ (Verified 9) Last Updated 2 years, 9 months ago

Sense Walls Multisystem

A module for Foundry VTT that allows to add and remove walls based on the active effects applied on the token.

Just something i have done for understands how levels and other module work with WallLayer and Sightlayer.

This project is a started idea , maybe this can be evolved in something more articulate.

img

Installation

It's always easiest to install modules from the in game add-on browser.

To install this module manually:

  1. Inside the Foundry "Configuration and Setup" screen, click "Add-on Modules"
  2. Click "Install Module"
  3. In the "Manifest URL" field, paste the following url: https://raw.githubusercontent.com/p4535992/fvtt-sense-walls-multisystem/master/src/module.json
  4. Click 'Install' and wait for installation to complete
  5. Don't forget to enable the module in game using the "Manage Module" button

libWrapper

This module uses the libWrapper library for wrapping core methods. It is a hard dependency and it is recommended for the best experience and compatibility with other modules.

socketlib

This module uses the socketlib library for wrapping core methods. It is a hard dependency and it is recommended for the best experience and compatibility with other modules.

Supported Systems

Features

Walls can be configured to only show up to a certain level of vision. For example, if the "Piercing Vision Level" is set to "Darkvision" then a character with darkvision or greater darkvision can see and move through the wall (depend on the configuration of the wall), but one with only low-light vision cannot.

You can set the value on the wall config dialog from a dropdown.

You can use any active effect where the name is founded from the following code

// regex expression to match all non-alphanumeric characters in string
const regex = /[^A-Za-z0-9]/g;
// use replace() method to match and remove all the non-alphanumeric characters
effectNameToCheckOnActor = effectNameToCheckOnActor.replace(regex, "");
effectNameToCheckOnActor.toLowerCase().startsWith(effectIdOfTheModule);

Tables

These tables are essential because they help the communtity to decide how to calculate a hierachy between the Active Effect

The calculation is done with this formula:

Maximum vision wall level >= token vision level (Active Effects) >= Minimum vision level

System Dnd5e

Image Effect\Vision Level effectId used on the module Minimum Maximum Check Elevation
None none -2 -1 false
Normal normal 0 1 false
Blinded blinded -1 0 false
Darkvision darkvision 0 3 false
Tremor Sense tremorsense 0 10 true
See invisible seeinvisible 0 5 false
Blind Sight blindsight 0 6 false
True Sight truesight 0 7 false
Devil's sight devilssight 0 8 false

System Pf2e

Image Effect\Vision Level effectId used on the module Minimum Maximum Check Elevation
None none -2 -1 false
Normal normal 0 1 false
Blinded blinded -1 0 false
Low Light Vision lowlightvision 0 2 false
Darkvision darkvision 0 3 false
Greater Darkvision greaterdarkvision 0 4 false

API

This api is redundant it can be easily replace from other macros or modules, is advisable to use other module like CUB or Dfred convenient effects

addEffect(actorNameOrId: string, effectId: string, distance: number) ⇒ void

Calculate the distance between the source token and the target placeable objet Returnsvoid -

Param Type Description
actorNameOrId string The name or the id of the actor, if applied on a token must be linked to a actor.
effectId string The effectId used from this module
distance number OPTIONAL: explicit distance in units not grid to add to the Active Effects

ExampleSenseWalls.API.addEffect('Zruggig Widebrain','darkvision',60) game.sense-walls-multisystem.API.addEffect('Zruggig Widebrain','darkvision',60)

Categories

Available Versions

  1. Version 0.0.13

    2 years, 9 months ago
    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  2. Version 0.0.9

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes
  3. Version 0.0.3

    Foundry Version 9+ (Verified 9) Manifest URL Read Notes