MZ用プラグイン

スロットマシーン機能 - SlotMachine.js

シェア用テキスト:
▼スロットマシーン機能(Basu様作) - SlotMachine.js
https://plugin-mz.fungamemake.com/archives/7116
スロットマシーン機能を設定します。

ふりがな:すろっとましーんきのう

機能概要: スロットマシーン機能を設定します。

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

作者:Basu

作者サイト:https://github.com/basuka

解説ページ:https://github.com/basuka/RPGMZ/tree/main/SlotMachine

ファイル名:SlotMachine.js

プラグインのヘルプ:

/*:ja
 * @target MZ
 * @plugindesc スロットマシーン機能を設定します。
 * @author Basu
 * @url https://raw.githubusercontent.com/basuka/RPGMZ/main/SlotMachine/SlotMachine.js
 *
 *
 * @help SlotMachine.js
 *
 *-----------------------------------------------------------------------------
 * 設定方法
 *-----------------------------------------------------------------------------
 * 1.「プラグインマネージャー(プラグイン管理)」に、本プラグインを追加して
 *    ください。
 *
 * 2.「プラグインコマンド」イベントから「スロットマシーン開始」コマンド
 *   を設定してください。
 *
 * 3.必要に応じてパラメータ及びコマンドパラメータを設定してください。
 *
 *-----------------------------------------------------------------------------
 * README
 *-----------------------------------------------------------------------------
 * https://github.com/basuka/RPGMZ/blob/main/SlotMachine/README.md
 *
 *-----------------------------------------------------------------------------
 * 利用規約
 *-----------------------------------------------------------------------------
 * このプラグインはMITライセンスで配布しています
 *
 *=====================================================================================================================================================
 *
 * @param variableID
 * @text 保管ID
 * @type variable
 * @default 11
 * @desc 所持コインの数を保管する変数ID
 *
 * @param slotIcon1
 * @text スロットアイコン1
 * @type struct<slotIcon>
 * @desc スロットアイコン1
 * @default {”iconCharaFile”:”Nature”,”iconCharaIndex”:”4”,”fiveLineScale”:”20”,”fourLineScale”:”6”,”threeLineScale”:”3”}
 *
 * @param slotIcon2
 * @text スロットアイコン2
 * @type struct<slotIcon>
 * @default {”iconCharaFile”:”Evil”,”iconCharaIndex”:”0”,”fiveLineScale”:”100”,”fourLineScale”:”20”,”threeLineScale”:”5”}
 * @desc スロットアイコン2
 *
 * @param slotIcon3
 * @text スロットアイコン3
 * @type struct<slotIcon>
 * @default {”iconCharaFile”:”People3”,”iconCharaIndex”:”6”,”fiveLineScale”:”200”,”fourLineScale”:”50”,”threeLineScale”:”8”}
 * @desc スロットアイコン3
 *
 * @param slotIcon4
 * @text スロットアイコン4
 * @type struct<slotIcon>
 * @default {”iconCharaFile”:”People3”,”iconCharaIndex”:”1”,”fiveLineScale”:”1000”,”fourLineScale”:”100”,”threeLineScale”:”10”}
 * @desc スロットアイコン4
 *
 * @param slotIcon5
 * @text スロットアイコン5
 * @type struct<slotIcon>
 * @default {”iconCharaFile”:”People3”,”iconCharaIndex”:”0”,”fiveLineScale”:”2000”,”fourLineScale”:”200”,”threeLineScale”:”20”}
 * @desc スロットアイコン5
 *
 * @param fiveLineSevenScale
 * @text セブン5ライン獲得倍率
 * @type number
 * @default 10000
 * @desc 7が5ライン揃ったときに獲得するコインの倍率
 *
 * @param fourLineSevenScale
 * @text セブン4ライン獲得倍率
 * @type number
 * @default 1000
 * @desc 7が4ライン揃ったときに獲得するコインの倍率
 *
 * @param threeLineSevenScale
 * @text セブン3ライン獲得倍率
 * @type number
 * @default 100
 * @desc 7が3ライン揃ったときに獲得するコインの倍率
 *
 * @param helpMsg
 * @text ヘルプメッセージ
 * @type string
 * @default カーソルキーの上:ベットn決定キー:スタート/ストップ       キャンセルキー:終了
 * @desc ヘルプメッセージ
 *
 * @param coinNumUnit
 * @text コイン枚数の単位
 * @type string
 * @default 枚
 * @desc コイン枚数の単位を設定
 *
 * @param winMsg
 * @text 勝利メッセージ
 * @type string
 * @default おめでとうございます!n%1%2のコインが当たりました!
 * @desc 勝利時のメッセージの設定
 *       ”%1”は獲得したコイン数に置換されます。
 *
 * @param lostMsg
 * @text 敗北メッセージ
 * @type string
 * @default 残念でした。
 * @desc 負けた時のメッセージ
 *
 * @param notEnoughMsg
 * @text コイン不足メッセージ
 * @type string
 * @default コインが足りません。
 * @desc コインが足りない時のメッセージ
 *
 * @param judgeType
 * @text 判定タイプ
 * @type select
 * @option 完全一致
 * @value 0
 * @option 部分一致
 * @value 1
 * @default 0
 * @desc 完全一致:第一レーンから順に判定
 *       部分一致:部分一致を判定
 * 
 * @command open
 * @text スロットマシーン開始
 * @desc スロットマシーンを開きます。
 *
 * @arg reelsList
 * @text リールリスト
 * @type struct<reelList>[]
 * @default [”{”reelList”:”[\”1\”,\”2\”,\”3\”,\”4\”,\”5\”,\”6\”,\”1\”,\”2\”,\”3\”,\”4\”,\”5\”,\”6\”,\”1\”,\”2\”,\”3\”,\”4\”,\”5\”,\”6\”]”}”,”{”reelList”:”[\”6\”,\”5\”,\”4\”,\”3\”,\”2\”,\”1\”,\”6\”,\”5\”,\”4\”,\”3\”,\”2\”,\”1\”,\”6\”,\”5\”,\”4\”,\”3\”,\”2\”,\”1\”]”}”,”{”reelList”:”[\”1\”,\”1\”,\”2\”,\”2\”,\”3\”,\”3\”,\”4\”,\”4\”,\”5\”,\”5\”,\”6\”,\”6\”,\”1\”,\”2\”,\”3\”,\”4\”,\”5\”,\”6\”]”}”,”{”reelList”:”[\”1\”,\”3\”,\”5\”,\”2\”,\”4\”,\”6\”,\”1\”,\”3\”,\”5\”,\”2\”,\”4\”,\”6\”,\”1\”,\”3\”,\”5\”,\”2\”,\”4\”,\”6\”]”}”,”{”reelList”:”[\”1\”,\”2\”,\”3\”,\”4\”,\”5\”,\”6\”,\”1\”,\”2\”,\”3\”,\”4\”,\”5\”,\”6\”,\”1\”,\”2\”,\”3\”,\”4\”,\”5\”,\”6\”]”}”]
 * @desc 5ライン分のリールを設定します
 *       6ライン以上の設定は無視されます
 *
 * @arg scale
 * @text 倍率
 * @type number
 * @min 1
 * @max 999
 * @default 1
 * @desc 倍率を設定します
 *
 * @arg backColorType
 * @text 背景色タイプ
 * @type select
 * @option カラーコード
 * @value 0
 * @option RGB
 * @value 1
 * @default 0
 * @desc カラーコード:背景色を背景色(カラーコード)で設定
 *       RGB:背景色を背景色(RGB)で設定
 * 
 * @arg backColorCodeList
 * @text 背景色(カラーコード)
 * @type struct<backColorCode>[]
 * @default [”{”offset”:”0.0”,”colorCode”:”#000080”}”,”{”offset”:”0.5”,”colorCode”:”#6495ed”}”,”{”offset”:”1.0”,”colorCode”:”#000080”}”]
 * 
 * @arg backColorRgbList
 * @text 背景色(RGB)
 * @type struct<backColorRgb>[]
 * @default [”{”offset”:”0.0”,”rgb_R”:”0”,”rgb_G”:”0”,”rgb_B”:”128”}”,”{”offset”:”0.5”,”rgb_R”:”100”,”rgb_G”:”149”,”rgb_B”:”237”}”,”{”offset”:”1.0”,”rgb_R”:”0”,”rgb_G”:”0”,”rgb_B”:”128”}”]
 * 
 */

スポンサードリンク

スポンサードリンク

-MZ用プラグイン

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