じ☆ve冰风 发表于 2026-7-31 09:04:05

Quasi Params Plus


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().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:       
$gameParty.members().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().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</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/
页: [1]
查看完整版本: Quasi Params Plus