Use Equips as Items

Selchar

Veteran
Veteran
Joined
Dec 28, 2012
Messages
299
Reaction score
81
First Language
English
Primarily Uses
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
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Wow, I just saw someone request something like this a few days ago I think... Really Useful... :)
 

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,309
Reaction score
531
First Language
indonesian
nice script. remind me of breath of fire games where we can use equipment.
 

Selchar

Veteran
Veteran
Joined
Dec 28, 2012
Messages
299
Reaction score
81
First Language
English
Primarily Uses
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.
 

Internetakias

RPG Maker VX Ace Noob :P
Member
Joined
Aug 26, 2012
Messages
67
Reaction score
8
First Language
Greek
Primarily Uses
It'd be nice if aside from the skill trigger there was a common event trigger
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Does your item charges script work on equips?
 
Last edited by a moderator:

agusdws

Villager
Member
Joined
Jul 1, 2013
Messages
5
Reaction score
0
First Language
indonesia
Primarily Uses
When I use together with Use Condition Tags by tsukihime, equip didn't appear in battle item window
can so0meone make compatibility patch?
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
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.
 

agusdws

Villager
Member
Joined
Jul 1, 2013
Messages
5
Reaction score
0
First Language
indonesia
Primarily Uses
So, How to make both script work together?
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Try switching the order of the scripts.
 

Selchar

Veteran
Veteran
Joined
Dec 28, 2012
Messages
299
Reaction score
81
First Language
English
Primarily Uses
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.
 

agusdws

Villager
Member
Joined
Jul 1, 2013
Messages
5
Reaction score
0
First Language
indonesia
Primarily Uses
It's still not working.

I think the cause is both script have:

Game_BattlerBase usable?(item)
 

Selchar

Veteran
Veteran
Joined
Dec 28, 2012
Messages
299
Reaction score
81
First Language
English
Primarily Uses
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
 

agusdws

Villager
Member
Joined
Jul 1, 2013
Messages
5
Reaction score
0
First Language
indonesia
Primarily Uses
Its work, but have compatibility issue with VE-target arrow
any suggestion for target arrow script that work for this script?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top