The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other trainer battle value (https://www.pokecommunity.com/showthread.php?t=351969)

pokemon r July 9th, 2015 10:30 AM

trainer battle value
 
Guys can you tell how many values are present And how to use this value s please guys replay I am having problem

Joexv July 11th, 2015 4:56 PM

Could you give a little more information regarding your issue? You're not really specifying what "value" you're talking about.

Splash July 11th, 2015 7:10 PM

Quote:

Originally Posted by joexv (Post 8841951)
Could you give a little more information regarding your issue? You're not really specifying what "value" you're talking about.

Maybe it's the trainer ai value..

pokemon r July 11th, 2015 11:38 PM

Quote:

Originally Posted by joexv (Post 8841951)
Could you give a little more information regarding your issue? You're not really specifying what "value" you're talking about.

I want to know the value of trainer battle like 0*1
And when we use that values

Joexv July 12th, 2015 4:23 PM

Quote:

Originally Posted by pokemon r (Post 8842530)
I want to know the value of trainer battle like 0*1
And when we use that values

0x0-Normal trainer battle setup script as so:
Spoiler:
Code:

#dynamic 0x800000
#org @start
trainerbattle 0x0 0xTrainer 0x0 @fight @lose
msgbox @talk 0x6
end

#org @fight
= I say this when I see you!

#org @lose
= I say this when I lose the battle

#org @talk
= I say this if you talk to me afterwards




0x1 Continues the determined script after the battle(if you win)

Spoiler:
Code:

#dynamic 0x800000
#org @start
....
trainerbattle 0x1 0xTrainer 0x0 @fight @lose @after
end

#org @after
msgbox @talk 0x6
end

#org @fight
= I say this when I see you!

#org @lose
= I say this when I lose the battle

#org @talk
= I say this if you talk to me afterwards




0x3 Continues the current script(if you win)

Spoiler:
Code:

#dynamic 0x800000
#org @start
trainerbattle 0x3 0xTrainer 0x0 @fight @lose
continues....
end

#org @fight
= I say this when I see you!

#org @lose
= I say this when I lose the battle

#org @talk
= I say this if you talk to me afterwards




0x9 is the oak battle it will continue even if you lose. I cant remember how this one is setup

And for the missing values, they are unknown to me.

NewDenverCity July 12th, 2015 6:28 PM

If I remember correctly, to add onto joexv's post, 0x2 plays encounter music and 0x3 does not.

Joexv July 12th, 2015 6:35 PM

And to add on to what newdenvercity added to me, 0x4 is double battle with built in party size check.
Trainerbattle 0x4 0xtrainer 0x0 @fight @lose @notenoughpokemontext

Spherical Ice July 14th, 2015 6:37 AM

http://sphericalice.com/romhacking/documents/script/#c-5C

That link has a comprehensive list of what all the different values for trainerbattle do.

pokemon r July 14th, 2015 10:34 AM

Quote:

Originally Posted by Spherical Ice (Post 8845938)
http://sphericalice.com/romhacking/documents/script/#c-5C

That link has a comprehensive list of what all the different values for trainerbattle do.

Thanks


All times are GMT -8. The time now is 2:29 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.