Thread: [Essentials script] One screen Day-Care Checker item
View Single Post
  #5    
Old May 12th, 2012 (11:55 AM).
FL's Avatar
FL
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Quote:
Originally Posted by SytheXP View Post
Nice job FL. I briefly skimmed your post, and you said its activated via Item, is there a way to change it to activate it via button? I was and still against having a DS screen but I like the idea of a side screen so I am planning to implement that and this would be a nice additions.
Yes! In Scene_Map, before 'Scene_Map' add

Code:
   if Input.trigger?(Input::A)
      unless pbMapInterpreterRunning? # Only works if none event command is running
        pbFadeOutIn(99999){ 
          scene=DayCareCheckerScene.new
          screen=DayCareChecker.new(scene)
          screen.startScreen
        }
      end
    end
The 'Input::A' activates when "Z" key is press. You can change it to other key.

You can also change the
Code:
pbFadeOutIn(99999){ 
          scene=DayCareCheckerScene.new
          screen=DayCareChecker.new(scene)
          screen.startScreen
}
to a function/scene if you want to a function/scene be called in game map when some key is pressed.
__________________
Reply With Quote