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

[转载发布] Linked Stats (e.g.: MHP based on DEF), v. 1.1.1

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

    连续签到: 2 天

    [LV.7]常住居民III

    8037

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 5 天前 | 显示全部楼层 |阅读模式
    Created from this thread.

    Version 1.1.1: Github Link

    Description
    This plugin allows a user to add bonuses to one of the primary 8 stats (mhp, mmp, atk, def, mat, mdf, agi, luk) based on a percentage of the other stats. This bonus can be applied based either on a class basis, for Actors, or on an enemy basis. As an example, a Hero class could have its MHP increased by 50% of its DEF, or a Bat could have its ATK increased by 30% of its AGI and 40% of its LUK. Equipping new items or adding states that change these values would adjust the stats, accordingly.

    Installation
    Either right click the Github link above and save as "LinkedStats.js", or create a new text file called "LinkedStats.js" and copy-paste the text from the link into it.
    Move the file into your project's js/plugins folder.

    Instructions
    Under either an enemy's note box or a class's note box, add a note tag with the format:
                    Code:       
    1. <link stat: x secondStat>
    复制代码


    where stat is the stat you want to adjust, secondStat is the stat you want to base the adjustment on, and x is the percentage of the secondStat you want to adjust by.

    For example, if you want an enemy's MHP to be increased by 35% of their DEF, put:

                    Code:       
    1. <link mhp: 35 def>
    复制代码


    If you'd like a class's ATK to be increased by 22% of the class's AGI and 45% of the class's LUK, put:

                    Code:       
    1. <link atk: 22 agi, 45 luk>
    复制代码


    Editable Parameters
    You can edit the minimum value for any of the 8 primary stats. By default, the RPG Maker MV Engine assigns a default minimum of 0 for MMP and 1 for the other 7. However, if you'd like a class's stat to be based solely on a combination of other stats, you can adjust the minimums. For example, if you'd like a class's MHP to be solely based on the class's DEF plus LUK, then you can set the minimum HP parameter to 0 and in the class's note box, put:

                    Code:       
    1. <link mhp: 100 def, 100 luk>
    复制代码


    If you'd like a class to be potentially killed by having their DEF and LUK reduced to 0, then additionally set the minimum DEF and minimum LUK parameter to 0.

    Screenshots
    Spoiler: Sample Setup
    Hero class has MHP of 200, ATK of 16, DEF of 100, LUK of 32. Adding a couple notetags to increase mhp and atk:




    With MHP increases by 40% of DEF and ATK increased by 50% of LUK, the Hero class now has 240 MHP and 32 ATK:




    Equipping a shield that raises DEF by 10...




    Also increases MHP by 4!


    Terms of Use
    This Plugin is available for commercial and non-commercial use, as long as credit is given to the author listed in the @ author section of the Plugin. Credit must be listed in-game, as well as in any additional credits documentation provided with the game.
    This Plugin may be modified in any way by any author, most notably for compatibility fixes with specific projects or other Plugins, as long as credit is provided to the original author and to whichever author made said modifications, according to the above-stated rules.

    EDIT: Fixed an issue with linking multiple stats to a stat. Now you comma-separate values instead of trying to link the same stat multiple times.

    EDIT: Added a polyfill for older versions of RMMV that don't support Array.prototype.find.


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 10:43 , Processed in 0.114347 second(s), 58 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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