• Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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.

Pokegear RMXP

MR.GLITCH_KING

~ThaEmbacy~
  • 143
    Posts
    19
    Years
    • Seen Jul 3, 2008
    this is a code i made it's different than link2005's so im not stealing
    most credits go to blizzy (this is just a edit of his menu script)4 use with starterkit
    this one looks more like the menu blizzy made.this is my first script so hope it sounds clear enough to understand
    make a new script under scene_skill and call it pokegear put this in it



    Code:
    #==============================================================================
    # - Pokegear
    #------------------------------------------------------------------------------
    # By Glitchking Edited from Blizzy's menu script so give credit to him too!
    #==============================================================================
    
    class Scene_Pokegear
      #--------------------------------------------------------------------------
      # initialize
      #--------------------------------------------------------------------------
      def initialize(menu_index = 0)
        @menu_index = menu_index
      end
      #--------------------------------------------------------------------------
      # main
      #--------------------------------------------------------------------------
      def main
        # コマンドウィンドウを作成
        s1 = "Map"
        s2 = "Radio"
        s3 = "Exit"
        
        commands = [s1,s2,s3]
        @command_window = Window_Command.new(140, commands)
        @command_window.index = @menu_index
        @command_window.x = ($width - @command_window.width) - 8
        @command_window.y = 8
        
        @spriteset = Spriteset_Map.new
        
        @info = Window_Help2.new
        @info.height = $height / 4 + 16
        @info.width = $width / 2 + 74
        @info.x = 8
        @info.y = $height - @info.height - 8
        @info.z = 9999
        @info2 = Window_Help2.new
        @info2.height = $height / 4 + 16
        @info2.width = $width / 2 + 74
        @info2.x = 8
        @info2.y = $height - @info.height - 8 + 32
        @info2.z = 99999
        @info2.opacity = 0
        @info2.windowskin = @info.windowskin = RPG::Cache.windowskin("infosys")
        
        Graphics.transition
        loop do
          Graphics.update
          Input.update
          update
          if $scene != self
            break
          end
        end
        Graphics.freeze
    
        @command_window.dispose
        @spriteset.dispose
        @info.dispose
        @info2.dispose
      end
      #--------------------------------------------------------------------------
      # update the scene
      #--------------------------------------------------------------------------
      def update
        @command_window.update
        @spriteset.update
        @info.update
        @info2.update
        
        #update command window and the info if it's active
        if @command_window.active
          update_command
          update_info
          return
        end
        
      end
      #--------------------------------------------------------------------------
      # update the command window
      #--------------------------------------------------------------------------
      def update_command
        if Input.trigger?(Input::B)
          $game_system.se_play($data_system.cancel_se)
          $scene = Scene_Map.new
          return
        end
        
        if Input.trigger?(Input::C)
          case @command_window.commands[@command_window.index]
          when "Map"
             print "not operating"
            $game_system.se_play($data_system.decision_se)
          when "Radio"
             print "script obtainable at rmxp.net"
            $game_system.se_play($data_system.decision_se)
          when "Exit"
            $game_system.se_play($data_system.decision_se)
            $scene = Scene_Map.new
          end
          return
        end
      end
      def update_info
        case @command_window.commands[@command_window.index]
        when "Map"
          @info.set_text("A map of INSERT REGION NAME HERE")
          @info2.set_text("shows visited places.")
        when "Radio"
          @info.set_text("Listen to music")
          @info2.set_text("that is currently playing.")
        when "Exit"
          @info.set_text("Close this Menu window")
          @info2.set_text("and return to the game.")
        end
      end
    end

    open the starterkit's menu script and under
    Code:
      #--------------------------------------------------------------------------
      # update the command window
      #--------------------------------------------------------------------------
    find where it says
    Code:
          when "Pokegear"
    replace the 2 lines under it with
    Code:
            $game_system.se_play($data_system.decision_se)
            $scene = Scene_Pokegear.new
    it would look like this look at attachment (dont have enough posts to link to the pic yet)
     
    Last edited:
    no offence but i preffer mine a would think a pokegear would display more than a phone a map and a radio. i am working on a version that has a camera phone Map Pokedex Trainer id and radio all in one. Your script is very good though nice and simple. well done.
     
    i tryed putin this in but it just messed up my game
    EDIT: never mind i copyed this in by mistake as well

    "open the starterkit's menu script and under"
     
    It's good! It works! And all that other stuff!
    Now, i'll credit you for my game, Pokemon Seraphi.
     
    Excellent!It works!I used it my game and your on my credits list now!
     
    how do you make the pokegear menu selectable instead of automatically fading into phone,map etc.
     
    when i have installed all that and i go into my game and press x to go to menu pokegear is the first thing that comes up and it automatically fades into phone etc but i want to be able to select pokegear and then it coming up with phone etc. As it fades into phone etc automatically i cannot pick any options below pokegear(bag,option,exit etc)
     
    hm... wait.. .what is the japaneese/chinese text in teh beginning say?

    Oh by the way, I suck with the scripts... so how do you make the text apear? It's not working for me...
     
    im not ver good with scripts either but i only just started im having trouble with making monsters dissapear on RPG Maker XP i just cant seem to find an event for it?

    I know this a little off subject but you guys dont have any other threads that envolve what i need does any body know how to make a monster dissapear after you are done fighting it on RPG XP? plz reply quickly i am almost done with a gamer and it dosnt have any monsters
     
    Last edited by a moderator:
    Back
    Top