efeberk 84 Posted April 26, 2013 (edited) #~ Features : #~ This script allows to limit item count that player can buy. Screenshot : It means that player can't buy 16+ Magic Water in this shop. Script : #~ ------------------------------------------------------------- #~ Script : Limited Items in Shop #~ Scripter : efeberk #~ Date : 26.04.2013 #~ Version : RMVX Ace #~ ------------------------------------------------------------- #~ Features : #~ This script allows to limit item count that player can buy. #~ Example : LIMIT_VARIABLE = 33 #~ This means : The limit count will be 33.variable value. module EFEBERK LIMIT_VARIABLE = 33#Set this variable '0' to disable this option end class Window_ShopNumber < Window_Selectable def change_number(amount) if EFEBERK::LIMIT_VARIABLE > 0 && $game_variables[EFEBERK::LIMIT_VARIABLE] > 0 @number = [[@number + amount, @max].min, 1].max if [[@number + amount, @max].min, 1].max <= $game_variables[EFEBERK::LIMIT_VARIABLE] else @number = [[@number + amount, @max].min, 1].max end end end Edited May 12, 2013 by efeberk 1 Share this post Link to post Share on other sites
mizu-ki 15 Posted April 26, 2013 Isn't Tsukihime has already made a script like this? o.o Share this post Link to post Share on other sites
efeberk 84 Posted April 26, 2013 I don't care who did a script like that before times. I just wanted share . 2 Share this post Link to post Share on other sites
Tsukihime 1,489 Posted April 26, 2013 (edited) Isn't Tsukihime has already made a script like this? o.oNope, nor does it really matter. Edited April 26, 2013 by Tsukihime 1 Share this post Link to post Share on other sites