- 7
- Posts
- 4
- Years
- Seen Jun 26, 2022
Hey there! My name's Kotaro and I code moves and a bunch of other things. One problem I find where a lot of players have (at least I hope people do) is the fact that evasion is useless and fucking sucks. So because of this, say goodbye to evasion and hello to my new mechanic, Glancing Hits.
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.
A glanced crit can also occur. However, the chance for this to happen is low so don't expect this to happen often. If it does occur, this is how it is calculated. If we say that the damage done normally was 20, and a critical hit occurs, and the hit is also glanced, the script would calculate the damage to be 20*1.5 for the crit amount, giving 30. The glance damage would be added onto the amount, times by 0.75 which gives 23 (rounded up). So overall the attack would do 23 damage to the opponent.
Overall changes:
I changed all moves and abilities that affect evasion to somehow affect glanced hits instead.
Current changes:
Example:
In these two gifs I have attached onto this post you are able to see how it works, and the damage reduction happening. The first one shows normal damage occurring and the second one below shows you the damage a glanced hit does under the same circumstances. Keep in mind that I changed the rates for a glanced hit to happen to 100% to showcase the damage reduction better so dont expect every hit to do a glanced hit the base chance is as rare as a normal crit which is not that common.
![[PokeCommunity.com] Kotaros Glanced Hits [Essentials V19.1] [PokeCommunity.com] Kotaros Glanced Hits [Essentials V19.1]](https://data.pokecommunity.com/attachments/16/16615-39e5a3a56f3b71450bb63161674f3dfe.jpg)
DOWNLOAD LINK
Installation
Download the file Unzip it and paste the Folder "Kotaros Glanced Hits" into your Plugins Folder.
If you have any questions regarding this script or any bugs that may occur post your questions/issues bellow!
Fixes/Notes
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 :
This was the code before the changes:
Cya,
Kotaro.
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.
A glanced crit can also occur. However, the chance for this to happen is low so don't expect this to happen often. If it does occur, this is how it is calculated. If we say that the damage done normally was 20, and a critical hit occurs, and the hit is also glanced, the script would calculate the damage to be 20*1.5 for the crit amount, giving 30. The glance damage would be added onto the amount, times by 0.75 which gives 23 (rounded up). So overall the attack would do 23 damage to the opponent.
Overall changes:
I changed all moves and abilities that affect evasion to somehow affect glanced hits instead.
Current changes:
- Sand veil and snow cloak now give +2 glanced hits stacks while in a sandstorm or hail. This increases the chance for a glanced hit to occur to 8 instead of 24.
- Double team now gives +1 glanced stack when used.
- Minimize gives +2 glanced stacks when used.
- Moves that used to decrease evasion, now lower glanced stacks but they cannot go below 0 which is the normal chance of 24 for a glanced hit to occur.
Example:
Spoiler:
In these two gifs I have attached onto this post you are able to see how it works, and the damage reduction happening. The first one shows normal damage occurring and the second one below shows you the damage a glanced hit does under the same circumstances. Keep in mind that I changed the rates for a glanced hit to happen to 100% to showcase the damage reduction better so dont expect every hit to do a glanced hit the base chance is as rare as a normal crit which is not that common.
![[PokeCommunity.com] Kotaros Glanced Hits [Essentials V19.1] [PokeCommunity.com] Kotaros Glanced Hits [Essentials V19.1]](https://data.pokecommunity.com/attachments/16/16615-39e5a3a56f3b71450bb63161674f3dfe.jpg)
![[PokeCommunity.com] Kotaros Glanced Hits [Essentials V19.1] [PokeCommunity.com] Kotaros Glanced Hits [Essentials V19.1]](https://data.pokecommunity.com/attachments/16/16614-00ccaba9a97b84ffd00c51106cad15a9.jpg)
DOWNLOAD LINK
Installation
Download the file Unzip it and paste the Folder "Kotaros Glanced Hits" into your Plugins Folder.
If you have any questions regarding this script or any bugs that may occur post your questions/issues bellow!
Fixes/Notes
Spoiler:
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 :
Code:
# Increases the user's evasion by 2 stages. Minimizes the user. (Minimize) #by Kota
#===============================================================================
class PokeBattle_Move_034 < PokeBattle_Move
def pbMoveFailed?(user,targets)
if user.effects[PBEffects::Glanced]>=6
@battle.pbDisplay(_INTL("But it failed!"))
return true
end
return false
end
def pbEffectGeneral(user)
user.effects[PBEffects::Glanced] += 2
@battle.pbDisplay(_INTL("{1} goes out of focus!",user.pbThis))
end
end
This was the code before the changes:
Code:
#===============================================================================
# Increases the user's evasion by 2 stages. Minimizes the user. (Minimize)
#===============================================================================
class PokeBattle_Move_034 < PokeBattle_StatUpMove
def initialize(battle,move)
super
@statUp = [:EVASION,2]
end
def pbEffectGeneral(user)
user.effects[PBEffects::Minimize] = true
super
end
end
Cya,
Kotaro.
Last edited: