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

[转载发布] Ekuipment's Skill Damage ACE

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    前天 23:21
  • 签到天数: 212 天

    连续签到: 1 天

    [LV.7]常住居民III

    9086

    主题

    867

    回帖

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2026-8-3 12:36:17 | 显示全部楼层 |阅读模式
    Ekuipment's Skill Damage ACE
    Intended for Custom Damage Formulae

    by Kyonides
    ​


    Introduction

    This scriptlet allows you to alter your item's or skill's damage formula in some interesting way, by setting a custom note in the equipment's notebox, and a target statistic that will serve as some item or skill damage modifier.

    NOTES

    If the target battler is an enemy, it has to include a given note tag in its notebox or else it will return 0. The note tag could be anything like <has weapon> or <wields sickle> or anything else.
    You can pass either a :symbol representing a stat OR a number as the second parameter.

    Instructions

    • First you'd have to include this scriptlet in your script editor as a brand new script.
    • Then read the embedded comments in my script. They're right there for a darn good reason!

    • Finally, you can use the new script call in your damage formulae at will.  

    Here I'll leave the same example I included in those comments.

                    Ruby:       
    1. b.atk - b.equip_skill_dmg("<weakened>", :atk)
    2. b.matk - b.equip_skill_dmg("<test>", :mdef, 25)
    复制代码


    Here I gotta admit that the first example would always return 0 as your the skill damage for an obvious reason, he, he.

    You may have noticed that it does not include a third argument like the second example does. What it means is that it gets the default value (100%) instead.


    The Script

                    Ruby:       
    1. # * Ekuipment's Skill Damage ACE
    2. #   - Intended for Custom Damage Formulae
    3. #   Scripter : Kyonides
    4. #   v0.5.0 - 2025-03-14
    5. # This scriptlet allows you to alter your item's or skill's damage formula in
    6. # some interesting way, by setting a custom note in the equipment's notebox
    7. # and a target statistic that will serve as some item or skill damage modifier.
    8. # If the target battler is an enemy, it has to include a given note tag in
    9. # its notebox or else it will return 0. The note tag could be anything like
    10. # <has weapon> or <wields sickle> or anything else.
    11. # * About the Damage Formula Box * #
    12. # a represents an attacker, while b stands for a defender.
    13. # * Damage Formula * #
    14. # b.atk - b.equip_skill_dmg(note, stat)
    15. # b.atk - b.equip_skill_dmg(note, stat, some %)
    16. # - Usage Examples:
    17. # b.atk - b.equip_skill_dmg("<weakened>", :atk)
    18. # b.atk - b.equip_skill_dmg("<weakened>", :matk, 25)
    19. # * Script Calls * #
    20. # - Non-Damage-Formula Use Cases:
    21. # $game_actors[1].equip_skill_dmg("note", :atk)
    22. # $game_party.members[0].equip_skill_dmg("note", :matk, 50)
    23. class Game_Actor
    24.   def equip_skill_dmg(equip_note, stat, percent=100)
    25.     result = equips.compact.any? {|e| e.note[equip_note] }
    26.     result ? send(stat) * percent / 100 : 0
    27.   end
    28. end
    29. class Game_Enemy
    30.   def equip_skill_dmg(equip_note, stat, percent=100)
    31.     @note[equip_note] ? send(stat) * percent / 100 : 0
    32.   end
    33. end
    复制代码


    Terms & Conditions

    Free for use in ANY VX ACE game.
    Just include my nickname in the credits.
    That's it!



    本贴来自国际rpgmaker官方论坛作者:kyonides处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/ekuipments-skill-damage-ace.176246/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-9-30 08:05 , Processed in 0.065474 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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