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

Game Development Your number one stop for anything related to creating games (except ROM hacks). You can even make your own!


Reply
 
Thread Tools
  #1    
Old 6 Days Ago (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

    Relevant Advertising!

      #2    
    Old 6 Days Ago (11:16 PM).
    Scyl's Avatar
    Scyl Scyl is offline
       
      Join Date: Jan 2018
      Posts: 2
      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
      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

      Sponsored Links
      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 1:45 AM.