• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] remove pokemon without deleting it?

9
Posts
5
Years
    • Seen Jun 10, 2020
    -First of all, i apologize for my bad english. But if I do not practice it, I will not get better :D

    -This is for all essentials professionals!

    -I am currently working on my Pokemon game and came up with the idea to change the character in the story. Of course this is not a problem with:

    pbChangePlayer(any number)

    -Additionally to equip it with your own Pokemon: Example:

    pbAddPokemonSilent (: PIKACHU, 20)

    -So far so good! Now I want to switch back to my protagonist later, to continue with him.

    -Now the problem!

    -How can I save my team before i change the character, for later access?

    -I came up with the idea to save the team before switching with the following command:

    otherplayer = $Trainer.party

    And then later retrieve it with $Trainer.party = otherplayer.

    According to the wiki, both commands exist as well. The first does not come with an error message, so I suspect that the save works, but the second one does not work and then I get an error message.

    -I hope I have explained everything understandable. :D

    Maybe somebody can help me with that. Thanks in advance :)
     
    Last edited:
    180
    Posts
    6
    Years
    • Seen Apr 15, 2024
    i have bad english too, i talk spanish XD
    whatever, maybe because the two variables are different?
    look:
    other player
    otherplayer
     
    9
    Posts
    5
    Years
    • Seen Jun 10, 2020
    Right. But I only made the mistake here xD Thanks anyway, for making me aware of that :D
     
    178
    Posts
    10
    Years
  • https://reliccastle.com/threads/662/

    The link I gave you should have pretty much all you would need.

    Here's how I setup mine (you don't need make the same as I do, I just did it for clarification about wha'ts happening between the first and and second party transition):
    remove pokemon without deleting it?


    remove pokemon without deleting it?


    remove pokemon without deleting it?
     
    9
    Posts
    5
    Years
    • Seen Jun 10, 2020
    OMG Thank you so much!
    I can finally conclude with it.
    I wish you much success komaoto :D
     
    Back
    Top