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

[转载发布] Quasi Params Plus

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

    连续签到: 2 天

    [LV.7]常住居民III

    8357

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 前天 09:04 | 显示全部楼层 |阅读模式

    [Quasi] Params Plus Version 1.07 MV



                    by Quasi



                     




    What it does:
                            Params Plus allows you to add a fixed param value to states and equipment. With this you can create states that will add a constant value to a parameter. Or create a poison / regeneration state that ticks a fixed number. Params Plus also includes a few new parameters and lets you create new parameters that you can use and modify!
                             

    Params Note Tag


    Spoiler<params>Param: Value</params>


                                            Where param can be: MHP, MMP, ATK, DEF, MAT, MDF, AGI, LUK, any of the new Parameters included or any of the new Parameters that you create.
                                            Value can be any number or even a formula. Can use a and v[] but not b!
                                             
                                            (This can be placed inside, Actors, Classes, Enemies, Weapons, Armors and State notetags)
                                             
                                            HRT, MRT, TRT are new params that work like HRG, MRG, TGR but instead of increasing/decreasing by a percentage, they tick a fixed value.






    New Params

    Spoiler(HRT) Hp Regeneration tick - Works like Hp Regeneration (Ex-Parameter)
                                            (MRT) Mp Regeneration tick - Works like Mp Regeneration (Ex-Parameter)
                                            (TRT) Tp Regeneration tick - Works like Tp Regeneration (Ex-Parameter)
                                            (MCC) Mp Cost Constant - Works like Mp Cost Rate (Sp-Parameter)
                                            (TCC) Tp Charge Constant - Works like Tp Charge Rate (Sp-Parameter)
                                            (PDC) Physical Damage Constant - Works like Physical Damage (Sp-Parameter)
                                            (MDC) Magical Damage Constant - Works like Magical Damage (Sp-Parameter)
                                            (FDC) Floor Damage Constant - Works like Floor Damage (Sp-Parameter)
                                            (EXC) Experience Constant - Works like Expericence (Sp-Parameter)




    Creating new Parameters


    SpoilerTo use custom parameters, you first have to enabled "Use Custom Parameters" in the plugin settings. Next you need to create a json file inside the data folder called "Parameters.json".
                                            If you do not know how to create a .json file download my sample
                                             * https://gist.github.com/quasixi/3b928832bf42d4471560
                                             
    JSON template <JSON>




    [
      {"abr": "abbreviation 1", "name": "param 1 name", "default": value}, 
      {"abr": "abbreviation 2", "name": "param 2 name", "default": value}
    ]


                                             (See the Example json file above for a better example!)
                                            Set abbreviation to the abbreviation you want to use for the new param.
                                            * Do not use any existing abbreviations ( Example: mhp, mmp, atk, ect..)
                                            Set param name to the full name of the parameter.
                                            Set default value to an number ( Can not use formulas here! )
                                            ** Everything should be inside quotes except the value for default!
                                            **  Be careful with comma placement! Place a comma after every closing bracket } but not on the last one!
                                             
                                            If you need helping setting these up, let me know or give me a list of the abbreviations, full name and default values, and I'll create it for you.






    Using new Parameters

    SpoilerAfter you have created the new parameters you can use them the same way as you use existing parameters.
                                            For example, lets say the abbreviation of a parameter I made was "qpp"
                                            If I want to get the value of qpp for my player I would use:




    $gameParty.members()[member ID].qpp


                                            Or if you want to use these parameters inside a formula you would do:




    a.qpp    or    b.qpp


                                            These new parameters can be used inside the fixed params note tag!



    To Change a custom Parameter use <Script Call>


                    Code:       
    1. $gameParty.members()[member ID].addCParam(CParamId, value)
    复制代码



                                            CParamId is the id of the custom parameter. which is based on the order the custom param was made. So in my example since param qpp was made first that would have an id of 0, while qpt has an id of 1.
                                            Value can be a negative number.
                                             
    To Set a custom Parameter use <Script Call>




    $gameParty.members()[member ID].setCParam(CParamId, value)


                                            CParamId is the id of the custom parameter. which is based on the order the custom param was made. So in my example since param qpp was made first that would have an id of 0, while qpt has an id of 1.
                                            Value is the number you want to set the parameter too.

    Getting data from the new custom parameters




    QuasiParams.customAbr(ID)QuasiParams.customName(ID)QuasiParams.customMin(ID)QuasiParams.customMax(ID)


                                             *     Set ID to the id of the custom parameter.






    Converting Stats to Ex-Parameters or Sp-Parameters




    SpoilerYou can now convert X amount of points from a stat to a % of an Ex-Parameter!
    NoteTag:




    <rates>X STAT to XPARAM</rates> 


                                            Set X to the number, make X negative for a negative gain in the rate.
                                            STAT should be the abbreviations for any of the normal parameters + new parameters + custom parameters. My example I used agi.
                                            XPARAM should be the abbreviation for an xparam or sparam
                                             
                                            Abbreviations for xparams:



    hit, eva, cri, cev, mev, mrf, cnt, hrg, mrg, trg


    Abbreviations for sparams:



    trg, grd, rec, pha, mcr, tcr, pdr, mdr, fdr, exr 



                                            Example of this in the Examples spoiler.


                                            Using a formula instead


    Note Tag:




    <ratesForumla>XPARAM: value</ratesFormula>


                                            Set XPARAM to the abbreviation for a xparam or sparam


                                            Value can be any number or even a formula. Can use a and v[] but not b!






    Examples



    SpoilerExample 1:



    <params>MHP: 100ATK: 20</params>


                                    Would result in that state adding 100 to max hp and 20 to attack.
                                     
    Example 2:



    <params>MHP: -100MRT: 5 + v[1]</params>


                                    Would result in that state removes 100 hp but you will have an mp regen of 5 + value of variable 1
                                    * value can be negative
                                    * param is not case sensative
                                     
    Example of Stat to rate:



    <rates>5 agi to cri5 agi to hit</rates>


                                    For every 5 agi you will gain 1% of critical and hit rate.
                                    (Can only be used inside Actors, Classes and Enemy notes!)



    <ratesFormula>cri: (a.agi / 5) / 100</ratesFormula>


                                    This will add "(a.agi / 5) / 100" to cri.


                                    * Xparams and Sparams are percentages meaning, they're usually between 0.00 to 1.00, 0 being 0% and 1.00 being 100%, which is why there is a / 100 in my example.


                                    (Can only be used inside Actors, Classes and Enemy notes!)





    Links:
    Github
    Terms of use ( Different from my Ace terms. )
                     
    Easy JSON Editor:
    https://github.com/quasixi/RPG-Maker-MV/blob/master/Scenes/QuasiEZJSON.js


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-2 00:08 , Processed in 0.073387 second(s), 51 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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