Register

Weapon Reload

An Add-on Module for Foundry Virtual Tabletop

Author: andyp22 Project: Source Foundry Versions 13 to 14 (Verified 14) Last Updated 7 hours, 19 minutes ago

Weapon Reload Module

The Weapon Reload module adds reload functionality to weapons so they can behave more like firearms. It provides system overrides, module settings, coded features, and a compendium containing base and variant items.

Supported Systems

This module supports the following systems:

Dependencies

The only dependencies at this time are Foundry and a supported game system.

System overrides

Base items

Feature types

Item properties

Module settings

The Weapon Reload module provides the following configurable settings:

Features

Reloadable Weapons

Reloable Weapons are things like firearms that use ammunition but can have more than one bullet/projectile loaded into it at a time. In order for a weapon to be reloadable it must have the following configured:

Ammunition

Ammunition must have a Base Weapon Type of Bullet, Firearm. If a piece of ammunition can be marked Unstable using the item's Ammunition Properties.

Firearm attacks

Firearms have a limited amount of ammunition before they must be reloaded. While the default attack behavior does most of the heavy lifting for a firearm attack, some supplemental behavior is needed in order to be able to:

How it works

  1. The player clicks on a firearm in their inventory and completes an attack roll.
  2. A bullet is pulled from the firearm's loadout stored in the item's flags and an Empty bullet is added to the end of the loadout.
  3. The fired bullet is added to the front of a fired flag and the last item is removed.
  4. The player is notified which bullet was fired along with details about the item and two buttons:
    • Refund: This button allows the player to refund the last shot. It can be used until there are no more bullets to refund.
    • Misfire: This button rolls a 1d6 for the player in the event the roll a critical failure when firing a firearm.
  5. If a player fired an empty weapon by mistake, they are notified and presented a button that will trigger the Reload feature.

Reload feature

The Reload feature is an Item Activity meant to be used with items that have the base type of reloadableWeapon as a way to eliminate any need for manual tracking of ammunition on the user's part.

How it works

Note: The player must have some ammunition in their inventory.

  1. The player clicks the Reload feature on their reloadable weapon.
  2. The player selects a loadout from ammunition in their inventory using a dialog and the ammunition is loaded in the selected order.

From a developer point of view, the flow is:

  1. The player clicks the Reload activity on one of their character's reloadableWeapons.
  2. The current loadout, from the chambered flag, is refunded to the player.
  3. The fired flag is reset.
  4. The player selects a loadout from ammunition in their inventory.
  5. The ammunition is loaded in the selected order and removed from inventory counts.
  6. The player is notified what ammunition has been loaded into which firearm.

Artificer Infusion: Repeating Shot

The Repeating Shot feature is a named Attack Activity meant to be used in place of the regular firearm attack. It behaves the way the Artificer's Repeating Shot infusion would work by using a special type of ammunition and not consuming any bullets from the weapon's loadout. The ammunition type that is used for the repeating shot can be configured via the module setting, Repeating Shot Ammunition UUID, and by default is the Repeater Round found in the modules compendiums.

Note: Any ammunition that shares the same name as the configured Repeating Shot Ammunition UUID will be excluded from user's reload options, even if they have it equipped and in their inventory.

User Guide

A user guide can be found here.

Compendiums

The following compendiums are provided:

Possible Features

Development Status

This module is in alpha release.

License

Licensed under the GPLv3 License.

Supported Game Systems

  1. Dungeons & Dragons Fifth Edition

    Latest Version: Version 6.0.3 Last Updated 1 day, 19 hours ago

Categories

Available Versions

  1. Version 1.0.0

    7 hours, 19 minutes ago
    Foundry Version 13 - 14 (Verified 14) Manifest URL Read Notes
  2. Version 0.2.5

    1 day, 9 hours ago
    Foundry Version 13 - 13 (Verified 13) Manifest URL Read Notes