Okay so I am working on the code that makes the Reveal Glass also evolve Eldish into Eldragon, but I keep getting Syntax and I don't know what the problem is!
Here's the modified Reveal Glass code:
Please tell me what's wrong!!! :(
Here's the modified Reveal Glass code:
Code:
ItemHandlers::UseOnPokemon.add(:REVEALGLASS,proc{|item,pokemon,scene|
if (isConst?(pokemon.species,PBSpecies,:TORNADUS) ||
isConst?(pokemon.species,PBSpecies,:THUNDURUS) ||
isConst?(pokemon.species,PBSpecies,:LANDORUS))
if pokemon.hp>0
pokemon.form=(pokemon.form==0) ? 1 : 0
scene.pbRefresh
scene.pbDisplay(_INTL("{1} changed Forme!",pokemon.name))
next true
else
scene.pbDisplay(_INTL("This can't be used on the fainted Pokémon."))
end
elsif (isConst?(pokemon.species,PBSpecies,:ELDISH)
if pokemon.hp>0
pbFadeOutInWithMusic(99999){
evo=PokemonEvolutionScene.new
evo.pbStartScreen(pokemon,newspecies)
evo.pbEvolution(false)
evo.pbEndScreen
if scene.is_a?(PokemonBag_Scene)
scene.pbRefreshAnnotations(proc{|p| pbCheckEvolution(p,item)>0 })
scene.pbRefresh
end
next true
else
scene.pbDisplay(_INTL("It had no effect."))
next false
end
})
Please tell me what's wrong!!! :(