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

[转载发布] DoubleX RMMV Formulae Edit

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

    连续签到: 2 天

    [LV.7]常住居民III

    7975

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式
    Note: This plugin's available for commercial use.


    Purpose


        Lets users modify some hardcoded default RMMV formulae on the fly


    Games using this plugin


        None so far


    Plugin Calls

    SpoilerSpoiler






    *    # Configuration manipulations                                         
    *      1. DoubleX_RMMV.Formulae_Edit.param                                 
    *         - Returns the function param under DoubleX_RMMV.Formulae_Edit   
    *      2. DoubleX_RMMV.Formulae_Edit.param = function                     
    *         - Sets the function param under DoubleX_RMMV.Formulae_Edit as function
    *         - No DoubleX_RMMV.Formulae_Edit.param change will be saved








    Configurations

    SpoilerSpoiler






    * @param makeEscapeRatio
    * @desc Sets the party escape ratio upon battle start as makeEscapeRatio, which
    *       must return the content of a function that takes the party and troop's
    *       agi, which can be referenced by partyAgi and troopAgi respectively, as
    *       the arguments
    *       The content of the function returned by makeEscapeRatio will be bound
    *       to BattleManager upon use
    * @Default this._escapeRatio = 0.5 * partyAgi / troopAgi;
    *
    * @param speed
    * @desc Sets the action speed as speed, which must return the content of a
    *       function that takes the subject's agi, which can be referenced by agi,
    *       as the argument and returns a Number
    *       The content of the function returned by speed will be bound to
    *       Game_Action upon use
    * @Default return agi + Math.randomInt(Math.floor(5 + agi / 4));
    *
    * @param lukEffectRate
    * @desc Sets the luk effect rate multiplier applied to adding states and
    *       debuffs to a target as lukEffectRate, which must return the content of
    *       a function that takes a subject and target, which can be referenced by
    *       subject and target respectively, as the arguments and returns a Number
    *       The content of the function returned by lukEffectRate will be bound to
    *       Game_Action upon use
    * @Default return Math.max(1.0 + (subject.luk - target.luk) * 0.001, 0.0);
    *
    * @param expForLevel
    * @desc Sets the required experience for levelling up to level as expForLevel,
    *       which must return the content of a function that takes the level,
    *       actor's class, experience basis, extra, acceleration a and b, which can
    *       be referenced by level, c, basis, extra, acc_a and acc_b respectively,
    *       as the arguments and returns a Number
    *       The content of the function returned by expForLevel will be bound to
    *       Game_Actor upon use
    * @Default return Math.round(basis * (Math.pow(level - 1, 0.9 + acc_a / 250)) * level * (level + 1) / (6 + Math.pow(level, 2) / 50 / acc_b) + (level - 1) * extra);
    *
    * @param distancePerFrame
    * @desc Sets the characters' moving distance per frame as distancePerFrame,
    *       which must return the content of a function that takes the real move
    *       speed, which can be referenced by speed, as the argument and returns a
    *       Number
    *       The content of the function returned by expForLevel will be bound to
    *       Game_CharacterBase upon use
    * @Default return Math.pow(2, speed) / 256;
    *
    * @param makeEncounterCount
    * @desc Sets the number of steps needed to trigger an encounter as
    *       makeEncounterCount, which must return the content of a function that
    *       takes the encounter count, which can be referenced by n, as the
    *       argument
    *       The content of the function returned by makeEncounterCount will be
    *       bound to Game_Player upon use
    * @Default this._encounterCount = Math.randomInt(n) + Math.randomInt(n) + 1;








    Prerequisites


        Abilities:


        1. Some Javascript coding proficiency to fully utilize this plugin


    Terms Of Use


        You shall keep this plugin's Plugin Info part's contents intact


        You shalln't claim that this plugin's written by anyone other than DoubleX or his aliases


        None of the above applies to DoubleX or his/her aliases


    Changelog

    SpoilerSpoiler







    *      v1.01b(GMT 0400 9-9-2017):                                          
    *      1. Fixed not loading the edited formulae from save files bug        
    *      v1.01a(GMT 1400 27-1-2016):                                         
    *      1. Fixed called DoubleX_RMMV.Formulae_Edit before it's defined bug  
    *      2. All configuration values will be saved in $gameSystem            
    *      3. Increased this plugin's readability                             
    *      v1.00b(GMT 1200 17-11-2015):                                       
    *      1. Fixed wrong number of arugments bug for lukEffectRate and        
    *         makeEncounterCount                                               
    *      2. Increased this plugin's efficiency                              
    *      v1.00a(GMT 1300 10-11-2015):                                       
    *      1. 1st version of this plugin finished






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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 08:32 , Processed in 0.090450 second(s), 58 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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