FANDOM


Storage Checker item
This tutorial was written by -FL-. Please give credit.

This tutorial is related to the following pages:

Click here for more tutorials!


Storagecheckerscreen
Item641

Sample Icon

This tutorial explains how to create an item that allows the player to view the pokémon storage, but the player can't move the pokémon.

Like any item, you need to add in the PBS "items.txt" and in the script. There an example below using the name STORAGEVIEW, but you can use any other name changing the STORAGEVIEW and the item that be added in PBS. You can change the internal number too:

641,STORAGEVIEW,Storage View,Storage View,8,0,"A visor that can be use for see your pokémon in Pokémon Storage.",2,0,6

Put in the PokemonItemEffects (you can put in several places, I sugest in the start or in the end of this script section)

#===============================================================================
# Storage Checker item
#===============================================================================

def checkPokemonStorage
  pbFadeOutIn(99999){
    scene=PokemonStorageScene.new
    screen=PokemonStorageScreen.new(scene,$PokemonStorage,false) # 3 parameters
    screen.pbStartScreen(2)
  }
end

ItemHandlers::UseFromBag.add(:STORAGEVIEW,proc{|item|
   checkPokemonStorage
   next 1 # Continue
})

ItemHandlers::UseInField.add(:STORAGEVIEW,proc{|item|
  checkPokemonStorage
})

#===============================================================================

In PokemonStorage, change the line 'def initialize(scene,storage)' to:

def initialize(scene,storage,actionsEnabled=true)
  @actionsEnabled = actionsEnabled

Change the second 'command=pbShowCommands(helptext,commands)' to:

actionsDisabled=[
   _INTL("Move"),
   _INTL("Store"),
   _INTL("Withdraw"),
   _INTL("Item"),
   _INTL("Release")
]
actionsDisabledPositions=[]
if !@actionsEnabled
  count = commands.size
  while(count>0) # Goes backward to memorize the positions
    count-=1
    if actionsDisabled.include?(commands[count])
      actionsDisabledPositions.push(count)
      commands.delete_at(count)
    end  
  end
  actionsDisabledPositions.sort!
end
command=pbShowCommands(helptext,commands)
for position in actionsDisabledPositions
  command+=1 if command>=position
end

Allows to move pokémon between party and storage

If you want to do this simply change the 'screen=PokemonStorageScreen.new(scene,$PokemonStorage,false)' to 'screen=PokemonStorageScreen.new(scene,$PokemonStorage,true)' in PokemonItemEffects.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.