The PokéCommunity Forums Fan Games Game Development Pokémon Essentials
Two questions

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Reply
 
Thread Tools
  #1    
Old July 21st, 2012 (5:29 AM).
TACHAN TACHAN is offline
     
    Join Date: Jan 2010
    Gender: Female
    Posts: 198
    1-How I can do that in a certain map having lost against a wild Pokemon is Gameover and return to the screen of the title.
    I managed it to do with the trainers, but I do not know like do it with the wild pokemon.

    2-How can I do that the steps do not continue counting in any places of the Safari Zone?
    Reply With Quote

    Relevant Advertising!

      #2    
    Old July 21st, 2012 (7:17 AM).
    Maruno's Avatar
    Maruno Maruno is offline
    Lead Dev of Pokémon Essentials
       
      Join Date: Jan 2008
      Location: England
      Posts: 5,173
      1 - I don't know.

      2 - There's a Setting that lets you determine the number of steps allowed in the Safari Zone. Make it 0.
      __________________
      Go to the Pokémon Essentials Wiki

      | Downloads | Tutorials | Fangames |
      | All Animations Project |

      Follow me on Twitter: @maruno42


      Reply With Quote
        #3    
      Old July 22nd, 2012 (6:51 AM).
      TACHAN TACHAN is offline
         
        Join Date: Jan 2010
        Gender: Female
        Posts: 198
        Quote:
        Originally Posted by Maruno View Post
        1 - I don't know.

        2 - There's a Setting that lets you determine the number of steps allowed in the Safari Zone. Make it 0.
        1- I have an idea. Maybe I might do it putting a "if $switch=999" somewhere of this script?

        Spoiler:
        def Kernel.pbStartOver(gameover=false)
        if pbInBugContest?
        Kernel.pbBugContestStartOver
        return
        end
        pbHealAll()
        if $PokemonGlobal.pokecenterMapId && $PokemonGlobal.pokecenterMapId>=0
        if gameover
        Kernel.pbMessage(_INTL("\\w[]\\wm\\c[8]\\l[3]After the unfortunate defeat, {1} scurried to a Pokémon Center.",$Trainer.name))
        else
        Kernel.pbMessage(_INTL("\\w[]\\wm\\c[8]\\l[3]{1} scurried to a Pokémon Center, protecting the exhausted and fainted Pokémon from further harm.",$Trainer.name))
        end
        Kernel.pbCancelVehicles
        pbRemoveDependencies()
        $game_switches[STARTING_OVER_SWITCH]=true
        $game_temp.player_new_map_id=$PokemonGlobal.pokecenterMapId
        $game_temp.player_new_x=$PokemonGlobal.pokecenterX
        $game_temp.player_new_y=$PokemonGlobal.pokecenterY
        $game_temp.player_new_direction=$PokemonGlobal.pokecenterDirection
        $scene.transfer_player
        $game_map.refresh
        else
        homedata=pbGetMetadata(0,MetadataHome)
        if (homedata && !pbRxdataExists?(sprintf("Data/Map%03d",homedata[0])) )
        if $DEBUG
        Kernel.pbMessage(_ISPRINTF("Can't find the map 'Map{1:03d}' in the Data folder. The game will resume at the player's position.",homedata[0]))
        end
        pbHealAll()
        return
        end
        if gameover
        Kernel.pbMessage(_INTL("\\w[]\\wm\\c[8]\\l[3]After the unfortunate defeat, {1} scurried home.",$Trainer.name))
        else
        Kernel.pbMessage(_INTL("\\w[]\\wm\\c[8]\\l[3]{1} scurried home, protecting the exhausted and fainted Pokémon from further harm.",$Trainer.name))
        end
        if homedata
        Kernel.pbCancelVehicles
        pbRemoveDependencies()
        $game_switches[STARTING_OVER_SWITCH]=true
        $game_temp.player_new_map_id=homedata[0]
        $game_temp.player_new_x=homedata[1]
        $game_temp.player_new_y=homedata[2]
        $game_temp.player_new_direction=homedata[3]
        $scene.transfer_player
        $game_map.refresh
        else
        pbHealAll()
        end
        end
        end


        2-Where is this Setting?
        Reply With Quote
          #4    
        Old July 22nd, 2012 (7:01 AM).
        Rayd12smitty's Avatar
        Rayd12smitty Rayd12smitty is offline
        Shadow Maker
           
          Join Date: Dec 2011
          Gender: Male
          Posts: 647
          the setting is in the settings script...
          __________________
          Reply With Quote
            #5    
          Old July 22nd, 2012 (10:12 AM).
          FL's Avatar
          FL FL is offline
          Pokémon Island Creator
             
            Join Date: Sep 2010
            Gender: Male
            Posts: 1,687
            1- Instead a switch, use '$game_map.map_id==' with map number.
            __________________
            Reply With Quote
            Reply
            Quick Reply

            Sponsored Links
            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 7:21 AM.