Better Weapon Ranges (YEP Extension)

1590967344919.png

Better Weapon Ranges v1.0
by Immac

Introduction

This is an extension plugin for Yanfly's Selection Control plugin. It allows for specifying the range of a weapon when using Yanfly's Row Formation's plugin.

Adds the following tags:
  • <Weapon Range: x>
    Sets the maximum range of a weapon to x, and the minimum range to 0
  • <Weapon Min Range: x>
    Sets the minimum range of a weapon to x.
  • <Weapon Max Range: x>
    Sets the maximum range of a weapon to x.
Melee weapons are unchanged. Items and Skills with the <Weapon Range> tag are affected.

The valid targets of a ranged weapon are determined by the weapon's minimum range and maximum range, if a weapon has no minimum range then it's minimum range is considered 0, if a weapon has no maximum range then it's maximum range is considered infinite.

Minimum and maximum ranges are inclusive, meaning that if the target is in row 2 and the minimum range is 2 it will be able to be targeted.

A weapon with minimum range 1 and maximum range 1 is different from a melee weapon, due to melee weapons always being able to target the nearest row while a weapon with minimum range 1 and maximum range 1 is only able to target the first row.

Features
  • In line with YEP's note tags convention.
Requires
How to Use
  • Install the other required plugins
  • Read the required plugin's instructions to understand how to use them.
  • Place this plugin in your game's plugins folder, turn it on from within RMMV and place it below all of it's requirements.
  • Read the help file in the script for more information.
Script
Itch
Github

Terms:
  • Free for commercial and non-commercial use.
  • Attribution required.
  • Freebies and donations are welcome.
FAQ
Currently empty

Credit
- Immac

Author's Notes
N/A

Original thread: https://forums.rpgmakerweb.com/threads/better-weapon-ranges-yep-extension.122281/