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

[转载发布] DoubleX_RMMZ_Formulae_Edit

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

    连续签到: 2 天

    [LV.7]常住居民III

    9015

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2026-7-16 12:28:37 | 显示全部楼层 |阅读模式
    Purpose
    Lets you directly edit various built-in global formulae
    Video

    https://www.youtube.com/embed/gNmK8Nskd2k

    Games using this plugin
    None so far

    Spoiler: Parameters
                    Code:       
    1. * @param BattleManager
    2. *
    3. * @param startEscRatio
    4. * @parent BattleManager
    5. * @type note
    6. * @desc Sets the starting game party escape ratio in battles
    7. * It must return a Number
    8. * @default "return 0.5 * $gameParty.agility() / $gameTroop.agility();"
    9. *
    10. * @param failEscRatio
    11. * @parent BattleManager
    12. * @type note
    13. * @desc Sets the game party escape ratio right after a failed
    14. * escape attempt in battles
    15. * @default "return this._escapeRatio + 0.1;"
    16. *
    17. * @param Game_Party
    18. *
    19. * @param preemptRate
    20. * @parent Game_Party
    21. * @type note
    22. * @desc Sets the game party preemptive ratio upon battle start
    23. * troopAgi is the average agility of all enemies
    24. * @default "return (this.agility() >= troopAgi ? 0.05 : 0.03) * (this.hasRaisePreemptive() ? 4 : 1);"
    25. *
    26. * @param surpriseRate
    27. * @parent Game_Party
    28. * @type note
    29. * @desc Sets the game party surprise ratio upon battle start
    30. * troopAgi is the average agility of all enemies
    31. * @default "return this.hasCancelSurprise() ? 0 : this.agility() >= troopAgi ? 0.03 : 0.05;"
    32. *
    33. * @param Game_Troop
    34. *
    35. * @param goldRate
    36. * @parent Game_Troop
    37. * @type note
    38. * @desc Sets the enemy gold rate upon battle victory
    39. * The gold rate is multiplied with the original gold amount
    40. * @default "return $gameParty.hasGoldDouble() ? 2 : 1;"
    41. *
    42. * @param Game_CharacterBase
    43. *
    44. * @param distPerFrame
    45. * @parent Game_CharacterBase
    46. * @type note
    47. * @desc Sets the character movement speed in terms of the number
    48. * of tiles per frame
    49. * @default "return Math.pow(2, this.realMoveSpeed()) / 256;"
    50. *
    51. * @param Game_Player
    52. *
    53. * @param encounterCount
    54. * @parent Game_Player
    55. * @type note
    56. * @desc Sets the number of steps needed to trigger the next battle
    57. * This number is set upon starting the current battle
    58. * @default "const n = $gameMap.encounterStep();\nreturn Math.randomInt(n) + Math.randomInt(n) + 1;"
    59. *
    60. * @param updatedEncounterCount
    61. * @parent Game_Player
    62. * @type note
    63. * @desc Sets the latest number of steps to trigger the next battle
    64. * This number is updated upon making a step in the map
    65. * @default "return this._encounterCount - (this.canEncounter() ? this.encounterProgressValue() : 0);"
    复制代码


    Spoiler: Script Calls
                    Code:       
    1. *    # Parameter manipulations
    2. *      1. $gameSystem.setFormulaeEditParam(param, val)
    3. *         - Sets the fully parsed value of the parameter param as val
    4. *         - param must be the name of a valid parameter of this plugin
    5. *         - val must be a valid new fully parsed value of the parameter param
    6. *         - Such parameter value changes will be saved
    7. *         - E.g.:
    8. *           $gameSystem.setFormulaeEditParam(
    9. *                   "encounterCount", "return $gameMap.encounterStep();")
    10. *           sets the fully parsed value of the parameter encounterCount as
    11. *           "return $gameMap.encounterStep();"
    12. *      2. $gameSystem.formulaeEditParam(param)
    13. *         - Returns the fully parsed value of the parameter param
    14. *         - param must be the name of a valid parameter of this plugin
    15. *         - E.g.:
    16. *           $gameSystem.formulaeEditParam("failEscRatio") returns the fully
    17. *           parsed value of the parameter failEscRatio, which should be
    18. *           "return this._escapeRatio + 0.1;" if it uses its default
    19. *           parameter value
    复制代码


    Spoiler: Plugin Command
                    Code:       
    1. *      1. setFormulaeEditParam param val
    2. *         - Applies the script call
    3. *           $gameSystem.setFormulaeEditParam(param, val)
    复制代码


    Spoiler: Prerequisites
    Plugins:
    1. DoubleX RMMZ Enhanced Codebase
    Abilities:
    1. Nothing special
    Spoiler: Terms Of Use
                    Code:       
    1. *      1. Commercial use's always allowed and crediting me's always optional.
    2. *      2. You shall keep this plugin's Plugin Info part's contents intact.
    3. *      3. You shalln't claim that this plugin's written by anyone other than
    4. *         DoubleX or my aliases. I always reserve the right to deny you from
    5. *         using any of my plugins anymore if you've violated this.
    6. *      4. If you repost this plugin directly(rather than just linking back),
    7. *         you shall inform me of these direct repostings. I always reserve
    8. *         the right to request you to edit those direct repostings.
    9. *      5. CC BY 4.0, except those conflicting with any of the above, applies
    10. *         to this plugin, unless you've my permissions not needing follow so.
    11. *      6. I always reserve the right to deny you from using this plugin
    12. *         anymore if you've violated any of the above.
    复制代码


    Spoiler: Contributors
                    Code:       
    1. *      Authors:
    2. *      1. DoubleX
    3. *      Plugin Development Collaborators:
    4. *      - None So Far
    5. *      Bug Reporters:
    6. *      - None So Far
    7. *      Compatibility Issue Raisers:
    8. *      - None So Far
    9. *      Feature Requesters:
    10. *      - None So Far
    复制代码


    Spoiler: Changelog
                    Code:       
    1. *      { codebase: "1.5.0", plugin: "v1.00a" }(2022 Oct 27 GMT 1000):
    2. *      1. 1st version of this plugin finished
    复制代码


    Download Link
    Demo Link


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-4 22:32 , Processed in 0.121583 second(s), 59 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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