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

[Question] Portable pc

LightVader1212

PokéTrainer
5
Posts
6
Years
Hi there. I was wondering how I would make an item that you use that activate the command to use the Pokémon center pc
 

Scyl

Extremely Ironic Unironic Edgelord Extraordinaire.
9
Posts
6
Years
It's simple, actually.

526,LAPTOP,Laptop,Laptops,8,0,"A portable PC!",2,0,6,

Add that to the Item.txt PBS File and then find the following line in the scripts under the section PItem_ItemEffects:

ItemHandlers::UseInField.add(:EXPALLOFF,proc{|item|
$PokemonBag.pbChangeItem(:EXPALLOFF,:EXPALL)
Kernel.pbMessage(_INTL("The Exp Share was turned on."))
next 1
})

Hit the nice shiny enter key at the end of the last line and paste the following:
ItemHandlers::UseInField.add(:LAPTOP,proc{|item|
pbPokeCenterPC
next 1 # Continue
})

On a fresh copy of Essentials, it seems to be working perfectly for me.
 
Back
Top