Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
And on the othyer side i need to make a recycling machine that will buy (and give you credits) the scraps that you collected, but will not sell anything. So the only way to get credits is to give a visit to the recycler to try to turn your junk items into credits.
Also you can have events setup using conditional branches, Choice options, and the Change Items command.
something like having a list of choices for the different possible items then have a Conditional that will check to see if those said-name items exist in the inventory. if yes bring up an input number command that will check a variable(set with the amount of the item) to insure that they don't go over the max then add the appropiate amount of credits and remove those items.
It's basicly how the shop function works.
Basically before calling a shop that should only allow you to sell items, you have to set a switch to "on" (in my example, $game_switches[1] aka the first switch)
The shop as soon as it opens will reset the switch back to OFF so all you really need is to set the switch to ON just before calling the shop that is "sell only".
This script also change the "Sell" button to "Recycle" but you can remove this part if you aren't interested, and instead of graying out the "Buy/Sell" button that is not available, it simply removes it.
#SCRIPT BEGIN HERE
#--------------------------------------------------------------------------
#->Allow to deny access to the buy/sell button (remove)
#->Rename "sell" to recycle.
#
#Do not forget to update the switch number!
#--------------------------------------------------------------------------
class Window_ShopCommand < Window_HorzCommand
#Init
def initialize(window_width, purchase_only)
@window_width = window_width
@purchase_only = purchase_only
@sell_only = $game_switches[1]
#Once initialized we reset the switch for convenience.
$game_switches[1] = false
super(0, 0)
end
#Options creation
def make_command_list
if(!@sell_only)
add_command(Vocab::ShopBuy, :buy)
end
if(!@purchase_only)
add_command(Vocab::ShopSell, :sell)
end
add_command(Vocab::ShopCancel, :cancel)
end
end
module Vocab
ShopSell = "Recycle"
end
#--------------------------
#SCRIPT END HERE