• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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] [V.17.2] Temporarily taking away all the players items

  • 80
    Posts
    6
    Years
    • Seen Nov 5, 2023
    I want to recreate the battle pyramid from emerald and to do that I would need to remove the players inventory temporarily and give it back when the attraction is done. How can I do that?

    Like I would like something like:
    pbSaveInventory
    pbRemoveInventory

    Please help
     
    Haven't tried it out yet, but in theory this should work to store the values of the bag:
    Code:
    $game_variables[XXX] = $PokemonBag
    $PokemonBag = PokemonBag.new
    And this to revert the change:
    Code:
    $PokemonBag = $game_variables[XXX]
    Don't forget to change the XXX to a variable that isn't in use yet. :)
     
    Back
    Top