- 57
- Posts
- 5
- Years
- Seen Apr 17, 2022
I am using this WolfPP code, which is in this link
But there is a problem, when I try to defuse Necrozma, it stays fused, but it gives me a Lunala. And it stays like this. What happens to the script?
Does anyone know why this is?
If someone could help me I would appreciate it.
Thanks in advance
Spoiler:
Code:
ItemHandlers::UseOnPokemon.add(:NSOLARIZER,proc{|item,pokemon,scene|
if isConst?(pokemon.species,PBSpecies,:NECROZMA)
if pokemon.hp>0
if pokemon.fused!=nil
if $Trainer.party.length>=6
scene.pbDisplay(_INTL("You have no room to separate the Pokémon."))
next false
else
#scene.pbAnimForme(pokemon.species,chose,pokemon.form)#
$Trainer.party[$Trainer.party.length]=pokemon.fused
if pokemon.fused!=2#
scene.pbDisplay(_INTL("It had no effect."))#
next false#
else#
pokemon.fused=nil
pokemon.form=0
scene.pbHardRefresh
scene.pbDisplay(_INTL("{1} changed Forme!",pokemon.name))
next true
end#
end
else
chosen=scene.pbChoosePokemon(_INTL("Fuse with which Pokémon?"))
if chosen>=0
poke2=$Trainer.party[chosen]
if isConst?(poke2.species,PBSpecies,:SOLGALEO) && poke2.hp>0 && !poke2.egg? && poke2.form>=0
#scene.pbAnimFormeFusion(pokemon.species,chose,poke2.species,chosen,newform)#
pokemon.form=1 if isConst?(poke2.species,PBSpecies,:SOLGALEO)
pokemon.fused=poke2
pbRemovePokemonAt(chosen)
scene.pbHardRefresh
scene.pbDisplay(_INTL("{1} changed Forme!",pokemon.name))
next true
elsif poke2.egg?
scene.pbDisplay(_INTL("It cannot be fused with an Egg."))
elsif poke2.hp<=0
scene.pbDisplay(_INTL("It cannot be fused with that fainted Pokémon."))
elsif pokemon==poke2
scene.pbDisplay(_INTL("It cannot be fused with itself."))
else
scene.pbDisplay(_INTL("It cannot be fused with that Pokémon."))
end
else
next false
end
end
else
scene.pbDisplay(_INTL("This can't be used on the fainted Pokémon."))
end
else
scene.pbDisplay(_INTL("It had no effect."))
next false
end
})
ItemHandlers::UseOnPokemon.add(:NLUNARIZER,proc{|item,pokemon,scene|
if isConst?(pokemon.species,PBSpecies,:NECROZMA)
if pokemon.hp>0
if pokemon.fused!=nil
if $Trainer.party.length>=6
scene.pbDisplay(_INTL("You have no room to separate the Pokémon."))
next false
else
#scene.pbAnimForme(pokemon.species,chose,pokemon.form)#
$Trainer.party[$Trainer.party.length]=pokemon.fused
if pokemon.fused!=1#
scene.pbDisplay(_INTL("It had no effect."))#
next false#
else#
pokemon.fused=nil
pokemon.form=0
scene.pbHardRefresh
scene.pbDisplay(_INTL("{1} changed Forme!",pokemon.name))
next true
end#
end
else
chosen=scene.pbChoosePokemon(_INTL("Fuse with which Pokémon?"))
if chosen>=0
poke2=$Trainer.party[chosen]
if isConst?(poke2.species,PBSpecies,:LUNALA) && poke2.hp>0 && !poke2.egg? && poke2.form>=0
#scene.pbAnimFormeFusion(pokemon.species,chose,poke2.species,chosen,newform)#
pokemon.form=2 if isConst?(poke2.species,PBSpecies,:LUNALA)
pokemon.fused=poke2
pbRemovePokemonAt(chosen)
scene.pbHardRefresh
scene.pbDisplay(_INTL("{1} changed Forme!",pokemon.name))
next true
elsif poke2.egg?
scene.pbDisplay(_INTL("It cannot be fused with an Egg."))
elsif poke2.hp<=0
scene.pbDisplay(_INTL("It cannot be fused with that fainted Pokémon."))
elsif pokemon==poke2
scene.pbDisplay(_INTL("It cannot be fused with itself."))
else
scene.pbDisplay(_INTL("It cannot be fused with that Pokémon."))
end
else
next false
end
end
else
scene.pbDisplay(_INTL("This can't be used on the fainted Pokémon."))
end
else
scene.pbDisplay(_INTL("It had no effect."))
next false
end
})
Does anyone know why this is?
If someone could help me I would appreciate it.
Thanks in advance