FANDOM


Orange hand while acessing pokémon boxes
This tutorial is deprecated. It is no longer relevant to the latest version of Pokémon Essentials.

This tutorial was written by -FL-. Please give credit.

Click here for more tutorials!


This tutorial explains how to put a button to activates the orange hand in Pokémon storage like official games. When clicking in a Pokémon, the orange hand automatic picks the first option without displaying the others (withdraw in Withdraw Pokémon, store in Deposit Pokémon and move in Move Pokémon). Put the files boxpointorange.png, boxpoint2orange.png, boxfistorange.png and boxgraborange.png in Pictures folder.

In PokemonStorage, after line

@pbHeldPokemon=nil

put line

@orange=false

-

Before line

def pbHeldPokemon

put

def updateAndShowOrange
  @orange=!@orange
  return @orange
end

-

Change

 command=pbShowCommands(
    _INTL("What do you want to do?"),commands)

to

if @orange
  command=0 
else
  command=pbShowCommands(_INTL("What do you want to do?"),commands)
end

-

Change

 command=pbShowCommands(
            _INTL("{1} is selected.",pokemon.name),[_INTL("Withdraw"),
            _INTL("Summary"),_INTL("Mark"),_INTL("Release"),_INTL("Cancel")])

to

if @orange
  command=0 
else
  command=pbShowCommands(
             _INTL("{1} is selected.",pokemon.name),[_INTL("Withdraw"),
             _INTL("Summary"),_INTL("Mark"),_INTL("Release"),_INTL("Cancel")])
end

-

Change

  command=pbShowCommands(
             _INTL("{1} is selected.",pokemon.name),[_INTL("Store"),
             _INTL("Summary"),_INTL("Mark"),_INTL("Release"),_INTL("Cancel")])

to

if @orange
  command=0 
else
  command=pbShowCommands(
             _INTL("{1} is selected.",pokemon.name),[_INTL("Store"),
             _INTL("Summary"),_INTL("Mark"),_INTL("Release"),_INTL("Cancel")])
end

-

Change the second line

command=pbShowCommands(helptext,commands)

to

if @orange
  command=0 
else
  command=pbShowCommands(helptext,commands)
end

-

Before line

def heldPokemon

put

def changeOrange(orangehand)
  s=""
  s="orange" if orangehand
  @fist=AnimatedBitmap.new("Graphics/Pictures/boxfist"+s)
  @point1=AnimatedBitmap.new("Graphics/Pictures/boxpoint1"+s)
  @point2=AnimatedBitmap.new("Graphics/Pictures/boxpoint2"+s)
  @grab=AnimatedBitmap.new("Graphics/Pictures/boxgrab"+s)
end

-

And for every:

if Input.trigger?(Input::B)
  @selection=selection
  return -1
end

put after

if Input.trigger?(Input::A)
  @sprites["arrow"].changeOrange(@screen.updateAndShowOrange)
end

-

The orange hand is activated by pressing the X key and will remain on until either the player goes back to the PC menu or the X key is pressed again.

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.