• 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✓] Battling trainers again?

Criminon

Forever Spriting
  • 265
    Posts
    12
    Years
    Is there something that stops a trainer battle from only being able to happen once? Like when the battle is set through scripts instead of the normal view method?

    Edit:

    Found it out!

    Spoiler:
     
    Last edited:
    The 'trainer flags' are actually real flags. So once they're set(by beating that person) then the game will skip over the battle again because the flag has already been set.


    If you wanted to battle a trainer again then i'd just have either a level script that has 'settrainerflag 0x__
    settrainerflag 0x__' etc. That means whenever you leave that map the trainer will behave like he/she did when you first walked into their path.


    Alternatively, you can have a script set up where the trainer will ask you yes or no to another battle. You'd use settrainerflag 0x__ if they said yes.
     
    You could use cleartrainerflag 0x(trainer flag).
     
    cleartrainerflag actually disables the trainer battle from happening. settrainerflag is the command you want for making the battle be able to be done again.


    Yeah, haha. took me a lot of trial and error. Really appreciate everyone taking the time to send this. Ironically enough I did it the hard way and went through a command list.
     
    Back
    Top