sonicfan7895
Just a dude, I guess
- 122
- Posts
- 14
- Years
- He/Him/His
- Akala Island, Alola
- Seen Feb 22, 2025
In reference to this old post: https://www.pokecommunity.com/threads/380091
I did in fact go back to the drawing board. Almost seven whole years later...
I decided to try and give the "fusing legendary" problem another go, and finally came up with another solution. Making "Legendary 3" from the previous post require both legendaries to be fused into it in order to reach its full power.
The only roadblock I'm hitting is I'm unable to select "Legendary 1" and "Legendary 2" after selecting "Legendary 3" to pull the former two in.
I have a vague idea how I can restructure the selection to allow more than one, but what I tried initially didn't work as intended.
The outcome was that it was able to fuse, initially, but since the condition was still only met halfway the forme change happened. I need to select both consecutively in order for this to occur, not the forme change to occur and then have to choose another. I don't want to have to add a "half-powered" form, cause that sounds way too convoluted.
Those that are underlined in the first section were what I changed to try and force the engine to allow me to pick two Pokemon before the forme change. Though I don't know if there are any tips or tricks to pick more than one Pokemon for a process like this.
Any help would be appreciated!
TL;DR: I need to select more than one Pokemon to fuse into another, a la Kyurem.
I did in fact go back to the drawing board. Almost seven whole years later...
I decided to try and give the "fusing legendary" problem another go, and finally came up with another solution. Making "Legendary 3" from the previous post require both legendaries to be fused into it in order to reach its full power.
The only roadblock I'm hitting is I'm unable to select "Legendary 1" and "Legendary 2" after selecting "Legendary 3" to pull the former two in.
I have a vague idea how I can restructure the selection to allow more than one, but what I tried initially didn't work as intended.
Code:
ItemHandlers::UseOnPokemon.add(:EBONYSTONE, proc { |item, qty, pkmn, scene|
if !pkmn.isSpecies?(:SERKINDRAC) || !pkmn.fused.nil?
scene.pbDisplay(_INTL("It had no effect."))
next false
elsif pkmn.fainted?
scene.pbDisplay(_INTL("This can't be used on the fainted Pokémon."))
next false
end
# Fusing
chosen = scene.pbChoosePokemon(_INTL("Fuse with which Pokémon?"))
[COLOR="Red"][U]next false if chosen < 1[/U][/COLOR]
other_pkmn = $player.party[chosen]
if pkmn == other_pkmn
scene.pbDisplay(_INTL("It cannot be fused with itself."))
next false
elsif other_pkmn.egg?
scene.pbDisplay(_INTL("It cannot be fused with an Egg."))
next false
elsif other_pkmn.fainted?
scene.pbDisplay(_INTL("It cannot be fused with that fainted Pokémon."))
next false
elsif !other_pkmn.isSpecies?(:SERKIRA) &&
!other_pkmn.isSpecies?(:EBONDRAC)
scene.pbDisplay(_INTL("It cannot be fused with that Pokémon."))
next false
end
newForm = 0
[COLOR="Red"][U]newForm = 1 if other_pkmn.isSpecies?(:SERKIRA) && other_pkmn.isSpecies?(:EBONDRAC)[/U][/COLOR]
pkmn.setForm(newForm) {
pkmn.fused = other_pkmn
$player.remove_pokemon_at_index(chosen)
scene.pbHardRefresh
scene.pbDisplay(_INTL("{1} changed Forme!", pkmn.name))
}
$bag.replace_item(:EBONYSTONE, :EBONYSTONEUSED)
next true
})
ItemHandlers::UseOnPokemon.add(:EBONYSTONEUSED, proc { |item, qty, pkmn, scene|
if !pkmn.isSpecies?(:SERKINDRAC) || pkmn.fused.nil?
scene.pbDisplay(_INTL("It had no effect."))
next false
elsif pkmn.fainted?
scene.pbDisplay(_INTL("This can't be used on the fainted Pokémon."))
next false
elsif $player.party_full?
scene.pbDisplay(_INTL("You have no room to separate the Pokémon."))
next false
end
# Unfusing
pkmn.setForm(0) {
$player.party[$player.party.length] = pkmn.fused
pkmn.fused = nil
scene.pbHardRefresh
scene.pbDisplay(_INTL("{1} changed Forme!", pkmn.name))
}
$bag.replace_item(:EBONYSTONEUSED, :EBONYSTONE)
next true
})
The outcome was that it was able to fuse, initially, but since the condition was still only met halfway the forme change happened. I need to select both consecutively in order for this to occur, not the forme change to occur and then have to choose another. I don't want to have to add a "half-powered" form, cause that sounds way too convoluted.
Those that are underlined in the first section were what I changed to try and force the engine to allow me to pick two Pokemon before the forme change. Though I don't know if there are any tips or tricks to pick more than one Pokemon for a process like this.
Any help would be appreciated!