- 0
Decreasing variables when selling items.
Asked by
VerticalSunsetIX
-
Recently Browsing 0 members
No registered users viewing this page.
Asked by
VerticalSunsetIX
No registered users viewing this page.
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.
Share this post
Link to post
Share on other sites