• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[Other] So the hero wants to ride a bike...

  • 202
    Posts
    15
    Years
    • Seen Jan 6, 2017
    No idea why, but when I run this script which I've edited from the original, the hero decides to get on his bike upon leaving the lab. It just has me baffled :s

    Spoiler:


    Anyone any ideas?
     
    Oh, it's the part that follows getting the Pokédex that causes the weird bike problem.

    Search @gramps to get to that part of the script
     
    The script is so long and so many things going on that really don't need to be going on, it makes it hard to debug without seeing ingame what's going on. I suggest you just rewrite it, just from looking I've spotted about 6 optimizations to cut the script's size and computation requirements.

    Anyways, "upon leaving the lab", I suppose that means you exit the building?
    So the script you've written here doesn't do anything to put the player on a bike. I'd look into the level scripts of the map he goes into after leaving the lab.
     
    Unfortunately it does need to be that long, as the script covers the entire game, not just being given the Pokédex. The same script is so Oak has different functions depending on where you are in the game, like checking the dex, giving you the national dex etc. And some make it longer because there are different outcomes depending on which side you start talking to Oak on.

    Here's the part specifically I'm struggling with.

    If you talk to him before collecting the parcel from Viridian City, it's fine. He just says the message and that's that.

    So it's this bit
    Spoiler:


    This is the bit that puts him on the bike afterwards?

    The only level script in the lab is the ones for when Oak first leads you there.

    There aren't any level scripts at all in Pallet Town. And the bike problem only happens after leaving the lab after delivering the Parcel.

    Very confused...

    EDIT: So the script that isn't working isn't that entire script, as most of it isn't actually used it. They're just there waiting for the VARS to be changed to allow them to run.

    EDIT EDIT: I removed all the setvars. Seems to be one of them, will see..

    Solved. The problem was I used a Setvar (4056 I think) that is used in the vanilla game, but JPAN's hacked engine changed this particular VAR to change the player's OW. I happened to change it to the overworld that is the hero on the bike.
     
    Last edited:
    Back
    Top