Shop Reduction

Feelzor

Veteran
Veteran
Joined
Oct 10, 2017
Messages
92
Reaction score
79
First Language
French
Primarily Uses
RMMV
Shop Reduction v1.0.0
By FeelZoR

Free to Use for both Commercial and Non-Commercial projects.
Credits not required but highly appreciated.

You can find a more in-depth version of the TOS here.


Introduction
This plugin allows you to change the prices of shops during the game, globally or just for a specific shop, which can be useful for friendships and such things.

Features
  • Create price changes for items sold by shops, globally or on a per-shop basis.
  • Create price changes for items sold by the player, globally or on a per-shop basis.
  • Global rule taken in account even if there is a rule specific for the shop, and applied after it.
  • Only one global rule, creating another one will erase the previous one.
How to Use
After installing the plugin, everything is set up, you just need to use plugin commands!

Reduction ADD:

This command allows to change the price of items sold / bought.

Usage: Reduction ADD <shop> <action> <formula>
Shop: can be either global, this or the id of the event that will show the shop.
“global” is used to change the prices of ALL the shops, and is applied after the per-shop price modifications.
“this” is a shortcut that targets the current event.
If you use the id of the event, you should also specify the id of the map. (e.g. 4 1 will target the event with id 4 in map with id 1)
Action: can be either BUY or SELL.
“BUY” will change the prices of the items the player will buy.
“SELL” will change the prices of the items the player will sell.
Formula: the formula to apply when changing the prices.
You can either add a predefined price or add a percentage.
e.g. “+5%”, “-10” will respectively add 5% to the price or remove 10 to the price.

Examples:
- Reduction ADD global BUY +10% will increase the prices of all items sold by shops by 10%
- Reduction ADD this SELL -10 will reduce the prices of all items sold by the current event by 10G (or whatever currency you use).
- Reduction ADD 14 3 BUY +10% +5 will increase the prices of all items sold by the event with id 14 in map with id 3 by 10% then add 5G more.

Warning:
There can be only ONE global rule. Using “Reduction ADD global” will overwrite any previous global rule.

Reduction REMOVE:

This command allows to remove the price changes of shops.

Alias: RESET

Usages:
- Reduction REMOVE <shop> <action> [mapId]
- Reduction REMOVE ALL (this command will remove all the changes of all events and the global changes too)

Shop: can be either global, this or the id of the event that will show the shop.
Action: can be either BUY, SELL or ALL.

“ALL“ will remove both BUY and SELL rules.
MapId: The id of the map the event is located in.
It only works when the shop is NEITHER “global” NOR “this”. It defaults on the current map.

Examples:
- Reduction RESET ALL will remove all existing rules.
- Reduction REMOVE global BUY will remove the BUY global rule.
- Reduction REMOVE this ALL will remove both BUY and SELL rules for the current event.
- Reduction REMOVE 5 SELL will remove the SELL rule of the event with id 5 in the current map.
- Reduction REMOVE 29 BUY 7 will remove the BUY rule of the event with id 29 in the map with id 7.

Demo
Demo made with RPG Maker 1.5.2 with plugin v1.0.0

Script
You can get the plugin here.

Credits and Thanks
- FeelZoR for making the plugin.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

The Ace attorney series are so great games... But at the same time such a travesty.
Made a video showcasing a plugin (by Lanza) that adds 5 more weather effects to our MV games. :LZYsmile: Namely:
Ash-dust,
bloodrain,
Cherry Blossom Petals,
Hail,
and bubbles.

I just like this website:
lol

Forum statistics

Threads
103,239
Messages
998,301
Members
134,729
Latest member
Takufy
Top