The PokéCommunity Forums Fan Games Game Development Pokémon Essentials
Stuck cycling in TallGrass

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 September 3rd, 2013 (8:41 AM).
AmethystRain's Avatar
AmethystRain AmethystRain is offline
pixie-powered judgment!
     
    Join Date: Apr 2012
    Gender: Female
    Posts: 243
    This should maybe also go in the Bug/Reporting topic but I'd like to get a fix worked out somewhat quickly if possible--

    Tested in a clean version 12 Essentials, the player can ride their bike into Tall Grass (as in, the kind from 3rd gen that you're not supposed to be able to bike through), but then becomes stuck and cannot leave the grass (without dismounting).



    Basically, the way the script works out with the terrain tag, it seems that the grass is passable with a bike, until you're actually in it. If that makes sense?



    One spot in, can't escape.

    I believe this is the relevant script section, from Game_Map on 190
    Quote:
    elsif @terrain_tags[tile_id]==PBTerrain::TallGrass &&
    $PokemonGlobal.bicycle && self_event==$game_player
    return false
    Does anyone have a solution?
    __________________
    i'm a lover before a fighter, but a killer before a kisser
    also i made reborn or something
    Reply With Quote

    Relevant Advertising!

      #2    
    Old September 3rd, 2013 (1:34 PM).
    Nickalooose Nickalooose is offline
    --------------------
       
      Join Date: Mar 2008
      Gender: Female
      Posts: 1,309
      That's easy:
      Code:
            elsif Kernel.pbFacingTerrainTag==PBTerrain::TallGrass &&
               $PokemonGlobal.bicycle && self_event==$game_player
              return false
      EDIT:
      Just replace the lines you found with these ones lol.
      Reply With Quote
        #3    
      Old September 3rd, 2013 (2:15 PM).
      Maruno's Avatar
      Maruno Maruno is offline
      Lead Dev of Pokémon Essentials
         
        Join Date: Jan 2008
        Location: England
        Posts: 5,173
        Don't you think it's fun to be able to cycle into tall grass and get stuck?
        __________________
        Go to the Pokémon Essentials Wiki

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

        Follow me on Twitter: @maruno42


        Reply With Quote
          #4    
        Old September 3rd, 2013 (5:54 PM).
        BlackWaltz3's Avatar
        BlackWaltz3 BlackWaltz3 is offline
           
          Join Date: Jul 2009
          Gender: Male
          Posts: 188
          As long as you'r eable to get out by dismounting the bike and walking, actually getting stuck in long grass would make more sense than just bumping into some invisible wall.
          Reply With Quote
            #5    
          Old September 4th, 2013 (9:29 AM).
          Nickalooose Nickalooose is offline
          --------------------
             
            Join Date: Mar 2008
            Gender: Female
            Posts: 1,309
            If you play with the code you will be able to do other things than just crash into the grass... For example if you're at top speed, make the player "fall" off and white out lmao.
            Personally I prefer riding in the grass at slower speed than just getting stuck, but each to their own.

            You could drop a message saying, "the grass is long, get off bike?"... "don't be silly, I can't ride through grass that's longer than my hair."... "did you know this is a bicycle not a lawn-mower?!".

            Just because the line I added made you stop immediately, doesn't mean you have to have that as "what it does".
            Reply With Quote
              #6    
            Old September 4th, 2013 (4:57 PM).
            zingzags's Avatar
            zingzags zingzags is offline
            PokemonGDX creator
               
              Join Date: Jan 2009
              Location: Boston
              Age: 23
              Nature: Adamant
              Posts: 562
              Wait so you do not want the player to be stuck in tall grass, and they are not able to mount a bike in it? Just do a check if the player is in tall grass, in the mount bike method.
              __________________
              Check out the Pokemon Game Engine I am working on:
              https://github.com/sjosegarcia/Pokemon
              Reply With Quote
                #7    
              Old September 5th, 2013 (11:45 AM).
              AmethystRain's Avatar
              AmethystRain AmethystRain is offline
              pixie-powered judgment!
                 
                Join Date: Apr 2012
                Gender: Female
                Posts: 243
                Quote:
                Originally Posted by Nickalooose View Post
                That's easy:
                Code:
                      elsif Kernel.pbFacingTerrainTag==PBTerrain::TallGrass &&
                         $PokemonGlobal.bicycle && self_event==$game_player
                        return false
                EDIT:
                Just replace the lines you found with these ones lol.
                Thank you!

                Quote:
                Originally Posted by Maruno View Post
                Don't you think it's fun to be able to cycle into tall grass and get stuck?
                Do you mean you did this on purpose? Well, it's creative but it isn't how it is in the original games, and I had been hoping to replicate that code for something else. It does make sense for a bike, but not for what I'm doing with this
                __________________
                i'm a lover before a fighter, but a killer before a kisser
                also i made reborn or something
                Reply With Quote
                  #8    
                Old September 5th, 2013 (4:58 PM).
                Maruno's Avatar
                Maruno Maruno is offline
                Lead Dev of Pokémon Essentials
                   
                  Join Date: Jan 2008
                  Location: England
                  Posts: 5,173
                  Actually it was an oversight when I added the code which prevents cycling in tall grass, but it seemed fun and I didn't bother fixing it once I noticed it.
                  __________________
                  Go to the Pokémon Essentials Wiki

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

                  Follow me on Twitter: @maruno42


                  Reply With Quote
                    #9    
                  Old September 5th, 2013 (5:15 PM).
                  zingzags's Avatar
                  zingzags zingzags is offline
                  PokemonGDX creator
                     
                    Join Date: Jan 2009
                    Location: Boston
                    Age: 23
                    Nature: Adamant
                    Posts: 562
                    I wish I could give a like for the comment above!
                    __________________
                    Check out the Pokemon Game Engine I am working on:
                    https://github.com/sjosegarcia/Pokemon
                    Reply With Quote
                      #10    
                    Old October 11th, 2013 (2:43 PM). Edited October 27th, 2013 by AmethystRain.
                    AmethystRain's Avatar
                    AmethystRain AmethystRain is offline
                    pixie-powered judgment!
                       
                      Join Date: Apr 2012
                      Gender: Female
                      Posts: 243
                      lolololol ame is a blonde post edited out because shes dumb feel free to delete this.
                      __________________
                      i'm a lover before a fighter, but a killer before a kisser
                      also i made reborn or something
                      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 6:01 PM.