Thread: [Essentials tutorial] How to add more features to the PokeGear
View Single Post
  #1    
Old May 8th, 2013, 04:06 PM
FL's Avatar
FL
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Map, Phone and Jukebox aren't enough features for you? Let's add more!

In Pokégear script section, after line '@cmdJukebox=-1' add '@cmdSomething=-1', after line 'commands[@cmdJukebox=commands.length]=_INTL("Jukebox")' add 'commands[@cmdSomething=commands.length]=_INTL("Something")'. Before the last line 'return', add the scene call in a 'if' statement with the command index, something like:

Code:
      if @cmdSomething>=0 && @sprites["command_window"].index==@cmdSomething
        pbPlayDecisionSE()
        pbFadeOutIn(99999) {
           scene=SomethingScene.new
           screen=Something.new(scene)
           screen.pbStartScreen
        }
      end
Change all the "Something" for something (lol) like DayCareChecker (works with this script if you use 'screen.startScreen' instead of 'screen.pbStartScreen' in the scene call). You can put a icon if you match the name, like the pokégear icons in Graphics/Pictures folder.
__________________
Reply With Quote