Can't believe I missed a script request that's using the request template.
This one should do it.
#============================================================================
# ** RPG::Item
#----------------------------------------------------------------------------
# This module handles item information.
#============================================================================
module RPG
class Item < UsableItem
#--------------------------------------------------------------------------
# * Get Array of clas ID's that cannot use the item
#--------------------------------------------------------------------------
def unusable_by_class?(class_id)
# Check for classes that cannot use item
self.note[/DISABLE_USE: (.*[0-9])/i]
# Return false if match is nil (Default)
return false if $1 == nil
# Return true if matched array includes class id
return true if $1.split.collect! {|id| id.to_i}.include?(class_id)
# Return false by default
return false
end
end
end
#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
# This class performs battle screen processing.
#==============================================================================
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# * Alias Listings
#--------------------------------------------------------------------------
alias tds_item_class_use_scene_battle_update_item_selection update_item_selection
#--------------------------------------------------------------------------
# * Update Item Selection
#--------------------------------------------------------------------------
def update_item_selection
# If input trigger C
if Input.trigger?(Input::C)
# Get Item
item = @item_window.item
# If Item is not nil and it's not usable by class
if item != nil and item.unusable_by_class?(@active_battler.class_id)
# Play Buzzer SE
return Sound.play_buzzer
end
end
# Run Original Method
tds_item_class_use_scene_battle_update_item_selection
end
end
Pretty much the same as the other script, except that it uses this in the note tag.
DISABLE_USE: # # # # # #
# = The ID of the classes you want to disable the item for.
DISABLE_USE: 1 2 3 4
I did not see any links to the "Sideview Battle System" , so I have no idea if this will be compatible with it.
Let me know if it works out for you and if you need anything added or removed.
Have a nice day.