Registrarse

[Essentials] Agregar la forma Greninja Ash

Aria142

La major artista Pokemon
Hola chicos hoy les vengo a hacer un aporte sobre como agregar a greninja Ash en pokemon essentials el tutorial es de @TheAgle532 el me lo paso por Discord.

Bueno lo primero que van a PokeBattle_Battler y donde esta esto:
# Color Change
movetype=thismove.pbType(thismove.type,user,target)
if target.hasWorkingAbility:)COLORCHANGE) &&
!PBTypes.isPseudoType?(movetype) && !target.pbHasType?(movetype)
PBDebug.log("[Ability triggered] #{target.pbThis}'s Color Change made it #{PBTypes.getName(movetype)}-type")
target.type1=movetype
target.type2=movetype
target.effects[PBEffects::Type3]=-1
@battle.pbDisplay(_INTL("¡{2} de {1} ha cambiado su tipo a {3}!",target.pbThis,
PBAbilities.getName(target.ability),PBTypes.getName(movetype)))
end
end

Colocan debajo esto.
# Battle Bond
if isConst?(user.species,PBSpecies,:GRENINJA) && user.hasWorkingAbility:)BATTLEBOND)
if target.isFainted? && user.form!=1
user.form=1
pbUpdate(true)
@battle.scene.pbChangePokemon(user,user.pokemon)
@battle.pbDisplay(_INTL("¡{1} creó un fuerte vínculo con su entrenador!",user.pbThis))
PBDebug.log("[Ability triggered] #{user.pbThis}'s Fuerte Afecto")
PBDebug.log("[Form changed] #{user.pbThis} changed to form #{self.form}")
end
end

Donde dice BATTLEBOND es la habilidad de Greninja.

Luego van a Pokemon_MultipleForms y bajan hasta donde esta GENESECT y debajo colocan esto.
# GRENINJA

MultipleForms.register:)GRENINJA,{
"getBaseStats"=>proc{|pokemon|
next if pokemon.form==0
next [72,145,67,132,153,71]
}
})

Luego van a Pokemon_MegaEvolutiony bajan hasta donde esta
def makeUnprimal
v = MultipleForms.call("getUnprimalForm",self)
if v!=nil; self.form = v
elsif isPrimal?; self.form = 0
end
end
y debajo colocan esto.
def revertOtherForms
if isConst?(self.species,PBSpecies,:GRENINJA) ||
isConst?(self.species,PBSpecies,:MIMIKYU)
self.form=0
elsif isConst?(self.species,PBSpecies,:ZYGARDE)
if $zygardeform>=0
self.form=$zygardeform
$zygardeform=-1
elsif self.form==2 # If caught a Full Forme
self.form=rand(2)
end
end
end

end

El tutorial no es mio es de @TheAgle532 dar creditos si lo Utilisan, sirve para todas las versiones de essentials no se ah probado aun con EBS
 
Arriba