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

[Scripting Question] [V.17.2] Temporarily taking away all the players items

  • 80
    Posts
    5
    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
     
  • 143
    Posts
    4
    Years
    • Seen Mar 26, 2024
    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