DerVVulfman
Sponsor
Consume Items Patch for Connected Attacking
Version: 1.0
Introduction
Discovered in mid August, 2006 was a little glitch when combining two of cogwheel's scripts: Skills That Consume Items and Connected Attacking. While Connected Attacking had to be the last script added into the RTAB list of add-ons for it to work without errors and freezes, it DID however eliminate the feature of items getting used up by skills... in battle (though it still worked outside of battle).
What this patch does is remedy this problem. It returns this feature to users of both Skills That Consume Items and Connected Attacking.
Screenshots
Huh?
Demo
C'mon. It's a patch guys. You got the demo on every other RTAB post I've put up!!!
Script
Instructions
Just paste this below all the other RTAB Add-Ons... right under Connected Attacking (which better be the last one in your current list guys). As it Aliases one def in Connected Attacking, it fixes that problem and returns the Item Using feature.
Compatibility
Only an RTAB patch. It assumes you're using Skills That Consume Items and Connected Attacking(in that order). If ya ain't using any of 'em... why are you here? :D
Credits and Thanks
To Onsokamaru, for finding the wee little glitch.
Author's Notes
Not much to note. Only took 10 minutes to write the script (and 1/2 hour to post :D ) .
Version: 1.0
Introduction
Discovered in mid August, 2006 was a little glitch when combining two of cogwheel's scripts: Skills That Consume Items and Connected Attacking. While Connected Attacking had to be the last script added into the RTAB list of add-ons for it to work without errors and freezes, it DID however eliminate the feature of items getting used up by skills... in battle (though it still worked outside of battle).
What this patch does is remedy this problem. It returns this feature to users of both Skills That Consume Items and Connected Attacking.
Screenshots
Huh?
Demo
C'mon. It's a patch guys. You got the demo on every other RTAB post I've put up!!!
Script
Code:
# Consume Items Patch for Connected Attacking v 1.0 (08-18-2006)
# by DerVVulfman
#==============================================================================
# ** Scene_Battle (part 4)
#------------------------------------------------------------------------------
# This class performs battle screen processing.
#==============================================================================
class Scene_Battle
#--------------------------------------------------------------------------
# * Make Skill Action Results
#--------------------------------------------------------------------------
alias make_skill_action_result_consume make_skill_action_result
def make_skill_action_result(battler, plus_id)
make_skill_action_result_consume(battler,plus_id)
# If item(s) are used
if battler.is_a?(Game_Actor)
items = battler.medium(@skill.id)
if items
for item in items
id = battler.item_name(item[0])
num = item[1] == nil ? 1 : item[1]
# Check if consumable
if $data_items[id].consumable
$game_party.gain_item(id, -num)
end
end
end
end
end
end
Instructions
Just paste this below all the other RTAB Add-Ons... right under Connected Attacking (which better be the last one in your current list guys). As it Aliases one def in Connected Attacking, it fixes that problem and returns the Item Using feature.
Compatibility
Only an RTAB patch. It assumes you're using Skills That Consume Items and Connected Attacking(in that order). If ya ain't using any of 'em... why are you here? :D
Credits and Thanks
To Onsokamaru, for finding the wee little glitch.
Author's Notes
Not much to note. Only took 10 minutes to write the script (and 1/2 hour to post :D ) .