You should consider joining our Discord to ask for support.

We created a support channel using the new Discord Forum feature!

You can also visit our new website, it has a help section in English and French

0 like 0 dislike
362 views
in Script help by (530 points)
closed by

Hi, I've been using the Steal_pokemon function, but I'm struggling to remove a specific pokemon from my party. 

closed with the note: Answered!

1 Answer

0 like 0 dislike
by (17.1k points)
selected by
 
Best answer

Hey! steal_pokemon takes an Array as first parameter (or a Range, please check the documentation : https://psdk.pokemonworkshop.com/yard/Interpreter.html#steal_pokemon-instance_method), so let's say you need to get your Pokémon ID 84 stolen, then you'll have to write : 

steal_pokemon([$pokemon_party.pokemon_index(84)], 'lost')

 You should make sure your Player does have this Pokémon in their team, or else it'll work weirdly.

by (530 points)
Thanks! It works.
...