Save-Point
Weapons Blocked from Attacks - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+--- Thread: Weapons Blocked from Attacks (/thread-8868.html)



Weapons Blocked from Attacks - DerVVulfman - 12-03-2023

Weapons Blocked from Attacks
Version: 1.0



Introduction
This script disables the "ATTACK" menu option in the default battlesystem if the actor is equipped with a defined weapon. This may be useful if the weapon equipped is not meant for melee attack, but for some skill action in its place (a magic staff for example).

Just populate the LIST array within the BlockedWeapons module with the IDs of weapons that should not be allowed to make melee attacks.



Screenshots
All you'd see is that the "ATTACK" text in the Actor Command Window going Gray. Big Whoop.



Script
The Script


Instructions

Paste below Scene_Debug and above Main. If using a custom battlesystem and/or MultiSlots!, then paste below those as well. Fill in the LIST array with IDs of weapons not allowing your hero to perform melee attacks.



Compatibility
Should be compatible with the default RPG combat system for RPGMaker XP. It attaches code to the method that reveals the combat window and to the method permitting action selection. Most anything else is either new or attached code.



Terms and Conditions
Free for use, even in commercial products. Only due credit is needed.