• 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] I need help with trainerbattle 0x9

__fred__40

fred
  • 277
    Posts
    5
    Years
    So I tried to use trainerbattle 0x9 in a script with a trainer that is impossible to battle ,I put the special 0x0 in the line following the battle command and I change the Hex to take out the Oak Introduction(credit to Avara,here is her tutorial, https://www.pokecommunity.com/threads/397107 ).
    But still when I lose the battle I automatically go to the Pokemon Center,
    I tried to put in a person event and in a script box but the resul was always the same.
    Did I miss any command in XSE or should I edit something else in HEX?
    Anyone knows the answer??
    Fred
     
    I found it out myself so just for the archive,the script goes as follows:

    . . .
    trainerbattle 0x9 0x001 0x3 @msgwin @msgdefeat
    special 0x0
    . . .

    no waitstate command after the special and 0x3 as the filler value between the 1st message and the value of the battle to start
    At least that how it worked for me
    fred
     
    Back
    Top