设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 133|回复: 0

[转载发布] New Game Sound Effect

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9072

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    58885
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    68851

    灌水之王

    发表于 2026-7-26 20:55:25 | 显示全部楼层 |阅读模式
    NewGameSe - Version 1.1.0 (2018/11/23)

    Creator name:
    Triacontane

    Overview

    Plays a certain sound effect when New Game is selected.

    Features
    - You can select a sound effect through a parameter
    - Settings for adjusting: volume, pitch, and pan
    - Optional sound effect for Continue





    Credit and Thanks:
    Triacontane

    Terms of Use-
    Free for commercial and non-commercial use.

    License -
    MIT License: http://opensource.org/licenses/mit-license.php

    Dropbox link: https://www.dropbox.com/s/7x2w38f1so903i8/NewGameSe.js?dl=1

    Spoiler: Alternative
                    Code:       
    1. /*=============================================================================
    2. NewGameSe.js
    3. ----------------------------------------------------------------------------
    4. (C)2018 Triacontane
    5. This software is released under the MIT License.
    6. http://opensource.org/licenses/mit-license.php
    7. ----------------------------------------------------------------------------
    8. Version
    9. 1.1.0 2018/11/23 Optional sound effect for Continue
    10. 1.0.0 2018/08/03 First release
    11. ----------------------------------------------------------------------------
    12. [Blog]   : https://triacontane.blogspot.jp/
    13. [Twitter]: https://twitter.com/triacontane/
    14. [GitHub] : https://github.com/triacontane/
    15. =============================================================================*/
    16. /*:
    17. * @plugindesc NewGameSePlugin
    18. * @author triacontane
    19. *
    20. * @param soundEffect
    21. * @desc Sound effect that plays when New Game is selected
    22. * @default
    23. * @type struct<AudioSe>
    24. *
    25. * @param includeContinue
    26. * @desc Same sound effect from New Game that plays when Continue is selected
    27. * @default false
    28. * @type boolean
    29. *
    30. * @help NewGameSe.js
    31. *
    32. * Plays a certain sound effect when New Game is selected.
    33. *
    34. * This plugin is released under the MIT License.
    35. */
    36. /*:ja
    37. * @plugindesc ニューゲーム専用効果音プラグイン
    38. * @author トリアコンタン
    39. *
    40. * @param soundEffect
    41. * @text 効果音
    42. * @desc ニューゲーム選択時の効果音情報です。
    43. * @default
    44. * @type struct<AudioSe>
    45. *
    46. * @param includeContinue
    47. * @text コンティニューも含む
    48. * @desc コンティニュー、オプション選択時も専用効果音を演奏します。
    49. * @default false
    50. * @type boolean
    51. *
    52. * @help NewGameSe.js
    53. *
    54. * ニューゲーム選択時のみ専用の効果音を演奏します。
    55. * 
    56. * このプラグインにはプラグインコマンドはありません。
    57. *
    58. * 利用規約:
    59. *  作者に無断で改変、再配布が可能で、利用形態(商用、18禁利用等)
    60. *  についても制限はありません。
    61. *  このプラグインはもうあなたのものです。
    62. */
    63. /*~struct~AudioSe:
    64. * @param name
    65. * @desc Audio se file
    66. * @default
    67. * @require 1
    68. * @dir audio/se/
    69. * @type file
    70. *
    71. * @param volume
    72. * @desc Set volume
    73. * @default 90
    74. * @type number
    75. * @min 0
    76. * @max 100
    77. *
    78. * @param pitch
    79. * @desc Set pitch
    80. * @default 100
    81. * @type number
    82. * @min 50
    83. * @max 150
    84. *
    85. * @param pan
    86. * @desc Set pan
    87. * @default 0
    88. * @type number
    89. * @min -100
    90. * @max 100
    91. */
    92. (function() {
    93.     'use strict';
    94.     /**
    95.      * Create plugin parameter. param[paramName] ex. param.commandPrefix
    96.      * @param pluginName plugin name(EncounterSwitchConditions)
    97.      * @returns {Object} Created parameter
    98.      */
    99.     var createPluginParameter = function(pluginName) {
    100.         var paramReplacer = function(key, value) {
    101.             if (value === 'null') {
    102.                 return value;
    103.             }
    104.             if (value[0] === '"' && value[value.length - 1] === '"') {
    105.                 return value;
    106.             }
    107.             try {
    108.                 return JSON.parse(value);
    109.             } catch (e) {
    110.                 return value;
    111.             }
    112.         };
    113.         var parameter     = JSON.parse(JSON.stringify(PluginManager.parameters(pluginName), paramReplacer));
    114.         PluginManager.setParameters(pluginName, parameter);
    115.         return parameter;
    116.     };
    117.     var param = createPluginParameter('NewGameSe');
    118.     var _Window_TitleCommand_playOkSound = Window_TitleCommand.prototype.playOkSound;
    119.     Window_TitleCommand.prototype.playOkSound = function() {
    120.         if (param.soundEffect && this.isNeedTitleSound()) {
    121.             AudioManager.playStaticSe(param.soundEffect);
    122.         } else {
    123.             _Window_TitleCommand_playOkSound.apply(this, arguments);
    124.         }
    125.     };
    126.     Window_TitleCommand.prototype.isNeedTitleSound = function() {
    127.         return this.currentSymbol() === 'newGame' || param.includeContinue
    128.     };
    129. })();
    复制代码


    Edit: (2018/11/23) Triacontane added optional sound effect for Continue parameter


    本贴来自国际rpgmaker官方论坛作者:ovate处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/new-game-sound-effect.100040/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-22 08:36 , Processed in 0.138596 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表