Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
DoubleX

DoubleX_RMMZ_Formulae_Edit

Recommended Posts

Purpose

Lets you directly edit various built-in global formulae

 

Video

 

Games using this plugin

None so far

 

Parameters

Spoiler

 * @param BattleManager
 *
 * @param startEscRatio
 * @parent BattleManager
 * @type note
 * @desc Sets the starting game party escape ratio in battles
 * It must return a Number
 * @default "return 0.5 * $gameParty.agility() / $gameTroop.agility();"
 *
 * @param failEscRatio
 * @parent BattleManager
 * @type note
 * @desc Sets the game party escape ratio right after a failed
 * escape attempt in battles
 * @default "return this._escapeRatio + 0.1;"
 *
 * @param Game_Party
 *
 * @param preemptRate
 * @parent Game_Party
 * @type note
 * @desc Sets the game party preemptive ratio upon battle start
 * troopAgi is the average agility of all enemies
 * @default "return (this.agility() >= troopAgi ? 0.05 : 0.03) * (this.hasRaisePreemptive() ? 4 : 1);"
 *
 * @param surpriseRate
 * @parent Game_Party
 * @type note
 * @desc Sets the game party surprise ratio upon battle start
 * troopAgi is the average agility of all enemies
 * @default "return this.hasCancelSurprise() ? 0 : this.agility() >= troopAgi ? 0.03 : 0.05;"
 *
 * @param Game_Troop
 *
 * @param goldRate
 * @parent Game_Troop
 * @type note
 * @desc Sets the enemy gold rate upon battle victory
 * The gold rate is multiplied with the original gold amount
 * @default "return $gameParty.hasGoldDouble() ? 2 : 1;"
 *
 * @param Game_CharacterBase
 *
 * @param distPerFrame
 * @parent Game_CharacterBase
 * @type note
 * @desc Sets the character movement speed in terms of the number
 * of tiles per frame
 * @default "return Math.pow(2, this.realMoveSpeed()) / 256;"
 *
 * @param Game_Player
 *
 * @param encounterCount
 * @parent Game_Player
 * @type note
 * @desc Sets the number of steps needed to trigger the next battle
 * This number is set upon starting the current battle
 * @default "const n = $gameMap.encounterStep();\nreturn Math.randomInt(n) + Math.randomInt(n) + 1;"
 *
 * @param updatedEncounterCount
 * @parent Game_Player
 * @type note
 * @desc Sets the latest number of steps to trigger the next battle
 * This number is updated upon making a step in the map
 * @default "return this._encounterCount - (this.canEncounter() ? this.encounterProgressValue() : 0);"

 

 

Script Calls

Spoiler

 *    # Parameter manipulations
 *      1. $gameSystem.setFormulaeEditParam(param, val)
 *         - Sets the fully parsed value of the parameter param as val
 *         - param must be the name of a valid parameter of this plugin
 *         - val must be a valid new fully parsed value of the parameter param
 *         - Such parameter value changes will be saved
 *         - E.g.:
 *           $gameSystem.setFormulaeEditParam(
 *                   "encounterCount", "return $gameMap.encounterStep();")
 *           sets the fully parsed value of the parameter encounterCount as
 *           "return $gameMap.encounterStep();"
 *      2. $gameSystem.formulaeEditParam(param)
 *         - Returns the fully parsed value of the parameter param
 *         - param must be the name of a valid parameter of this plugin
 *         - E.g.:
 *           $gameSystem.formulaeEditParam("failEscRatio") returns the fully
 *           parsed value of the parameter failEscRatio, which should be
 *           "return this._escapeRatio + 0.1;" if it uses its default
 *           parameter value

 

 

Plugin Command

Spoiler

 *      1. setFormulaeEditParam param val
 *         - Applies the script call
 *           $gameSystem.setFormulaeEditParam(param, val)

 

 

Prerequisites

Spoiler

Plugins:

1. DoubleX RMMZ Enhanced Codebase

Abilities:

1. Nothing special for most ordinary cases

2. Little RMMZ plugin development proficiency to fully utilize this

    (Elementary Javascript exposures being able to write beginner codes up to 300LoC scale)

 

Terms Of Use

Spoiler

*      1. Commercial use's always allowed and crediting me's always optional.
*      2. You shall keep this plugin's Plugin Info part's contents intact.
*      3. You shalln't claim that this plugin's written by anyone other than
*         DoubleX or my aliases. I always reserve the right to deny you from
*         using any of my plugins anymore if you've violated this.
*      4. If you repost this plugin directly(rather than just linking back),
*         you shall inform me of these direct repostings. I always reserve
*         the right to request you to edit those direct repostings.
*      5. CC BY 4.0, except those conflicting with any of the above, applies
*         to this plugin, unless you've my permissions not needing follow so.
*      6. I always reserve the right to deny you from using this plugin
*         anymore if you've violated any of the above.

 

 

Contributors

Spoiler

*      Authors:
*      1. DoubleX
*      Plugin Development Collaborators:
*      - None So Far
*      Bug Reporters:
*      - None So Far
*      Compatibility Issue Raisers:
*      - None So Far
*      Feature Requesters:
*      - None So Far

 

 

Changelog

Spoiler

 *      { codebase: "1.5.0", plugin: "v1.00a" }(2022 Oct 27 GMT 1000):
 *      1. 1st version of this plugin finished

 

 

Download Link

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By DoubleX
      Note
      This plugin works for both RMMV and RMMZ
       
      Purpose
      Lets you extract texts in events/common events/battle events to txt file
       
      Video
       
      Games using this plugin
      None so far
       
      Parameters
       
      Prerequisites
       
      Terms Of Use
       
      Contributors
       
      Changelog
       
      Download Link
      Demo Link
    • By DoubleX
      This topic aims to share the basic knowledge on what the default RMMZ TPBS battle flow implementations do in general, but you're still assumed to have at least:
      1. Some plugin development proficiency(having written several easy, simple and small battle-related plugins up to 1k LoC scale)
      2. Basic knowledge on what the default RMMZ turn based battle flow implementations do in general
      3. Basic knowledge on what the default RMMZ TPBS battle flow does in general on the user level(At least you need to know what's going on on the surface when playing it as a player)

      Simplified Flowchart
      Please note that this flowchart only includes the most important elements of the battle flow, to avoid making it too complicated and convoluted for the intended targeting audience
       
      Battle Start
       
      Input Action Slots
       
      Thinking In Frames
       
      Frame Start
       
      Start Phase
       
      Turn Phase
       
      Action Phase
       
      Turn End Phase
       
      Battle End Phase
       
      Update TPB Input
       
      Summary
       
      That's all for now. I hope this can help you grasp these basic knowledge. For those thoroughly comprehending the essence of the default RMMZ TPBS battle flow implementations, feel free to correct me if there's anything wrong
      For those wanting to have a solid understanding to the default RMMZ TPBS battle flow implementations, I might open a more advanced topic for that later
    • By DoubleX
      This topic aims to share the basic knowledge on what the default RMMZ turn based battle flow implementations do in general, but you're still assumed to have at least:
      1. Little javascript coding proficiency(barely okay with writing rudimentary Javascript codes up to 300 LoC scale)
      2. Basic knowledge on what the default RMMZ turn based battle flow does on the user level(At least you need to know what's going on on the surface when playing it as a player)
       
      Simplified Flowchart
      Please note that this flowchart only includes the most important elements of the battle flow, to avoid making it too complicated and convoluted for the intended targeting audience
       
      Start Battle
       
      Input Actions
       
      Process Turns
       
      Execute Actions
       
      Summary
       
      That's all for now. I hope this can help you grasp these basic knowledge. For those thoroughly comprehending the essence of the default RMMZ turn based battle flow implementations, feel free to correct me if there's anything wrong
      For those wanting to have a solid understanding to the default RMMZ turn based battle flow implementations, I might open a more advanced topic for that later
    • By DoubleX
      Purpose
      Lets you set some states to update its turn after some seconds in TPBS
       
      Introduction
       
      Video
       
      Games using this plugin
      None so far
       
      Notetags
       
      Author Notes
       
      Prerequisites
       
      Instructions
       
      Terms Of Use
       
      Contributors
       
      Changelog
       
      Download Link
      Demo Link
×
×
  • Create New...