Use Equips as Items

Use Equips as Items
Selchar
​
Introduction

This script allows you to use equips in battle as if they were items, activating a skill of your choice.

How to Use
Place the script below ▼ Materials, but above ▼ Main Process. Use the provided notetag to allow your equip to appear in the BattleItems window, and assign it a skill to be used.

Script
>>Here<<

FAQ
Q: What are the terms of use?
A: My terms are, anything goes, credit is appreciated of course.

Credit and Thanks
- Selchar
Wow, I just saw someone request something like this a few days ago I think... Really Useful... 🙂
nice script. remind me of breath of fire games where we can use equipment.
And... Updated!  The original version only had equips usable in battle, now you have an option of allowing them to be used outside of battle as well(if the skills have costs, they will of course be taken from from the 1st actor in the party... I think).  Whether or not an item can be used outside of battle if you allow it, will be determined by the designated skill's occasion.
It'd be nice if aside from the skill trigger there was a common event trigger
It'd be nice if aside from the skill trigger there was a common event trigger
How about make the skill trigger a common event?
Does your item charges script work on equips?
When I use together with Use Condition Tags by tsukihime, equip didn't appear in battle item window
can so0meone make compatibility patch?
When I use together with Use Condition Tags by tsukihime, equip didn't appear in battle item window


can so0meone make compatibility patch?
Unusable items by default are not shown in the battle item window.


This is why you don't see weapons or armors or anything that cannot be used in battle.
So, How to make both script work together?
Try switching the order of the scripts.
I took a quick look at the script mentioned and my own.  Here's my advice.

1: Make sure this script is below Tsukihime's

2: Tag the skill linked to the equip by my script, not the equip itself.

I haven't tested it, but from what I'm seeing it should work.
It's still not working.

I think the cause is both script have:

Game_BattlerBase usable?(item)
Figured out the problem.  Tsukihime's script has the following overwrite of a method which don't touch and I overlooked
 

class Window_BattleItem < Window_ItemList    #-----------------------------------------------------------------------------  # Overwrite. Want it to show all items that can be used in battle  #-----------------------------------------------------------------------------  def include?(item)    item ? item.is_a?(RPG::UsableItem) && BattleManager.actor.occasion_ok?(item) : false  endendPlacing the following after both scripts should solve it.
 

Code:
if $imported["TH_TagUseConditions"]class Window_BattleItem < Window_ItemList  alias :sel_usable_equips :include?  def include?(item)    return usable_equip_tag_include_check(item) if item.is_a?(RPG::EquipItem)    return sel_usable_equips(item) if item.is_a?(RPG::UsableItem)  end    def usable_equip_tag_include_check(item)    return false unless item.use_as_item    return false unless BattleManager.actor.occasion_ok?($data_skills[item.use_as_item])    return true  endendend
Its work, but have compatibility issue with VE-target arrow
any suggestion for target arrow script that work for this script?

Original thread: https://forums.rpgmakerweb.com/threads/use-equips-as-items.23451/