• 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.

How to change team and after recover it

1
Posts
6
Years
    • Seen Jul 11, 2018
    Hello, I have a question, in my game I want there to be a part where you only have a rotom and at the end that you have your normal team again, any script?:confused:
     

    Scyl

    Extremely Ironic Unironic Edgelord Extraordinaire.
    9
    Posts
    6
    Years
  • Store the player's team in a variable, clear said team, add the Rotom, and then, after the event has concluded, get the player's team from said variable using the "Script" command in the Event Commands for event pages.

    $game_variables[55] =
    $Trainer.party.clone

    This stores the player's entire party in one variable, perfectly replicating their movesets, IVs, evs, natures, nicknames, balls, etc.

    $Trainer.party.clear

    This clears the player's party and purges the team. (Of course, you'd add Rotom to the team for this instance)

    After that, use $Trainer.party = pbGet(55) to retrieve the team stored in Variable 55 at any time. (Note: After getting the team from Variable [X], the variable will be left completely empty. If you want to keep using variable [X] to swap teams for multiple events, be sure to copy the player's team before all else.)

    Variable 55 can, of course, be any variable you want, I'm just giving an example. =w=
     
    33
    Posts
    6
    Years
  • Store the player's team in a variable, clear said team, add the Rotom, and then, after the event has concluded, get the player's team from said variable using the "Script" command in the Event Commands for event pages.

    $game_variables[55] =
    $Trainer.party.clone

    This stores the player's entire party in one variable, perfectly replicating their movesets, IVs, evs, natures, nicknames, balls, etc.

    $Trainer.party.clear

    This clears the player's party and purges the team. (Of course, you'd add Rotom to the team for this instance)

    After that, use $Trainer.party = pbGet(55) to retrieve the team stored in Variable 55 at any time. (Note: After getting the team from Variable [X], the variable will be left completely empty. If you want to keep using variable [X] to swap teams for multiple events, be sure to copy the player's team before all else.)

    Variable 55 can, of course, be any variable you want, I'm just giving an example. =w=


    This was extremely helpful, thank you!
     
    Back
    Top