Shop Processing in Bundles

Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
Hello, is there any script or eventing methods to enable shopping by bundles? Example:


A) The shop menu either enables you to buy items in multiples of a number, such as 10 -
Arrows x10 / x20 / x30 / etc 
 


B ) or a set number above 1 -


Arrows x2 / x7 / x13 / x25 / etc (Only one of these numbers, meaning it's a one-time purchase and the item is no longer available - this would require a script I assume)


I know I can:
> Check number of item before shopping and after.
> Calculate the difference (to detect if you purchased it)
> Increase your item by the relevant multiple depending on the difference (So if you bought 2 arrows, it meant you bought 2 bundles and thus +20 arrows)

However, the method I described above would be tedious and probably inefficient to do, right? So any suggestions? If I can edit the main shopping script so that all shops work in multiples instead, that'd be okay for me.
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
Do you want max for item in shop and inventory in the same time?! or just from the shop and can obtain same item from other source?!!
 

Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
Do you want max for item in shop and inventory in the same time?! or just from the shop and can obtain same item from other source?!!

By max at the same time for both shop and inventory... do you mean, for example, the shop is selling Bombs x10 alone (can't get less or more) and that's also the max in your inventory?

Umm, yes that would be a nice feature, but if possible I'd also like to add on to the amount in the inventory from another source. If I desire to prevent the inventory number from increasing further, I can always try to prevent other sources from being able to do so.
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
I was waiting for anyone have solution, but i don't think there is any.


Mine not friendly but i will do my best to make it easy for use.


If you still interested, i have few questions.


1- Do you have more than one store who sell these items?!


2- If you have more than one, Is it ok if you have variables for every shop.


3- Do you want the items disappear or disable ?!


EDIT: One more question


Is the shop can refill same items or just sell it once?
 
Last edited by a moderator:

Rink27

Veteran
Veteran
Joined
Jul 18, 2014
Messages
222
Reaction score
13
First Language
English
Primarily Uses
RMMV
I was waiting for anyone have solution, but i don't think there is any.


Mine not friendly but i will do my best to make it easy for use.


If you still interested, i have few questions.


1- Do you have more than one store who sell these items?!


2- If you have more than one, Is it ok if you have variables for every shop.


3- Do you want the items disappear or disable ?!


EDIT: One more question


Is the shop can refill same items or just sell it once?

1) My game should have one store that sells these items. If you only want to satisfy my needs, then that is okay (So yes, only one). I imagine other persons may appreciate other stores that sell these items though, so that extended feature may be nice.

2) What do you mean by variables for each shop? Each shop is called depending on the value of a variable? I don't mind using additional variables if I desire to have more than one store.

3) For my game, I would like if the items disappeared in the shop menu after being purchased.

Extra question: The shop being able to refill would be amazing. My game works on a time system that uses a variable (the variable ranges from 0 to 2400 for time). So yes, I would appreciate the shop being refilled under certain conditions such as time. A script call would be nice so I can use conditional events to call it. However, if the item already exists in the shop, I guess you'd have to be wary of not increasing its amount further than normal.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top