Ragnarok Hit Rate Formula

(RM MV) Hello everyone!, in the 'hit rate' is there any way to use the script "YEP.69 - Extra Parameter Formula - by Yanfly" to make this formula?

HIT = 100*(1+(100 + a.Plus + a.level + a.agi/7 + a.Luk/12 - ENEMY_FLEE)*0.01) * (1+(a.HitBase*0.01))

Example:
PLUS: 85 LEVEL: 42 agi/7: 6 luk/12: 2 ENEMYFLEE: 308 HitBase(%): 30
(a. = user values)

100*(1+(100 + a.Plus + a.level + a.agi/7 + a.Luk/12 - ENEMYFLEE)*0.01) * (1+(a.HitBase*0.01))

100*(1+(100 + 85 + 42 + 6 + 2 - 308)*0.01) * (1+0.3)

100*(1+(-73*0.01) * 1.3

100*(1+(-0.73)) * 1.3

100*0.27 * 1.3

27 * 1.3
HIT_SUCESS_CHANCE = 35%

- How could I do this?
~thanks!
  • HIT is a percentage, e.g. 1 = 100%, 0.8 = 80%.
  • Parameter names are all lowercase in script: use a.luk.
  • The base and plus values should be simply base and plus, like in the plugin's examples.
  • This formula is for a battler's HIT stat, there's no opponent specified here:
    • If you want to redefine the hit calculation, check out Yanfly's Hit Accuracy plugin instead.
    • Otherwise, how is the ENEMY_FLEE value determined?
  • This formula is used for actors and enemies; what value will be used for an enemy's a.level?
😮‍💨
Thans for your frank answer!

  • HIT is a percentage, e.g. 1 = 100%, 0.8 = 80%.
  • If you want to redefine the hit calculation, check out Yanfly's Hit Accuracy plugin instead.
    This formula is used for actors and enemies; what value will be used for an enemy's a.level?


I will use the "YEP.85 - Hit Accuracy", it seems really more appropriate.

You brought some questions that I hadn't thought of (like "user.level" when used by a monster) {a. = user ~ b. = target}

'EnemyFlee/TargetFlee' (or b.Flee) I was thinking of using something like :
(b.plus + b.agi + b.level + b.luk / 6) * (1+(b.base * 0.01))
(To be honest idk how this 'd be applied now ... something like "(a.Hit - b.Flee)%" success chance? I realized that idk how this happens in RM MV :c)

I intended to use the old (<most common) HIT/FLEE values as small buff/debuff in characters, but I need to reformule both... to be well applied to the monsters too... If i don't give up, I'll bring the feedback xD
Thanks!
'EnemyFlee/TargetFlee' (or b.Flee) I was thinking of using something like :
(b.plus + b.agi + b.level + b.luk / 6) * (1+(b.base * 0.01))
(To be honest idk how this 'd be applied now ... something like "(a.Hit - b.Flee)%" success chance? I realized that idk how this happens in RM MV :c)
As far as I know, by default enemies don't have a "flee chance" kind of thing. You can give an enemy a skill with a set chance of success/fail and the Escape effect, but I think that's it. Unless you meant evasion, b.eva? 😅

The party escape chance starts at:
Code:
0.5 * $gameParty.agility() / $gameTroop.agility()
Party/troop agility is just the sum of agility values of all members of that unit. E.g. if "sum of all actors' agility values" = "sum of all enemies' agility values", the base chance is 50%. This increases by +10 percentage points each time the party fails to escape in the same battle.

I intended to use the old (<most common) HIT/FLEE values as small buff/debuff in characters, but I need to reformule both... to be well applied to the monsters too... If i don't give up, I'll bring the feedback xD
Thanks!
One option could be to use the Extra Parameter Formula plugin to give HIT and EVA those small boosts (referencing base and plus for each one), then in the Hit Accuracy plugin's formula simply use a.hit and b.eva. Either way, hope it works out! 🙏

Original thread: https://forums.rpgmakerweb.com/threads/ragnarok-hit-rate-formula.110097/