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

[转载发布] Weapon Armor Sound Effects

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

    连续签到: 2 天

    [LV.7]常住居民III

    5778

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 昨天 12:10 | 显示全部楼层 |阅读模式
    Weapon Armor Sound Effects
            By DreamX

             
    Introduction/Features
            With notetags, you can change the sound effects for an animation based on the weapon of the attacker and the armor of the target. This is useful for impact sounds. For example, an arrow that hits someone unarmored would sound different than an arrow that hits a stone golem. If you use my utility plugin, Predetermine Results, you can also have sound effects be replaced based on whether the attack misses or is a critical. A sword that is swung but misses would sound different from one that hits something, and an attack with a hammer might sound a lot louder if it was a critical hit. If you use Predetermine Results, make sure to place this plugin below it.


            You can also play a sound effect when a battler performs a weapon motion, like swinging their sword or pulling an arrow back.
             


            This plugin requires the use of a json file. Here is an example of what your json should look like. I suggest downloading this and then editing it to your liking. You are basically defining sound file names for weapons and weapon/armor combinations.


            You may need to look up proper json editing if you have not used one before. One very important thing that people may often get wrong is the use of commas. The last item in a list must not have a comma, but the others should. You should use the example json as a reference.


            By default, the json file goes into the root folder of your project, but you can edit its path and its name in the parameters for the plugin.


            This plugin requires Yanfly Battle Engine Core and should be placed below it.


    Patch Notes


            None


    How To Use


            Right click the script link and save as a .js file.


    * Important! This plugin requires Yanfly's Battle Engine Core and
    * requires the use of a json file.
    *
    * The weapon/armor sound effect combinations are defined in a json file. The
    * filename and folder are defined by parameters.
    * The default is WeaponArmorSoundEffects.json in the root folder.
    *
    * It must be configured properly in order for the plugin to work properly.  
    * When configuring the json, use upper case except with sound effect file names
    * (use the same case as the file names for them). You can specify more than
    * one file name by separating them with a space. One of them will be chosen
    * at random.
    *
    * Parameter "SEs to Replace" are the sound effects to replace globally when a
    * skill is set to replace sound effects.
    *
    * Parameter "Actor Armor Equipment Type ID" is the equipment type ID that is
    * tested for actors to decide what sound effect to play when they are hit by an
    * animation that is set to replace sound effects. For example, if you were
    * using the default equipment types, you could use 4 to use "Body" equipment
    * type.
    *
    * ---
    * Use <replaceSE:1> as a notetag on a skill to enable that skill have its
    * animation sound effects replaced. Those sound effects must be configured to
    * be replaced either through the parameter or this notetag:
    * <SEsToReplace:x y> with letters being the sound effect file names.
    * Example: <SEsToReplace:Blow1 Slash1 Fire1>
    * There is no limit on how many you can have.
    * ---
    * Use <SEWeaponType:x> with x being the identifier on an actor, enemy, weapon,
    * state or skill.
    * It's the weapon type for the json file.
    * Example: <SEWeaponType:Sword>
    * A skill has the highest priority, then state, then weapon and then the
    * database actor/enemy.
    *
    * The plugin will only test the first weapon an actor has.
    * If there is no <SEWeaponType:x> notetag for the attacker, then it'll be
    * considered "NONE" in the json.
    * ---
    * Use <SEArmorType:x> with x being the identifier on an actor, enemy, armor or
    * state.
    * It's their armor type for the json file.
    * Example: <SEArmorType:Chainmail>
    *
    * A state has the highest priority, followed by armor and then the
    * database actor/enemy.
    *
    * For armors, the armor equip type must be the same as the one configured as a
    * parameter.
    * If there is no <SEArmorType:x> notetag for the target, then it'll be
    * considered "NONE" in the json.
    * ---
    * If there is no sound file name for a weapon/armor combination, the sound  
    * effect of the animation from the database will play as normal.
    *
    * If you are using my Predetermine Results plugin, you can specify the miss and
    * critical sounds in the json file.
    * ---
    * When a battler with a <SEWeaponType:x> notetag performs a weapon motion, a
    * sound effect can be played. This is defined in the json file under "USE"
    * The parameter "Play Weapon Use SE" must be true.
    * ============================================================================
    * Terms Of Use
    * ============================================================================
    * Free to use and modify for commercial and noncommercial games, with credit.
    * ============================================================================
    * Credits
    * ============================================================================
    * DreamX
    * Thanks to Iavra for providing load and plugin parameter help.


    Script


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-26 03:49 , Processed in 0.115889 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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