- Pokémon Essentials Version
- v21.1 ✅
here is a short script that changes the type displayed of moves affected by abilities like pixilate to their new type, the script also makes hidden power show its type.
Edit:
Noticed that a commented out section in display type does something similar but I'm keeping this resource up because it's not that obvious on how to do it. Feel free to enable the commented out section though I don't know how much is affected by it.
Ruby:
# updates move type ui based on abilities that change it.
class Battle::Move
def type_ui_modifiers(battler)
#
if @realMove.id == :HIDDENPOWER
return pbHiddenPower(battler.pokemon)[0]
end
if @realMove.display_type(battler.pokemon) == :NORMAL and battler.ability == :PIXILATE # check if battler has ability
return :FAIRY # type to return
end
if @realMove.display_type(battler.pokemon) == :NORMAL and battler.ability == :AERILATE # check if battler has ability
return :FLYING # type to return
end
if @realMove.display_type(battler.pokemon) == :NORMAL and battler.ability == :REFRIGERATE # check if battler has ability
return :ICE # type to return
end
if battler.ability == :NORMALIZE # check if battler has ability
return :NORMAL # type to return
end
if soundMove? && battler.ability == :LIQUIDVOICE # from smellyski
return :WATER
end
end
end
end
def display_type(battler)
case @function_code
when "TypeDependsOnUserMorpekoFormRaiseUserSpeed1"
if battler.isSpecies?(:MORPEKO) || battler.effects[PBEffects::TransformSpecies] == :MORPEKO
return pbBaseType(battler)
end
=begin
when "TypeDependsOnUserPlate", "TypeDependsOnUserMemory",
"TypeDependsOnUserDrive", "TypeAndPowerDependOnUserBerry",
"TypeIsUserFirstType", "TypeAndPowerDependOnWeather",
"TypeAndPowerDependOnTerrain"
return pbBaseType(battler)
=end
end
if type_ui_modifiers(battler)
return type_ui_modifiers(battler) # get new type if there is one
end
return @realMove.display_type(battler.pokemon)
end
end
Edit:
Noticed that a commented out section in display type does something similar but I'm keeping this resource up because it's not that obvious on how to do it. Feel free to enable the commented out section though I don't know how much is affected by it.
- Credits
- You don't have to add credit but it would be nice.
Credits:
Charmingloopy
Contributions:
Smellyski (liquid voice code)