The PokéCommunity Forums Fan Games ROM Hacking
Script Rematchable trainers?

ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.

Thread Tools
Old May 19th, 2017 (10:59 AM).
Arlaxeon's Avatar
Arlaxeon Arlaxeon is offline
    Join Date: Apr 2014
    Location: The Netherlands
    Gender: Male
    Nature: Rash
    Posts: 24
    Hello people of the PC forums.

    I'm finally doing a more serious hacking attempt in FireRed and I wanted to have a NPC Bug Catcher that's rematchable to make grinding for the 1st Gym easier.

    I played the ROM on my VBA and when I came across the rematchable trainer I noticed a really weird bug (Images in spoiler).


    The Bug Catcher.

    Whenever I open the menu while this Bug Catcher is in sight, it glitches out.

    NOTE: When I open the menu when this Bug Catcher isn't in sight there's no problem yet.

    And then when you try to move, it moves the NPC instead and he turns into the hero overworld sprite.

    NOTE2: When I just pass the Bug Catcher without opening the menu the script works as it should and the rematch works perfectly as well.

    Script here:


    #dynamic 0x2594F6

    #org @start
    trainerbattle 0x0 0x67 0x0 @before @after
    msgbox @1 MSG_YESNO
    compare LASTRESULT 0x1
    if 0x0 goto @ChallengeDenied
    settrainerflag 0x67
    trainerbattle 0x0 0x67 0x0 @before2 @after

    #org @ChallengeDenied
    msgbox @2 MSG_NORMAL

    ' Strings
    #org @before
    = Halt!\nNobody passes through here!\lI see myself as the guardian\lof Rose Forest!

    #org @after
    = I'm not worthy...

    #org @1
    = Not a lot of people have passed\nme and my Pokemon so far...\pI'd like to train with someone as\nstrong as you to get better...\pIs that alright?

    #org @before2
    = Great!\nHere I come!

    #org @2
    = Oh... Okay...\nI'll train by myself then.

    TL;DR - Script works, but it seems like it's causing a bug when opening menu, can anyone explain this?
    Reply With Quote

    Relevant Advertising!

    Old May 19th, 2017 (7:08 PM).
    Buffel Saft's Avatar
    Buffel Saft Buffel Saft is offline
      Join Date: Sep 2013
      Gender: Male
      Posts: 276
      I don't think your script is the problem here, it'll be an issue with the NPC's data. In advance map there are two "face down" settings for NPCs; one of them does what it says it does, and the other is broken. What you've got there is exactly what usually happens when you select the broken one, so changing it to the other one should fix it.
      Reply With Quote

      Quick Reply

      Join the conversation!

      Create an account to post a reply in this thread, participate in other discussions, and more!

      Create a PokéCommunity Account

      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 1:03 AM.