• The Eevee Expo Game Jam #10 has concluded, congratulations to all participants! Now it's time for the judges to play through the games, and you can play along to vote who deserves the community choice spotlight.
    You can check out the submitted games here!
    Play through the games and provide some feedback to the devs while you're at it!
  • Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
Resource icon

Resource Glancing Hits 1.0.0

Kotaro

Trainer
Member
Joined
Jun 8, 2020
Posts
65
Kotaro submitted a new resource:

Glancing Hits - Basically a replacement for evasion in the form of inverse crits.

'ello Glancing Hits are a try to erase evasion and introduce reverse crits.
V20.1 adds glanced hits and doesn't remove evasion/replace moves for now!
How it works:

This mechanic basically acts like an inversed crit. For this move, the chance for this occurring is [24,16,8,4,4,2,1.5] where if this move lands the damage is multiplied by 0.75.

Read more about this resource...
 
Last edited:

Rose_

Rookie
Member
Joined
Aug 8, 2020
Posts
6
[Pokémon Essentials version 19.1]
[Generation 8 Project v1.1.0]
[v19.1 Hotfixes 1.0.2]
[EBDX v1.1.6]

Exception: TypeError
Message: nil can't be coerced into Integer

Backtrace:
[Kotaros Glanced Hits] 001_GLANCEDHITS.rb:795:in `+'
[Kotaros Glanced Hits] 001_GLANCEDHITS.rb:795:in `pbIsGlanced?'
[Kotaros Glanced Hits] 001_GLANCEDHITS.rb:836:in `pbCalcDamage'
155:Battler_UseMove:645:in `block in pbProcessMoveHit'
155:Battler_UseMove:637:in `each'
155:Battler_UseMove:637:in `pbProcessMoveHit'
[Elite Battle: DX] Battler Info.rb:67:in `pbProcessMoveHit'
155:Battler_UseMove:433:in `block in pbUseMove'
155:Battler_UseMove:431:in `each'
155:Battler_UseMove:431:in `pbUseMove'

Fresh install and when using any move that effects evasion
 

Kotaro

Trainer
Member
Joined
Jun 8, 2020
Posts
65
[Pokémon Essentials version 19.1]
[Generation 8 Project v1.1.0]
[v19.1 Hotfixes 1.0.2]
[EBDX v1.1.6]

Exception: TypeError
Message: nil can't be coerced into Integer

Backtrace:
[Kotaros Glanced Hits] 001_GLANCEDHITS.rb:795:in `+'
[Kotaros Glanced Hits] 001_GLANCEDHITS.rb:795:in `pbIsGlanced?'
[Kotaros Glanced Hits] 001_GLANCEDHITS.rb:836:in `pbCalcDamage'
155:Battler_UseMove:645:in `block in pbProcessMoveHit'
155:Battler_UseMove:637:in `each'
155:Battler_UseMove:637:in `pbProcessMoveHit'
[Elite Battle: DX] Battler Info.rb:67:in `pbProcessMoveHit'
155:Battler_UseMove:433:in `block in pbUseMove'
155:Battler_UseMove:431:in `each'
155:Battler_UseMove:431:in `pbUseMove'

Fresh install and when using any move that effects evasion
So the error occured when using Minimize/Double Team ? If yes did you change any of their Def before? And can you list what moves all cause this issue ?
 

Rose_

Rookie
Member
Joined
Aug 8, 2020
Posts
6
[Pokémon Essentials version 19.1]
[Generation 8 Project v1.1.0]
[v19.1 Hotfixes 1.0.2]
[EBDX v1.1.6]

Exception: NoMethodError
Message: undefined method `>=' for nil:NilClass

Backtrace:
[Kotaros Glanced Hits] 001_GLANCEDHITS.rb:1468:in `pbMoveFailed?'
155:Battler_UseMove:314:in `pbUseMove'
[Elite Battle: DX] Scripted Battles.rb:65:in `pbUseMove'
155:Battler_UseMove:60:in `block in pbProcessTurn'
012:PBDebug:6:in `logonerr'
155:Battler_UseMove:59:in `pbProcessTurn'
181:Battle_Phase_Attack:128:in `block (2 levels) in pbAttackPhaseMoves'
181:Battle_Phase_Attack:124:in `each'
181:Battle_Phase_Attack:124:in `block in pbAttackPhaseMoves'
181:Battle_Phase_Attack:110:in `loop'

Appears under the same conditions as the last error
 

Kotaro

Trainer
Member
Joined
Jun 8, 2020
Posts
65
Kotaro updated Glancing Hits with a new update entry:

Fix for Compability with Gen 8/EBDX

Gotta note that if you have any custom moves/abilities with evasion you have to change those to instead affect glancing else it will either do nothing at all or crash as example heres how i changed minimize to affect evasion :

Ruby:
Expand Collapse Copy
#===============================================================================
# Increases the user's evasion by 2 stages. Minimizes the user. (Minimize)      #by Kota
#===============================================================================
class...

Read the rest of this update entry...
 

Rose_

Rookie
Member
Joined
Aug 8, 2020
Posts
6
Working beautifully now :) Thank you for you hard work
 

Cross Agento

Novice
Member
Joined
Jun 27, 2021
Posts
31
This is a really great resource! Thank you for this! It makes evasion more balanced and not have to entirely rely on rng. I originally just wanted to remove all evasion boosting moves, but this saves time and adds a pretty good mechanic to the game! Thank you for this!
 

SethLikesCombusken

Novice
Member
Joined
Apr 12, 2021
Posts
15
is there a way you can make a part of the script to exclude certain moves (ie ohko moves) or make a way so that the script doesn't affect status moves so that something like hypnosis doesnt always hit?

edit: i realized ohko moves already go by evasion, it's just status moves that now all seem to hit with 100% accuracy
 
Last edited:

Kotaro

Trainer
Member
Joined
Jun 8, 2020
Posts
65
Something i forgot to mention overall inside the 001_GLANCEDHITS.rb/txt you can find the def pbIsGlanced? at around line 434 if you manipulate the variable g in there you can guarantee glances or turn them off entirely.
Also if you want to change the chances for Glancing Hits to occur entirely you'd have to change the ratios above the variable g.
 

CoreBear

Chad Nidoqueen Enjoyer
Member
Joined
Mar 9, 2022
Posts
12
Kotarooooo, when will this be coming to v20? If you intend on doing that, that is; no stress lmao :)
 

Dundiddlydoo

Rookie
Member
Joined
Feb 28, 2023
Posts
3
So just to make sure I understand this right, this works pretty much the same way evasion does if neither Pokémon has any changes to their glance stacks right? The number chain in the description was a little confusing so just want to verify before using it :D
 

Kotaro

Trainer
Member
Joined
Jun 8, 2020
Posts
65
So just to make sure I understand this right, this works pretty much the same way evasion does if neither Pokémon has any changes to their glance stacks right? The number chain in the description was a little confusing so just want to verify before using it :D
No it works like Critical Hits, but moves and abilities that previously increased evasion increase your Glanced Hit Chance like for example Focus Energy does for Critical Hits.
And the number chain is the chance of a critical/glanced hit occuring.
 
Back
Top