Fluctuating Shop Prices VisuStella MZ

From Yanfly.moe Wiki
Jump to navigation Jump to search

Welcome to the wiki! This is where you can find resources from Yanfly.moe, Ækashics.moe,
VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.



Download

System

This is a plugin created for RPG Maker MZ.

InstallPluginsMz.png

UpdatePlugins.png

Troubleshooting.jpg

Click here for help on how to install plugins and an explanation on the Tier Hierarchy System.

Click here to learn how to update plugins.

Click here for how to troubleshoot plugins if you get an error.


Masterarbeit Writer


FlucShopPrices Params1.png


VisuStella MZ

This plugin is a part of the VisuStella MZ Plugin Library.

Click here if you want to help support VisuStella on Patreon.

Introduction

FlucShopPrices Params1.png

Does your gave have a live, ever-evolving market? Do the prices of items change over time depending on how your player influences the game? This plugin allows you to create fluctuating price systems via RPG Maker MZ's variable system. These variables are able to change factors such as the base price, the base padding, rates, and flat additions.

Features include all (but not limited to) the following:

  • Notetags that allow management of the base, plus, rate, and flat modifiers towards buy and/or sell prices.
  • JavaScript modifications for those who wish to finalize their calculations with a bit more control.
  • Determine if the sell version of the notetags are affected by the standard sell rate.

Requirements

This plugin is made for RPG Maker MZ. This will not work in other iterations of RPG Maker.


Tier 4

This plugin is a Tier 4 plugin. Place it under other plugins of lower tier value on your Plugin Manager list (ie: 0, 1, 2, 3, 4, 5).

This is to ensure that your plugins will have the best compatibility with the rest of the VisuStella MZ Plugin library.


Major Changes

This plugin adds some new hard-coded features to RPG Maker MZ's functions. The following is a list of them.

---

Buy and Sell Prices

FlucShopPrices Params1.png

If any item, weapon, or armor has fluctuating prices through the aid of this plugin's notetags, will have these plugin's price altering affects override the default prices found in the database.

---

VisuStella MZ Compatibility

While this plugin is compatible with the majority of the VisuStella MZ plugin library, it is not compatible with specific plugins or specific features. This section will highlight the main plugins/features that will not be compatible with this plugin or put focus on how the make certain features compatible.

---

Items and Equips Core VisuStella MZ

When using any notetags from Fluctuating Shop Prices, they will bypass any of the <Price: x>, <Sell Price: x>, and/or the JavaScript versions. That's because the fluctuating price notetags will take priority for better control and consistency.

---

Notetags

RPG Maker MZ's editor is unable to allow for custom traits/properties that a game dev may wish to associate with a database object, event, map, etc. Notetags are used to work around such limitations by allowing the game dev to tag certain traits/properties using specific Notetags declared by the related plugin.

Here is a list of Notetag(s) that you may use.


The following are notetags that have been added through this plugin. These notetags will not work with your game if this plugin is OFF or not present.

---

Price-Related Notetags

FlucShopPrices Params1.png

---

<Price Base Variable: x>
<Buy Base Variable: x>
<Sell Base Variable: x>

- Used for: Item, Weapon, Armor Notetags
- Determines the 'base' price for the affected item, weapon, or armor.
  - By default, the price formula goes (base + plus) * rate + flat
- With 'Price', the notetag will affect both 'Buy' and 'Sell' prices.
  - 'Buy' version of the notetag will only affect price when buying.
  - 'Sell' version of the notetag will only affect price when selling.
  - When selling, the base price is affected by the Sell Price Rate modifier
    if you decide to let it affect it. These settings can be altered in the
    Plugin Parameters.
- Replace 'x' with the ID of the game variable whose value determines the
  'base' price of this item, weapon, or armor.

---

<Price Plus Variable: x>
<Buy Plus Variable: x>
<Sell Plus Variable: x>

<Price Plus Variable: x, x, x>
<Buy Plus Variable: x, x, x>
<Sell Plus Variable: x, x, x>

- Used for: Item, Weapon, Armor Notetags
- Determines the 'plus' price for the affected item, weapon, or armor.
  - By default, the price formula goes (base + plus) * rate + flat
- With 'Price', the notetag will affect both 'Buy' and 'Sell' prices.
  - 'Buy' version of the notetag will only affect price when buying.
  - 'Sell' version of the notetag will only affect price when selling.
  - When selling, the plus price is affected by the Sell Price Rate modifier
    if you decide to let it affect it. These settings can be altered in the
    Plugin Parameters.
- Replace 'x' with the ID of the game variable whose value determines the
  'plus' price of this item, weapon, or armor.
  - Insert multiple 'x' for more variables to contribute additively to the
    total 'plus' value amount when determining the price.
- By default, finalized prices will round up.

---

<Price Rate Variable: x>
<Buy Rate Variable: x>
<Sell Rate Variable: x>

<Price Plus Variable: x, x, x>
<Buy Plus Variable: x, x, x>
<Sell Plus Variable: x, x, x>

- Used for: Item, Weapon, Armor Notetags
- Determines the 'rate' price for the affected item, weapon, or armor.
  - By default, the price formula goes (base + plus) * rate + flat
- With 'Price', the notetag will affect both 'Buy' and 'Sell' prices.
  - 'Buy' version of the notetag will only affect price when buying.
  - 'Sell' version of the notetag will only affect price when selling.
  - When selling, the rate price is normally NOT affected by the Sell Price
    Rate modifier unless you decide to let it affect it. These settings can
    be altered in the Plugin Parameters.
- Replace 'x' with the ID of the game variable whose value determines the
  'rate' price of this item, weapon, or armor.
  - Insert multiple 'x' for more variables to contribute multiplicatively to
    the total 'rate' value amount when determining the price.
- When the value of the marked variable is called upon, divide the value by
  100 in order to determine the rate.
  - This means that if this variable's value is 250, it will have a
    multiplier rate of 2.50 and not 250.0.
- By default, finalized prices will round up.

---

<Price Flat Variable: x>
<Buy Flat Variable: x>
<Sell Flat Variable: x>

<Price Flat Variable: x, x, x>
<Buy Flat Variable: x, x, x>
<Sell Flat Variable: x, x, x>

- Used for: Item, Weapon, Armor Notetags
- Determines the 'flat' price for the affected item, weapon, or armor.
  - By default, the price formula goes (base + plus) * rate + flat
- With 'Price', the notetag will affect both 'Buy' and 'Sell' prices.
  - 'Buy' version of the notetag will only affect price when buying.
  - 'Sell' version of the notetag will only affect price when selling.
  - When selling, the flat price is affected by the Sell Price Rate modifier
    if you decide to let it affect it. These settings can be altered in the
    Plugin Parameters.
- Replace 'x' with the ID of the game variable whose value determines the
  'flat' price of this item, weapon, or armor.
  - Insert multiple 'x' for more variables to contribute additively to the
    total 'flat' value amount when determining the price.
- By default, finalized prices will round up.

---

Plugin Parameters

General Settings

FlucShopPrices Params1.png

These are the general settings used for this plugin in order to help govern and determine how price fluctuations function for buying and selling.

---

Sell Rates

 Base Price Affected?:
 - Affect 'base' price with the sell rate?
 - Affected prices will sell for lower.
 Plus Price Affected?:
 - Affect 'plus' modifier with the sell rate?
 - Affected modifier will sell for lower.
 Rate Price Affected?:
 - Affect 'rate' modifier with the sell rate?
 - Affected modifier will sell for lower.
 Flat Price Affected?:
 - Affect 'flat' modifier with the sell rate?
 - Affected modifier will sell for lower.

---

JavaScript

 JS: Finalize Buy:
 - What is the code that will be ran before finalizing the buy price?
 JS: Finalize Sell:
 - What is the code that will be ran before finalizing the sell price?

---


Terms of Use

1. These plugins may be used in free or commercial games provided that they have been acquired through legitimate means at VisuStella.com and/or any other official approved VisuStella sources. Exceptions and special circumstances that may prohibit usage will be listed on VisuStella.com.

2. All of the listed coders found in the Credits section of this plugin must be given credit in your games or credited as a collective under the name: "VisuStella".

3. You may edit the source code to suit your needs, so long as you do not claim the source code belongs to you. VisuStella also does not take responsibility for the plugin if any changes have been made to the plugin's code, nor does VisuStella take responsibility for user-provided custom code used for custom control effects including advanced JavaScript notetags and/or plugin parameters that allow custom JavaScript code.

4. You may NOT redistribute these plugins nor take code from this plugin to use as your own. These plugins and their code are only to be downloaded from VisuStella.com and other official/approved VisuStella sources. A list of official/approved sources can also be found on VisuStella.com.

5. VisuStella is not responsible for problems found in your game due to unintended usage, incompatibility problems with plugins outside of the VisuStella MZ library, plugin versions that aren't up to date, nor responsible for the proper working of compatibility patches made by any third parties. VisuStella is not responsible for errors caused by any user-provided custom code used for custom control effects including advanced JavaScript notetags and/or plugin parameters that allow JavaScript code.

6. If a compatibility patch needs to be made through a third party that is unaffiliated with VisuStella that involves using code from the VisuStella MZ library, contact must be made with a member from VisuStella and have it approved. The patch would be placed on VisuStella.com as a free download to the public. Such patches cannot be sold for monetary gain, including commissions, crowdfunding, and/or donations.

7. If this VisuStella MZ plugin is a paid product, all project team members must purchase their own individual copies of the paid product if they are to use it. Usage includes working on related game mechanics, managing related code, and/or using related Plugin Commands and features. Redistribution of the plugin and/or its code to other members of the team is NOT allowed unless they own the plugin itself as that conflicts with Article 4.

8. Any extensions and/or addendums made to this plugin's Terms of Use can be found on VisuStella.com and must be followed.

Terms of Use: Japanese


『VisuStella MZ』利用規約

1. これらのプラグインは、VisuStella.comおよび/または公式に承認されたVisuStellaのソースから合法的な手段で入手したものである限り、フリーゲームや商用ゲームに使用することができます。例外的に使用が禁止される場合については、VisuStella.comの記載をご確認ください。

2. 本プラグインの「クレジット」部分に記載されているすべてのコーダーの名前は、ゲーム内にクレジット表記を行うか、もしくは「VisuStella」という名前の下にまとめて表記する必要があります。

3. ソースコードを自分のものだと主張しない限りは、必要に応じて編集することが可能です。ただしプラグインのコードに変更が加えられた場合、VisuStellaはそのプラグインに対して一切の責任を負いません。高度なJavaScriptのノートタグやJavaScriptコードを許可するプラグインのパラメータを含む、カスタムコントロールエフェクトに使用される、ユーザー提供のカスタムコードについても、VisuStellaは一切の責任を負いません。

4. これらのプラグインやプラグイン内のコードを、「自分のもの」として再配布したり使用したりすることはできません。これらのプラグインとそのコードは、VisuStella.comおよび、その他の公式/承認済みVisuStellaソースからのみダウンロードすることができます。公式/承認済みのソースのリストは、VisuStella.comでご確認いただけます。

5. VisuStellaは、意図しない使用方法による問題、VisuStella MZライブラリ以外のプラグインとの非互換性の問題、プラグインのバージョンが最新でないことによる問題、第三者による互換性パッチが適切に動作していないことなどが原因でゲーム内で発生した問題については、一切の責任を負いません。VisuStellaは、高度なJavaScriptのノートタグやJavaScriptコードを許可するプラグインのパラメータを含む、カスタムコントロールエフェクトに使用される、ユーザー提供のカスタムコードに起因するエラーについても、一切の責任を負いません。

6. VisuStella MZライブラリのコードを使用した互換性パッチをVisuStellaとは関係のない第三者を通じて作成する必要がある場合は、まずVisuStellaのメンバーと連絡を取り、承認を得る必要があります。パッチはVisuStella.comに公開され、誰でも無料でダウンロードすることができるようになります。このようなパッチを、制作発注やクラウドファンディングの対象にしたり、寄付などの金銭的な利益を得るために販売することはできません。

7. このVisuStella MZプラグインが商用製品である場合、プロジェクトチームのすべてのメンバーは、それを使用するため、それぞれ製品を購入しなければなりません。使用方法には、関連するゲームメカニクスの作業、関連するコードの管理、および/または関連するプラグインコマンドや機能の使用、が含まれます。プラグインそのものやそのコードをチームの他のメンバーに再配布することは第4項に抵触するため、そのメンバーがプラグインそのものを所有していない限りは許可されません。

8. このプラグインの利用規約の追加項目や補足については、VisuStella.comに掲載されていますので、それを参照し従ってください。

Credits

If you are using this plugin, credit the following people in your game:

Team VisuStella

Changelog

Version 1.00 Official Release Date: October 8, 2021

  • Finished Plugin!


See Also


End of File