First go to the script editor and then go to Window_ShopBuy
scroll all the way down to line 56 where you will find def price(item)
replace it with this:
def price(item)
return @price[item] if $game_switches[7] != true
return @price[item] / 2 if $game_switches[7] == true
end
This will half the cost of all items if switch 7 is true/on and returns the cost to normal if switch 7 is false/off.
( != means not equal to and == means equal to)
Now just create an event on the map that puts switch 7 to true and calls the shop command.
If you want to reduce the cost even further than half by dividing with a decimal, write the code like this: return (@price[item] / 1.5).to_i
this prevents the item cost from turning into one long decimal number (something like 3.4111111112) and turns it into a regular 3.
0 comments