• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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
    7
    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:
     
    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=
     
    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