• 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?".
  • 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
4
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/showthread.php?t=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
 

__fred__40

fred
277
Posts
4
Years
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