• 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.
  • 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!
  • Dawn, Gloria, Juliana, or Summer - 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.

[Script] Script Tile help?

  • 31
    Posts
    6
    Years
    Okay, so I have almost everything I need ready to idiot-proof the start of my romhack.

    By idiot-proof, I mean forcing the player to set a healing place as this game (for reasons I wish not to disclose just yet) starts on Route 22, so that if for any reason the player's Pokemon faints before healing at a Pokemon Center, they don't end up in undesirable places within the game (had this happen when I was testing the difficulty of a battle in a different romhack, oof).

    For route 22, I need two script tiles, the only difference being which directions the player and NPC need to face each other. I need them to play the event in the spoiler (note that the spoiler event works perfectly fine, I just need something similar to it for the tiles):

    Spoiler:


    I apologize, I did forget to save a copy of the script as it was typed in XSE, but it's a simple enough script that it can still be understood. I can try to retype the original script if it helps.

    For the Pokemon Center, this is the script I'm trying to use (this is just one of the directions), but it fails. The tiles are meant to make the player walk back to the tile they're supposed to be on, but it doesn't make them walk back, and sometimes the player will just be stuck until the game is reset.

    Spoiler:


    I have the person events working as desired, now if I can just get these script tiles working and out of the way, I can move on to the easier part of this game's beginning.

    I really don't like asking for help with things like this, but I haven't hacked a rom in over a year, and kind of forgot how to do a lot of things. I had to relearn stuff. Any help is greatly appreciated.
     
    For route 22, I need two script tiles, the only difference being which directions the player and NPC need to face each other. I need them to play the event in the spoiler (note that the spoiler event works perfectly fine, I just need something similar to it for the tiles):

    Spoiler:

    If you're using a script tile, then some commands such as faceplayer won't work correctly, this is because faceplayer moves the OW you're talking to, but on script tiles you're not interacting with an OW. When using script tiles you need to used the applymovement command any time you want an OW to move. Anyway, here's a 2-in-1 script that you can compile to get the effect you're looking for with some comments:

    Spoiler:


    When you compile it in XSE, you will be given a few different offsets. You will need to copy both script1 and script2 to their respective script tiles.

    For the Pokemon Center, this is the script I'm trying to use (this is just one of the directions), but it fails. The tiles are meant to make the player walk back to the tile they're supposed to be on, but it doesn't make them walk back, and sometimes the player will just be stuck until the game is reset.

    Spoiler:

    The two main issues with this script are both movement related. Here's what it should look like:

    Spoiler:


    Hopefully these both help. If you have any more issues, don't hesitate to post them!
     
    I can't believe I forgot about waitmovement for the Pokemon Center event oh my god. 😂

    Thank you so much DrFuji. I'm going to try these out as soon as I fix a weird bug I accidentally created in my romhack.
     
    Back
    Top