- Joined
- Mar 7, 2021
- Posts
- 22
Hi, I feel kind of stupid because this probably has a simple solution but I cannot find it online and I'm not skilled enough to understand my mistakes on my own-
... Anyway, what I'm trying to do is having an NPC that can change Furfrou's trim.
I have come up with this:
... This only works with the first Furfrou in the party, though.
If you have two or more Furfrou, even if you select another, only the first one will get its Trim changed.
I guess it's because I'm not quite telling the game to keep into consideration which Pokémon the player is picking, besides merely checking if it's a Furfrou or not, but I don't understand how to change the script accordingly :I
... Anyway, what I'm trying to do is having an NPC that can change Furfrou's trim.
I have come up with this:
Ruby:
pbChoosePokemon(1, 3)
Conditional Branch: Script: pbGetPokemon(1).isSpecies?(:FURFROU)
Text: Which Trim were you thinking about?
Show choices: [text1, text2, text3]
When: [text1]
$player.pokemon_party.each do |pkmn|
next if !pkmn.isSpecies?(:FURFROU)
pkmn.form = 0
pbSet(1, pkmn.name)
break
end
... This only works with the first Furfrou in the party, though.
If you have two or more Furfrou, even if you select another, only the first one will get its Trim changed.
I guess it's because I'm not quite telling the game to keep into consideration which Pokémon the player is picking, besides merely checking if it's a Furfrou or not, but I don't understand how to change the script accordingly :I