- 224
- Posts
- 9
- Years
- Seen Feb 20, 2025
Checking the species of a Pokémon chosen from the party
Hello,
I'm trying to make an event where the player is asked to choose a Pokemon. Depending on which one he chooses, the outcome of the event will be different.
I got this:
I can't find the right way to get the red part working. Right now it doesn't return any error but it doesn't work (if I choose a Pikachu it doesn't do anything).
Hello,
I'm trying to make an event where the player is asked to choose a Pokemon. Depending on which one he chooses, the outcome of the event will be different.
I got this:
Code:
pbChoosePokemon(1,2,
proc {|poke|
!poke.egg? &&
!(poke.isShadow? rescue false)
})
pbSet(2,pbGetPokemon(1).species)
Conditional Branch: Variable [0001] <0
Text: Cancelled
Exit Event Processing
Branch End
Conditional Branch: Script: [COLOR=Red]pbGetPokemon(1).species=PBSpecies::PIKACHU[/COLOR]
Text: Blabla
Exit Event Processing
Branch End
Last edited by a moderator: