- 8
- Posts
- 5
- Years
- Seen Sep 24, 2022
First, sorry for my English. My pokemon essentials version is 16.2.
When I changed pokemon sometimes the size of the letters became smaller. It didn't always happen, but sometimes it happened continuously.
All the tests I did with the same trainer. A trainer is a member of the team rocket in the route 7, and has a weepinbell and is a shadow pokemon. Although I changed the weepinbell for a delcatty. At the end of the battle everything returned to normal. This happened to me after performing a pokemon swap in battle. I don't know why sometimes it doesn't happen and sometimes it does.
I will say everything I did: What I did was add 20 masteballs, 50 ability capsules, get the pokedex and 6 pokemon from the start, the potion inside the pc, and add a bulbasaur at level 15 and a blaziken at level 20.
The scripts I modified were as follows (If something that changes is the cause of this, please say it.):
The script of the abilitiy capsules, to make them also allow to change the hidden abilities, my pokémon will have 2 hidden abilities.
The original script:
The modified script:
The script modifies it from the script in this post: https://www.pokecommunity.com/threads/418059
The other scripts I changed were related to shadow pokemon.
Shadow's S is lowercase because I got an emoticon :S, in essentials it is written in capital letters.
The problem with shadow pokemon is that the effectiveness of the shadow type, if declared in types.txt, pokemon with 2 types took x4 damage, when a pokemon only suffers x2 from any shadow move. The red part is the added part. This script is supposed to fix that. I got it from here: https://www.pokecommunity.com/threads/385126
The last thing I changed is this:
I added # in certain parts, because the shadow pokemon acquired the shadow type instead of their original types. I got it from here: https://www.pokecommunity.com/threads/425075
Could you say why this happens? I don't want it to happen in my future game. Thanks.
When I changed pokemon sometimes the size of the letters became smaller. It didn't always happen, but sometimes it happened continuously.
Spoiler:
![[PokeCommunity.com] Letter size decreases during battle [PokeCommunity.com] Letter size decreases during battle](https://i.imgur.com/BX5apqz.png)
All the tests I did with the same trainer. A trainer is a member of the team rocket in the route 7, and has a weepinbell and is a shadow pokemon. Although I changed the weepinbell for a delcatty. At the end of the battle everything returned to normal. This happened to me after performing a pokemon swap in battle. I don't know why sometimes it doesn't happen and sometimes it does.
I will say everything I did: What I did was add 20 masteballs, 50 ability capsules, get the pokedex and 6 pokemon from the start, the potion inside the pc, and add a bulbasaur at level 15 and a blaziken at level 20.
The scripts I modified were as follows (If something that changes is the cause of this, please say it.):
The script of the abilitiy capsules, to make them also allow to change the hidden abilities, my pokémon will have 2 hidden abilities.
The original script:
Spoiler:
Code:
ItemHandlers::UseOnPokemon.add(:ABILITYCAPSULE,proc{|item,pokemon,scene|
abils=pokemon.getAbilityList
abil1=0; abil2=0
for i in abils
abil1=i[0] if i[1]==0
abil2=i[0] if i[1]==1
end
if abil1<=0 || abil2<=0 || pokemon.hasHiddenAbility?
scene.pbDisplay(_INTL("No tendrá ningún efecto."))
next false
end
newabil=(pokemon.abilityIndex+1)%2
newabilname=PBAbilities.getName((newabil==0) ? abil1 : abil2)
if scene.pbConfirm(_INTL("¿Quieres cambiar la habilidad de {1} a {2}?",
pokemon.name,newabilname))
pokemon.setAbility(newabil)
scene.pbRefresh
scene.pbDisplay(_INTL("¡La habilidad de {1} se ha cambiado a {2}!",pokemon.name,
PBAbilities.getName(pokemon.ability)))
next true
end
next false
})
The modified script:
Spoiler:
Code:
ItemHandlers::UseOnPokemon.add(:ABILITYCAPSULE,proc{|item,pokemon,scene|
abils=pokemon.getAbilityList
abil1=0; abil2=0; abil3=0; abil4=0;
for i in abils
abil1=i[0] if i[1]==0
abil2=i[0] if i[1]==1
abil3=i[0] if i[1]==2
abil4=i[0] if i[1]==3
end
choices = []
choices.push("Cambiar a Habilidad 1")
choices.push("Cambiar a Habilidad 2")
choices.push("Cambiar a Habilidad Oculta 1")
choices.push("Cambiar a Habilidad Oculta 2")
choices.push("Cancelar")
cmd = Kernel.pbMessage(_INTL("¿Qué te gustaría hacer?"), choices, choices.length - 1)
if choices[cmd]=="Cambiar a Habilidad 1"
if abil1<=0 #|| abil2<=0 #|| pokemon.hasHiddenAbility?
scene.pbDisplay(_INTL("No tiene ningún efecto."))
next false
end
#newabil=(pokemon.abilityIndex+1)%2
#newabilname=PBAbilities.getName((newabil==0) ? abil1 : abil2)
newabil= pokemon.setAbility(0)#(pokemon.abilityIndex+1)%2
newabilname=PBAbilities.getName((newabil==0) ? abil1 : abil1)
if scene.pbConfirm(_INTL("¿Quieres cambiar la habilidad de {1} a {2}?",
pokemon.name,newabilname))
pokemon.setAbility(newabil)
scene.pbRefresh
scene.pbDisplay(_INTL("¡La habilidad de {1} cambió a {2}!",pokemon.name,
PBAbilities.getName(pokemon.ability)))
next true
end
elsif choices[cmd]=="Cambiar a Habilidad 2"
if abil2<=0
scene.pbDisplay(_INTL("No tiene ningún efecto."))
next false
end
newabil= pokemon.setAbility(1)#(pokemon.abilityIndex+1)%2
newabilname=PBAbilities.getName((newabil==0) ? abil1 : abil2)
if scene.pbConfirm(_INTL("¿Quieres cambiar la habilidad de {1} a {2}?",
pokemon.name,newabilname))
pokemon.setAbility(newabil)
scene.pbRefresh
scene.pbDisplay(_INTL("¡La habilidad de {1} cambió a {2}!",pokemon.name,
PBAbilities.getName(pokemon.ability)))
next true
end
elsif choices[cmd]=="Cambiar a Habilidad Oculta 1"
if abil3<=0
scene.pbDisplay(_INTL("No tiene ningún efecto."))
next false
end
newabil= pokemon.setAbility(2)#(pokemon.abilityIndex+1)%2
newabilname=PBAbilities.getName((newabil==0) ? abil1 : abil3)
if scene.pbConfirm(_INTL("¿Quieres cambiar la habilidad de {1} a {2}?",
pokemon.name,newabilname))
pokemon.setAbility(newabil)
scene.pbRefresh
scene.pbDisplay(_INTL("¡La habilidad de {1} cambió a {2}!",pokemon.name,
PBAbilities.getName(pokemon.ability)))
next true
end
elsif choices[cmd]=="Cambiar a Habilidad Oculta 2"
if abil4<=0
scene.pbDisplay(_INTL("No tiene ningún efecto."))
next false
end
newabil= pokemon.setAbility(3)#(pokemon.abilityIndex+1)%2
newabilname=PBAbilities.getName((newabil==0) ? abil1 : abil4)
if scene.pbConfirm(_INTL("¿Quieres cambiar la habilidad de {1} a {2}?",
pokemon.name,newabilname))
pokemon.setAbility(newabil)
scene.pbRefresh
scene.pbDisplay(_INTL("¡La habilidad de {1} cambió a {2}!",pokemon.name,
PBAbilities.getName(pokemon.ability)))
next true
end
end
})
The script modifies it from the script in this post: https://www.pokecommunity.com/threads/418059
The other scripts I changed were related to shadow pokemon.
Spoiler:
Code:
# Type effectiveness
if (options&IGNOREPKMNTYPES)==0
typemod=pbTypeModMessages(type,attacker,opponent)
[COLOR="Red"] if isConst?(type,PBTypes,:sHADOW)
if opponent.isShadow? || opponent.pbHasType?(:sHADOW)
typemod=4
else
typemod=16
end
end[/COLOR]
damage=(damage*typemod/8.0).round
opponent.damagestate.typemod=typemod
if typemod==0
opponent.damagestate.calcdamage=0
opponent.damagestate.critical=false
return 0
end
else
opponent.damagestate.typemod=8
end
Shadow's S is lowercase because I got an emoticon :S, in essentials it is written in capital letters.
The problem with shadow pokemon is that the effectiveness of the shadow type, if declared in types.txt, pokemon with 2 types took x4 damage, when a pokemon only suffers x2 from any shadow move. The red part is the added part. This script is supposed to fix that. I got it from here: https://www.pokecommunity.com/threads/385126
The last thing I changed is this:
Spoiler:
if self.isShadow?
#if hasConst?(PBTypes,:sHADOW)
#self.type1=getID(PBTypes,:sHADOW)
#self.type2=getID(PBTypes,:sHADOW)
#end
self.pokemon.adjustHeart(-30) if @battle.pbOwnedByPlayer?(@index)
end
end
#if hasConst?(PBTypes,:sHADOW)
#self.type1=getID(PBTypes,:sHADOW)
#self.type2=getID(PBTypes,:sHADOW)
#end
self.pokemon.adjustHeart(-30) if @battle.pbOwnedByPlayer?(@index)
end
end
I added # in certain parts, because the shadow pokemon acquired the shadow type instead of their original types. I got it from here: https://www.pokecommunity.com/threads/425075
Could you say why this happens? I don't want it to happen in my future game. Thanks.
Last edited by a moderator: