Basically, how would one go about decreasing a certain variable when a certain item is sold? I've worked with modifying parts of scripts in the past, but I am not sure as to how to set this up. I'm guessing that it would involve editing and adding to this part of the "Scene_Shop" script.
# Sell process
$game_party.gain_gold(@number_window.number * (@item.price / 2))
case @item
when RPG::Item
$game_party.lose_item(@item.id, @number_window.number)
when RPG::Weapon
$game_party.lose_weapon(@item.id, @number_window.number)
when RPG::Armor
$game_party.lose_armor(@item.id, @number_window.number)
end
Anyone care to offer any help? Thanks.