Weapons Blocked from Attacks
#1
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.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Collateral Attacks DerVVulfman 2 407 11-10-2024, 08:55 AM
Last Post: Bennerdeben
   Weapons Swap XP kyonides 1 1,663 01-15-2023, 04:56 AM
Last Post: kyonides
   KEW XP - Enemies + Weapons kyonides 1 4,589 01-27-2019, 06:26 PM
Last Post: kyonides
   Weapons : Target All Kain Nobel 1 5,761 06-04-2016, 11:23 PM
Last Post: Steel Beast 6Beets
   Enemy Melee Status Attacks DerVVulfman 3 8,906 10-15-2015, 07:22 PM
Last Post: Steel Beast 6Beets
   Two-Handed Weapons RPG Advocate 2 7,519 07-07-2013, 03:52 AM
Last Post: DerVVulfman
   Weapons That Use HP/SP DerVVulfman 0 4,943 12-31-2009, 05:07 AM
Last Post: DerVVulfman
   Cursed Weapons and Armor RPG Advocate 0 4,544 03-03-2008, 04:51 AM
Last Post: RPG Advocate



Users browsing this thread: 1 Guest(s)