The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => VXA Scripts Database => Topic started by: pacdiggity on February 18, 2012, 03:02:30 AM

Title: Price Changer
Post by: pacdiggity on February 18, 2012, 03:02:30 AM
Price Changer
Version: 1.0
Author: Pacman
Date: February 18th, 2012 (that's right, from the future)

Version History




Planned Future Versions


Description



This script allows you to change the price of items mid-game.

Features


Screenshots

No graphical aspect.

Instructions

Paste above main, read script header for further instructions.

Script



Get it at Pastebin (http://pastebin.com/7xcv8y8h).

Credit




Thanks


Support



Post here, or PM me if your problem is embarrassing.

Known Compatibility Issues

Everything should be 100% compatible. No overwriting methods or aliases.

Demo



Eh. If you need it, just ask.

Author's Notes



Shameless plug for my blog (http://pacmanvx.wordpress.com/).
And I don't actually think Kuku's an idiot.

Restrictions

Free for use with credit in non-commercial games. For commercial games, contact me.
Title: Re: Price Changer
Post by: yuyu! on February 18, 2012, 03:14:57 AM
Neat! :o My goodness you scripters work fast. :V This is definitely a must-have! Thanks, Pacman. :)
Title: Re: Price Changer
Post by: FlipelyFlip on March 15, 2012, 09:40:40 PM
heyey,

nice script, but the ace contains it as default ._.

It's by the Create Shop Event Command when you add an Item, you can set the price to any amount ._.
Title: Re: Price Changer
Post by: LoganF on March 15, 2012, 09:57:43 PM
The default system in VXA let's you specify the price a certain shop sells an item at. This script changes the original price of the item for that game. If you don't use the system in VXA that lets you set a price for an item for that shop, you can use this script to change the cost of the item in all shops.

At least that is my impression from taking a quick peak at the script.

What might be nice as an addition is a way to increase or decrease the price of an item regardless of what value the item is given in a shop. For example, if Shop A sells Potion for 100G, and Shop B sells Potion for 200G, you can reduce the price by 50G to make it Shop A: 50G and Shop B: 150G. Thus integrating both the default implementation and this script as a way of changing the price of an item in all shops.
Title: Re: Price Changer
Post by: EvilM00s on March 16, 2012, 12:32:47 AM
Scripters are rock stars. THanks for your work, Pac!
Title: Re: Price Changer
Post by: pacdiggity on March 16, 2012, 06:38:17 AM
Quote from: FlipelyFlip on March 15, 2012, 09:40:40 PM
heyey,

nice script, but the ace contains it as default ._.

It's by the Create Shop Event Command when you add an Item, you can set the price to any amount ._.

What Logan said. This script doesn't do that. I've had this argument before (http://pacmanvx.wordpress.com/2012/02/18/price-changer/).

That could be done, Logan, quite easily. I'll give that a shot over the weekend if I find time. It would be pretty simple.