The PokéCommunity Forums Fan Games Game Development Pokémon Essentials
How to change team and after recover it

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Reply
 
Thread Tools
  #1    
Old June 13th, 2018 (8:18 AM).
ZeroGenez ZeroGenez is offline
     
    Join Date: Apr 2018
    Posts: 1
    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:
    Reply With Quote
      #2    
    Old June 13th, 2018 (11:16 PM).
    Scyl's Avatar
    Scyl Scyl is offline
       
      Join Date: Jan 2018
      Posts: 6
      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=
      Reply With Quote
        #3    
      Old July 11th, 2018 (5:17 AM).
      _Lendaryo_'s Avatar
      _Lendaryo_ _Lendaryo_ is offline
         
        Join Date: Aug 2017
        Location: Brasil
        Gender: Male
        Nature: Serious
        Posts: 33
        Quote:
        Originally Posted by Scyl View Post
        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!
        Reply With Quote
        Reply

        Quick Reply

        Join the conversation!

        Create an account to post a reply in this thread, participate in other discussions, and more!

        Create a PokéCommunity Account
        Thread Tools

        Posting Rules
        You may not post new threads
        You may not post replies
        You may not post attachments
        You may not edit your posts

        BB code is On
        Smilies are On
        [IMG] code is On
        HTML code is Off

        Forum Jump


        All times are GMT -8. The time now is 3:09 AM.