- Home>
- RMXP Script >
- [RGSS] DRG - Limited Shop
Posted by : LiTTleDRAgo
Mar 17, 2013
Explanation
In this shop, you can only buy items at limited amount before it is sold out
If you want to buy the same item, you must visit another store
Sorry this script is currently bugged, you can look for v2 here
In this shop, you can only buy items at limited amount before it is sold out
If you want to buy the same item, you must visit another store
How To Use
To use it, go to script command and put
Script :
$limited_shop = {
0 => ['i1','i2','i3','i4'], # This means item 1,2,3,4 didn't have limit
1 => ['w1','w2','a1'], # This means weapon 1,2 and armor 1 can be
# bought
only
1 times
2 => ['a2'], # This means armor 2 can be bought 2 times
# The Feature Below can be disabled by setting SHOP_HAS_GOLD into false
'G' => 3000 # This means the shop is have 3000 gold
# If shop only have 0 gold, you can't sell anything
# Can be disabled in script
}
Sorry this script is currently bugged, you can look for v2 here
Related Posts :
RMXP Script
If I enter the Shop and buy a Limit Item, it disapear. But If I enter the shop again, the Limit item apears again.
ReplyDeleteHow is it possible to Limit the item ever?
can you tell me what script call did you use?
DeleteI was having the same problem. The shop simply didn't save how many items were purchased, and always reset to full stock when the player exits and comes back. Here was the only command in my event:
Delete$limited_shop = {
2 => ['i22']
}
Basically, you HAVE to set the gold for the shop when you call it. Like this:
$limited_shop = {
2 => ['i22']
'G' => 0
}
can you use this instead? : http://littledrago.blogspot.com/2013/05/rgss-drg-limited-shop-v2.html
Deletecurrently I didn't have the time to update the script