• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • 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] Rival Battle

  • 9
    Posts
    9
    Years
    • Seen Sep 16, 2015
    Hi, I'm having some trouble getting my rival battle code to work.
    I'm trying to get him to walk to talk, walk to player, player reacts, talk, battle, talk, walk away, dissapear
    when i hit the script no sprite walks towards the player but the player reacting still happens. The battle commences and after the battle no code is run until
    the player re-walks over the script panel.. in which it restarts (still no sprite walking down) but skips the battle and goes to him talking before hes supposed to walk away..
    I'm not sure what i'm doing wrong. My rival is person #10
    here is the code..

    Spoiler:


    any help is greatly appreciated.
    Also, there is two rivals in this game, so this rival does not need to check for which pokemon the player started with
    My rom is FireRed
     
    Last edited:
    Changes in bold
    Spoiler:

    As for the rival OW not showing up, it might be because you placed him too far away from the player, e.g. he doesn't get loaded into the map.
     
    Changes in bold
    Spoiler:

    As for the rival OW not showing up, it might be because you placed him too far away from the player, e.g. he doesn't get loaded into the map.

    I've completely redone all my flags and vars to appropriate available ones, based on KarateKid's post.. Thanks for that tip! i was using them in the thousands to avoid any problems but i guess that causes them!
    Using your edits the code worked excellent. also, my sprite wasnt moving because it was sprite number 10 but the script must read it as 0xA and not 0x10 (16)
    thanks a lot for your help! i should be able to code all my rival battles now! :)
     
    Back
    Top