Sell Price Formulas

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English



The Shop Manager has been updated to support custom sell price formulas for a shop. 


By default, the selling price of an item is equal to half the buying price of the good at the shop.


This new feature allows you to separate the selling price from the buying price using simple script calls.


Get it at Hime Works!
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
While there's a way around the pricing limitations of the database, this is pretty nifty for anyone who is making special timed/deal shops or whatnot, so now you won't have to make multiples of a single item in the database, just because you want a shop to sell the item at a different price.

It's hardly one of your most useful scripts(lets be real, some of your scripts are downright life savers), but It's a nice little option to have :)
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
What are some workarounds available?
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
What are some workarounds available?
Making duplicates of the item, and setting them with a different price.

Lol yea not pretty at all I know, but it kind of works(the only real flaw doing it this way, is technically they are different items, so the wont beable to stack with each other). Needless to say, your script handles such so much better.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Duplicates would work up to a certain point.


For example, suppose you had a commerce-intensive game where materials in one city may be cheaper than materials in another city.


You could run some commands that will swap all of your goods with the corresponding duplicate entry, and maybe use a snippet to facilitate that.


Granted that solution requires you to have a duplicate entry for every shop that requires a different price, so you'll probably run yourself into a database nightmare at some point.


Plus the shop manager provides formulas for everything, so you can have prices dynamically change based on things like variables, switches, levels, etc.
 
Last edited by a moderator:

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
Duplicates would work up to a certain point.

For example, suppose you had a commerce-intensive game where materials in one city may be cheaper than materials in another city.

You could run some commands that will swap all of your goods with the corresponding duplicate entry, and maybe use a snippet to facilitate that.

Granted that solution requires you to have a duplicate entry for every shop that requires a different price, so you'll probably run yourself into a database nightmare at some point.

Plus the shop manager provides formulas for everything, so you can have prices dynamically change based on things like variables, switches, levels, etc.
(Oy yea, you could probally do that, I have made similar events before)Yea, if you have a mechanic where item prices are based on a region/city in your game, that's gonna very quickly turn into a database nightmare if like every city wants to have their own price.

Yea, that's pretty cool.
 

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,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top