Game Development Your number one stop for anything related to creating games (except ROM hacks). You can even make your own!

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 29th, 2018 (3:51 AM).
LightVader1212's Avatar
LightVader1212 LightVader1212 is offline
PokéTrainer
     
    Join Date: Sep 2017
    Location: Private
    Gender: Male
    Posts: 4
    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
    Reply With Quote
      #2   Link to this post, but load the entire thread.  
    Old May 29th, 2018 (11:12 AM).
    Scyl's Avatar
    Scyl Scyl is offline
       
      Join Date: Jan 2018
      Location: /shrug.
      Posts: 8
      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.
      Reply With Quote
      Reply

      Quick Reply

      Join the conversation!

      Create an account to post a reply in this thread, participate in other discussions, and more!

      Create a PokéCommunity Account
      Ad Content
      Thread Tools

      Posting Rules
      You may not post new threads
      You may not post replies
      You may not post attachments
      You may not edit your posts

      BB code is On
      Smilies are On
      [IMG] code is On
      HTML code is Off

      Forum Jump


      All times are GMT -8. The time now is 3:40 PM.