MZ用プラグイン

ROR アイテム価格動的更新 - ROR_DynamicPriceUpdate.js

シェア用テキスト:
▼ROR アイテム価格動的更新(折尾楽太郎様作) - ROR_DynamicPriceUpdate.js
https://plugin-mz.fungamemake.com/archives/7249
アイテムの価格を動的に更新できるようにします。

ふりがな:あいてむかかくどうてきこうしん

機能概要: アイテムの価格を動的に更新できるようにします。

利用規約(ライセンス): MITライセンス

作者:折尾楽太郎

作者サイト:https://r-orio-rpg.halfmoon.jp/rpgmaker/main

解説ページ:https://r-orio-rpg.halfmoon.jp/rpgmaker/plugins/detail/…

ファイル名:ROR_DynamicPriceUpdate.js

プラグインのヘルプ:

/*:
 * @target MZ
 * @plugindesc アイテムの価格を動的に更新できるようにします。
 * @author R.Orio
 * @base ROR_BaseInsertDataToSave
 * @version 1.0.0
 *
 * @help
 * アイテムの価格を動的に更新できるようにします。
 *
 * 使い方:
 * 価格更新を実行したいタイミングでプラグインコマンドを設定してください。
 * プラグインコマンド設定時に価格を更新するアイテムと、
 * 基準価格、標準偏差を設定してください。
 * 入力した基準価格を中心に価格を上書きします。
 * 価格の散らばり度合も設定可能です。
 * 値を大きくすると散らばり度合が大きくなります。
 *
 * 【ご注意ください】
 * ROR_BaseInsertDataToSave.jsを併せて有効化してください。
 * 無くても動作はしますが、セーブしても更新された価格が保存されません。
 *
 * 利用規約:
 *   MITライセンスです。
 *   https://licenses.opensource.jp/MIT/MIT.html
 *   作者に無断で改変、再配布が可能で、
 *   利用形態(商用、18禁利用等)についても制限はありません。
 *
 *
 *
 * @command executeUpdate
 * @text 価格更新の実行
 * @desc 価格の更新を実行します。
 *
 * @arg target_item_id
 * @text アイテムID
 * @desc 価格を変化させるアイテムのID
 * @type item
 *
 * @arg base_price
 * @text 基準価格
 * @desc ベースになる価格です。この価格を中心に変動させます。
 * @type number
 * @min 1
 *
 * @arg specification_type
 * @text 変化率の指定方法
 * @desc 変化率の数値指定方法を選択します。
 * @type select
 * @option 直接入力
 * @value direct
 * @option 変数で指定
 * @value variable
 *
 * @arg change_rate
 * @text 変化率
 * @desc 価格の散らばり度合を設定します。大きい数値を設定すると散らばり度合が大きくなります。
 * @type number
 * @default 10
 * @min 0
 *
 * @arg change_rate_variable
 * @text 変化率の値を変数で指定する場合の変数ID
 * @desc 適用する変化率の値を変数で指定する場合に参照する変数のIDです。
 * @type variable
 *
 *
 *
 * @command addVariableNumber
 * @text 変数の値を価格に加算
 * @desc 価格に変数の値を加算します。
 *
 * @arg target_item_id
 * @text アイテムID
 * @desc 価格を変化させるアイテムのID
 * @type item
 *
 * @arg variable_id
 * @text 変数ID
 * @desc 参照する変数のID
 * @type variable
 *
 * @arg base_price
 * @text 基準価格
 * @desc ゲーム開始時点の価格です。
 * @type number
 * @min 1
 *
 * @arg proportional_constant
 * @text 比例定数
 * @desc 価格に加算する額の倍率を指定します。プレイ時間(時間)×この値が加算されます。
 * @type number
 * @default 3600
 * @min 0
 *
 *
 *
 * @command addPlayTime
 * @text プレイ時間を価格に加算
 * @desc 価格にプレイ時間を加算します。
 *
 * @arg target_item_id
 * @text アイテムID
 * @desc 価格を変化させるアイテムのID
 * @type item
 *
 * @arg base_price
 * @text 基準価格
 * @desc ゲーム開始時点の価格です。
 * @type number
 * @min 1
 *
 * @arg proportional_constant
 * @text 比例定数
 * @desc 価格に加算する額の倍率を指定します。プレイ時間(時間)×この値が加算されます。
 * @type number
 * @default 3600
 * @min 0
 *
 *
 *
 * @command addStepCount
 * @text 歩数を価格に加算
 * @desc 価格に歩数を加算します。
 *
 * @arg target_item_id
 * @text アイテムID
 * @desc 価格を変化させるアイテムのID
 * @type item
 *
 * @arg base_price
 * @text 基準価格
 * @desc ゲーム開始時点の価格です。
 * @type number
 * @min 1
 *
 * @arg proportional_constant
 * @text 比例定数
 * @desc 価格に加算する額の倍率を指定します。歩数×この値が加算されます。
 * @type number
 * @default 1
 * @min 0
 *
 *
 *
 * @command addBattleCount
 * @text 戦闘回数を価格に加算
 * @desc 価格に戦闘回数を加算します。
 *
 * @arg target_item_id
 * @text アイテムID
 * @desc 価格を変化させるアイテムのID
 * @type item
 *
 * @arg base_price
 * @text 基準価格
 * @desc ゲーム開始時点の価格です。
 * @type number
 * @min 1
 *
 * @arg proportional_constant
 * @text 比例定数
 * @desc 価格に加算する額の倍率を指定します。戦闘回数×この値が加算されます。
 * @type number
 * @default 1
 * @min 0
 *
 *
 *
 * @command addWinCount
 * @text 勝利回数を価格に加算
 * @desc 価格に勝利回数を加算します。
 *
 * @arg target_item_id
 * @text アイテムID
 * @desc 価格を変化させるアイテムのID
 * @type item
 *
 * @arg base_price
 * @text 基準価格
 * @desc ゲーム開始時点の価格です。
 * @type number
 * @min 1
 *
 * @arg proportional_constant
 * @text 比例定数
 * @desc 価格に加算する額の倍率を指定します。勝利回数×この値が加算されます。
 * @type number
 * @default 1
 * @min 0
 *
 *
 *
 * @command addEscapeCount
 * @text 逃走回数を価格に加算
 * @desc 価格に逃走回数を加算します。
 *
 * @arg target_item_id
 * @text アイテムID
 * @desc 価格を変化させるアイテムのID
 * @type item
 *
 * @arg base_price
 * @text 基準価格
 * @desc ゲーム開始時点の価格です。
 * @type number
 * @min 1
 *
 * @arg proportional_constant
 * @text 比例定数
 * @desc 価格に加算する額の倍率を指定します。逃走回数×この値が加算されます。
 * @type number
 * @default 1
 * @min 0
 *
 *
 *
 * @command doublePrice
 * @text 価格を2倍に
 * @desc 売価を購入価と同じにするために一時的に2倍にします。
 *
 * @arg target_item_id
 * @text アイテムID
 * @desc 価格を変化させるアイテムのID
 * @type item
 *
 *
 *
 * @command halfPrice
 * @text 価格を半額に
 * @desc 売価を購入価と同じにするために一時的に2倍にしたものを戻します。
 *
 * @arg target_item_id
 * @text アイテムID
 * @desc 価格を変化させるアイテムのID
 * @type item
 *
 *
 *
 * @command exceedPrice
 * @text 価格を限界以上に設定
 * @desc アイテムの価格をツクールデフォルトの最大値(999999G)を超えた額に設定します。
 *
 * @arg target_item_id
 * @text アイテムID
 * @desc 価格を変化させるアイテムID
 * @type item
 *
 * @arg exceed_price
 * @text 新価格
 * @desc 反映させる価格
 * @type number
 * @default 1000000
 * @min 1000000
 *
 *
 *
 */

スポンサードリンク

スポンサードリンク

-MZ用プラグイン

Copyright© #ツクプラMZ , 2025 All Rights Reserved.