- 34
- Posts
- 10
- Years
- Seen Apr 23, 2025
Hi, I'm trying to use the move Flying Press in my game using the script that exists for it in essentials v17.2 found in PokeBattle_MoveEffects which is this:
The problem is when I tested it I got these results:
The issue here is the move only uses the fighting type. I searched a bit and found this thread so I tried to fix the problem by adding this script to PokeBattle_Move after Freeze Dry, using that thread:
I'm not sure if that script is right but after testing I got these results:
The move uses both types but it still doesn't work properly especially when it should be resisted, can someone help me fix this issue or give a script to this move? Because I was planning to edit this script to add more dual type moves to my game.
I'm new to scripting so I'm not that good at it but I can edit existing scripts most of the time.
Edit: here's the PBS line
624,FLYINGPRESS,Flying Press,144,100,FIGHTING,Physical,95,10,0,00,0,abf,"The user dives down onto the target from the sky. This move is Fighting- and Flying-type simultaneously."
Spoiler:
Code:
################################################################################
# Damage is multiplied by Flying's effectiveness against the target. Does double
# damage and has perfect accuracy if the target is Minimized. (Flying Press)
################################################################################
class PokeBattle_Move_144 < PokeBattle_Move
def pbModifyDamage(damagemult,attacker,opponent)
type=getConst(PBTypes,:FLYING) || -1
if type>=0
mult=PBTypes.getCombinedEffectiveness(type,
opponent.type1,opponent.type2,opponent.effects[PBEffects::Type3])
return ((damagemult*mult)/8).round
end
return damagemult
end
def tramplesMinimize?(param=1)
return true if param==1 && USENEWBATTLEMECHANICS # Perfect accuracy
return true if param==2 # Double damage
return false
end
end
Spoiler:
Against Heracross it says not very effective when it should be super effective.
Against Geodude it says super effective when it should be neutral damage.
Against Venusaur it says not very effective when it should be neutral damage.
Against Rotom it was immune to it which is right.
Against Geodude it says super effective when it should be neutral damage.
Against Venusaur it says not very effective when it should be neutral damage.
Against Rotom it was immune to it which is right.
The issue here is the move only uses the fighting type. I searched a bit and found this thread so I tried to fix the problem by adding this script to PokeBattle_Move after Freeze Dry, using that thread:
Spoiler:
Code:
#Flying Press. Add secondary move type modifier
if @id==getID(PBMoves,:FLYINGPRESS)
type2=getConst(PBTypes,:FLYING) || -1
if type2>=0
mult=PBTypes.getCombinedEffectiveness(type2,
opponent.type1,opponent.type2,opponent.effects[PBEffects::Type3])
if opponent.effects[PBEffects::Type3]>=0 &&
opponent.effects[PBEffects::Type3]!=opponent.type1 &&
opponent.effects[PBEffects::Type3]!=opponent.type2
mult*=PBTypes.getEffectiveness(type2,opponent.effects[PBEffects::Type3])
else
mult*=2
end
end
return mod1*mod2*mod3*(mult/8.0)
end
Spoiler:
Super effective against Heracross which is right.
Neutral damage against Charizard when it should've been resisted.
Super effective against Geodude when it should've been neutral.
Immune against Rotom which is right.
Super effective against Venusaur which should've been neutral.
Neutral damage against Charizard when it should've been resisted.
Super effective against Geodude when it should've been neutral.
Immune against Rotom which is right.
Super effective against Venusaur which should've been neutral.
The move uses both types but it still doesn't work properly especially when it should be resisted, can someone help me fix this issue or give a script to this move? Because I was planning to edit this script to add more dual type moves to my game.
I'm new to scripting so I'm not that good at it but I can edit existing scripts most of the time.
Edit: here's the PBS line
624,FLYINGPRESS,Flying Press,144,100,FIGHTING,Physical,95,10,0,00,0,abf,"The user dives down onto the target from the sky. This move is Fighting- and Flying-type simultaneously."
Last edited: