Skeetendo

’Cause all games were better on the GBC

You are not logged in.

  • Index
  • → Help/Question
  • → [Pokered]How would I make it so that all trainers re-battle you?

#1 2018-02-18 20:36:21

Peej4321
New member
Registered: 2018-02-16
Post 6/9

[Pokered]How would I make it so that all trainers re-battle you?

Like the breeder trainer classes from the generation 5 games. When you leave the route, they go back to where they first stood like normal, but they battle you again if you walk infront of them again. I can't find any kind of function or whatever it is for when you leave an area. And in that, what would I have to put to reset the trainers?

Last edited by Peej4321 (2018-02-18 20:36:44)

Offline

#2 2018-02-19 12:50:49

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 440/450
Website

Re: [Pokered]How would I make it so that all trainers re-battle you?

Create a function that resets (ResetEvent) all the EVENT_BEAT_XXX constants in https://github.com/pret/pokered/blob/ma … stants.asm that you want from all maps, and call it at the beginning of EnterMap (home/overworld.asm).

Offline

#3 2018-02-19 17:46:24

Peej4321
New member
Registered: 2018-02-16
Post 7/9

Re: [Pokered]How would I make it so that all trainers re-battle you?

Crystal_ wrote:

Create a function that resets (ResetEvent) all the EVENT_BEAT_XXX constants in https://github.com/pret/pokered/blob/ma … stants.asm that you want from all maps, and call it at the beginning of EnterMap (home/overworld.asm).

Thanks.

Offline

#4 2018-02-19 20:03:00

Peej4321
New member
Registered: 2018-02-16
Post 8/9

Re: [Pokered]How would I make it so that all trainers re-battle you?

Crystal_ wrote:

Create a function that resets (ResetEvent) all the EVENT_BEAT_XXX constants in https://github.com/pret/pokered/blob/ma … stants.asm that you want from all maps, and call it at the beginning of EnterMap (home/overworld.asm).

Doing that is making "Main" too big and it won't build.

Offline

#5 2018-02-21 21:43:52

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 441/450
Website

Re: [Pokered]How would I make it so that all trainers re-battle you?

Extract your new code to a separate function, and place it at the bottom of main.asm.

Then place a single instruction in the EnterMap routine that reads:

farcall MyFunc

Last edited by Crystal_ (2018-02-21 21:45:57)

Offline

#6 2018-02-22 16:52:10

Peej4321
New member
Registered: 2018-02-16
Post 9/9

Re: [Pokered]How would I make it so that all trainers re-battle you?

Crystal_ wrote:

Extract your new code to a separate function, and place it at the bottom of main.asm.

Then place a single instruction in the EnterMap routine that reads:

farcall MyFunc

Now it says 'bank1E' is too big.

Offline

  • Index
  • → Help/Question
  • → [Pokered]How would I make it so that all trainers re-battle you?

Board footer

Powered by FluxBB