public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

MV SDJB_InventoryWeight

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: MV SDJB_InventoryWeight
  • Original author: ShadowDragon
  • Original date: November 13, 2025
  • Source thread: https://forums.rpgmakerweb.com/threads/sdjb_inventoryweight.181011/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugins In Development

Summary

PluginName: SDJB_InventoryWeight Author: ShadowDragon Spoiler: How it works Code:

Archived First Post

PluginName: SDJB_InventoryWeight
Author: ShadowDragon

Code:
Introduction
 ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
 Adds a weight system to your inventory with the following features:
 → Weight capped.
 → Overweight ability with speed reduction.
 → Weight upgrade by script call.
 → Add Weight Bonus, adding weight to the base weight based on equipped equipment.
 → Ignore Weight, to ignore all weight calculations.
 → Ability to discard and use items.
 → Weight information display.

 All notetags are converted to lowercase for safety.

 Display Discard Window → Enables Discard without Weight.


 Features in Depth
 ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
 Weight Capped:
    By default, weight is capped but can be toggled via script call:
    $gameSystem.setOverweight(true)  => enable overweight mode
    $gameSystem.setOverweight(false) => disable overweight mode

    When disabled (capped mode), new items are only added if enough
    capacity remains. If not enough space is available, only a partial
    amount is added (based on available weight), and the rest is skipped.

    Items are processed in the order they are gained, so if capacity runs out,
    later items in the same event may not be received. A warning message
    is shown in the console when this happens.


 Overweight:
    When overweight is enabled, player movement speed is dynamically reduced.
    If overweight reaches 0.5 (50%) above the base, Dash is disabled.
    If overweight reaches 1.5 (150%), the player cannot move.

    Overweight mode also automatically enables the discard window,
    which can be used directly and updates when using or discarding items.


 Weight Upgrade:
    You can upgrade the base weight via script call:
    $gameSystem.modInvWeight(5)   => add 5 to the base weight
    $gameSystem.modInvWeight(-5)  => subtract 5 from the base weight
   
    Note: the modified value can go below 0 relative to the base.


 Weight:
    Adding weight to items supports decimals (up to 2 places).
    <Weight: 0.05>  => adds 0.05 weight.
    If the value has 3 decimals (e.g., 1.322), it truncates to 1.32 (no rounding).

    A default weight can be set for all items in the parameters.


 Weight Bonus:
    Weight bonuses can be given to equipment using the tag:
    <Weight Bonus: value>  => changes inventory weight when equipped

    Example:
    <Weight Bonus: 5>   => adds +5 to base weight
    <Weight Bonus: -5>  => subtracts -5 from base weight
 

 Ignore Weight:
    You can create an item that grants a state to ignore all weight.
    Best used for a limited number of steps, allowing players to move
    or sell items without having to discard them immediately.


 Discard Items:
    You can discard items if the parameter is set to true, or if
    overweight mode is active. In either case, the discard option
    becomes available in the item menu.

    This window lets you confirm item use or choose how many to discard,
    depending on the selected command.

    The discard amount can be adjusted with the arrow keys:
    Arrow UP    = +1
    Arrow DOWN  = -1
    Arrow LEFT  = -10
    Arrow RIGHT = +10
    Press Enter or Z to confirm, X or ESC to cancel.

    Items with the tag <No Discard> cannot be discarded.

    Discard can also be used without the weight system if
    “Display Discard Window” is enabled.


 Weight Details:
    Weight details can be shown by holding the SHIFT key.
    This displays the following information:

    Base:  set in parameters
    Mod:   changed via script calls
    Bonus: added or removed from equipped gear
    Total: total carrying capacity
    Used:  current total weight used

    Useful for debugging or balancing purposes.

=== TERMS OF USE ===
Free for Non-Commercial and Commercial use when credit is given.
credit one of the following:
ShadowDragon
ShadowDragonJB


=== WARNING ===
YOU ARE NOT ALLOWED TO:
* MODIFY without permission
* EXTEND without permission
* TAKE CODE without permission
* CLAIM AS YOU MADE IT
* REDISTRIBUTE but link back to the forum or itch.io
* SELL this product as standalone.
* DO NOT REMOVE THE HEADER.

Download on itch.io (as it require my SDJB_Base (main or mini))

Features Mentioned

  • ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞ ͞
  • Weight Capped:
  • By default, weight is capped but can be toggled via script call:
  • $gameSystem.setOverweight(true) => enable overweight mode
  • $gameSystem.setOverweight(false) => disable overweight mode
  • When disabled (capped mode), new items are only added if enough
  • capacity remains. If not enough space is available, only a partial
  • amount is added (based on available weight), and the rest is skipped.
  • Items are processed in the order they are gained, so if capacity runs out,
  • later items in the same event may not be received. A warning message
  • is shown in the console when this happens.
  • Overweight:
  • When overweight is enabled, player movement speed is dynamically reduced.
  • If overweight reaches 0.5 (50%) above the base, Dash is disabled.
  • If overweight reaches 1.5 (150%), the player cannot move.
  • Overweight mode also automatically enables the discard window,
  • which can be used directly and updates when using or discarding items.
  • Weight Upgrade:

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

License / Terms Note

=== TERMS OF USE === Free for Non-Commercial and Commercial use when credit is given. credit one of the following: ShadowDragon

Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#rpg-maker-archive#js-development

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar