XEVASIONAGIDECOUPLE

Decouples the evasion chance from the AGI stats of the attacker and defender.

  • Cherry
  • 07/30/2020 10:33 AM
  • 1228 views
XEvasionAgiDecouple
===================

DynRPG plugin for RM2k3
by Cherry

Decouples the evasion chance from the AGI stats of the attacker and defender.

Instead of using the real agility stats of the attacker and defender in calculating hit/miss chances in an attack, agility values are loaded from variables depending on the actor/monster ID. The real agility values are still used for ATB speed and escape chance calculation.

Usage:

1) Add plugin to DynPlugins folder.
2) Open DynRPG.ini and add a section as follows:

[XEvasionAgiDecouple]
ActorAgiVarStart=1001
MonsterAgiVarStart=2001

With the two values (1001 and 2001 in this example) you can configure from which blocks of variables the "hit/miss agility" stats are loaded. In this example, the fake agility value for actor 3 would be loaded from variable 1003, and the fake agility value for monster 15 would be loaded from variable 2015.

(You can add a line DebugMode=1 to see some debug output in a separate window. It shows whenever the fake agility stats are accessed, what variable ID was used and which value was returned in the end.)

Source code: https://gist.github.com/CherryDT/19bf4d95b1cc7f5872c095870decf483

Details

  • 317.1 KB
  • 26
  • 12/23/2023 04:29 PM

Actions

Posts

Pages: 1
When I try to run the plugin, I get an error message saying "Unexpected instruction 0x1824 at 0x49b0cb" and the game closes. Any guesses what could be wrong?

My RPG_RT.exe is modded with RM_Limit_Changer, DynRpg and ForceHarmony.
Seems like one of the other things (limit changer sounds like a possible culprit, but maybe you also have some QuickPatches or IPS patches in use) has modified the code at address 0x49B0CB already, so this plugin fails to patch the instruction there because it was already changed to something else that it can't cope with.
Pages: 1