Advertiser Content
Seen 3 Hours Ago
Posted 3 Weeks Ago
7 posts
49 Days
From vanilla version v17.2, inside _Form script, when KELDEO has move SECRETSWORD, will change its form. Copy that. Also the code will be something like this:
next 1 if pokemon.hasMove?(:MIMIMI) && isConst?(pokemon.ability,PBAbilties,:MAMMAMIA)
next
I thought of doing something like Castform, but using moves instead of weather, would that do the same?
Seen 3 Hours Ago
Posted 3 Weeks Ago
7 posts
49 Days
Maybe AEGISLASH would be better for what you want.
I tried this code I found in PEGen 6 and modified it, but I think I did something wrong
I'm trying to make Red's Vee, which has the ability to evolve during battles just by using moves of different types.

Edit: Now it's working, I just clean some codes and included "transformed=true"

PokeBattle_Battler:
Spoiler:
#Eevee
if hasWorkingAbility(:EVO) && isConst?(self.species,PBSpecies,:EEVEE) && isConst?(thismove.id,PBMoves,:QUICKATTACK) && self.form!=0
!@effects[PBEffects::Transform]
self.form=0; transformed=true
pbUpdate(true)
@battle.scene.pbChangePokemon(self,@pokemon)
@battle.pbDisplay(_INTL("{1} changed to Normal Forme!",pbThis))
PBDebug.log("[Form changed] #{pbThis} changed to Normal Forme")
elsif isConst?(thismove.id,PBMoves,:WATERGUN) && self.form!=1
!@effects[PBEffects::Transform]
self.form=1; transformed=true
pbUpdate(true)
@battle.scene.pbChangePokemon(self,@pokemon)
@battle.pbDisplay(_INTL("{1} changed to Water Forme!",pbThis))
PBDebug.log("[Form changed] #{pbThis} changed to Water Forme")
elsif isConst?(thismove.id,PBMoves,:THUNDERSHOCK) && self.form!=2
!@effects[PBEffects::Transform]
self.form=2; transformed=true
pbUpdate(true)
@battle.scene.pbChangePokemon(self,@pokemon)
@battle.pbDisplay(_INTL("{1} changed to Electric Forme!",pbThis))
PBDebug.log("[Form changed] #{pbThis} changed to Electric Forme")
elsif isConst?(thismove.id,PBMoves,:EMBER) && self.form!=3
!@effects[PBEffects::Transform]
self.form=3; transformed=true
pbUpdate(true)
@battle.scene.pbChangePokemon(self,@pokemon)
@battle.pbDisplay(_INTL("{1} changed to Fire Forme!",pbThis))
PBDebug.log("[Form changed] #{pbThis} changed to Fire Forme")
end

Pokemon_Forms:
Spoiler:
MultipleForms.register(:EEVEE,{
"getBaseStats"=>proc{|pokemon|
next if pokemon.form==0 # Normal Form
next [130,65,60,65,110,95] if pokemon.form==1 # Water Form
next [65,65,60,130,110,95] if pokemon.form==2 # Thunder Form
next [65,130,60,65,95,110] if pokemon.form==3 # Fire Form
},
"onSetForm"=>proc{|pokemon,form|
pbSeenForm(pokemon)
}
})
Advertiser Content