Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2018-12-09 19:14:38

Hans12
New member
Registered: 2017-09-18
Post 3/4

How does tmlearnset work?

Hello, I added a new Pokemon (Timburr), but i don't understand the learnset.

In my game Timburr don't learn Counter (is TM18), also if i use the TM_01 Mega Punch, Timbur can learn Mega Punch, it should not learn it, I did not put it in the learnset list.

; learnset
tmlearn 6,8,9
tmlearn 10,17,18
tmlearn 19,20
tmlearn 28,31
tmlearn 32,34
tmlearn 44,48
tmlearn 50,54
db BANK(TimburrPicFront)

How does it work?

Offline

#2 2018-12-09 19:53:22

Tauwasser
Member
Registered: 2010-10-16
Post 452/454

Re: How does tmlearnset work?

It's because the bytes got mixed up.
You need to add TM 9 to the second row and TM 18 to the third row, like so:

tmlearn 6,8
tmlearn 9,10,17
tmlearn 18,19,20
tmlearn 28,31
tmlearn 32,34
tmlearn 44,48
tmlearn 50,54
db BANK(TimburrPicFront)

The rows contain 8 TMs each

1st row: TM1..TM8
2nd row: TM9..TM16
3rd row: TM17..TM24
etc.

By adding 9 to the first row, you actually enabled TM1, because (9 - 1) mod 8 = 0, which corresponds to TM1.
By adding 18 to the second row, you actually enabled TM10, because (18 - 1) mod 8 = 1, which corresonds to TM10.

cYa,

Tauwasser

Offline

#3 2018-12-09 20:37:54

Hans12
New member
Registered: 2017-09-18
Post 4/4

Re: How does tmlearnset work?

Tauwasser wrote:

It's because the bytes got mixed up.
You need to add TM 9 to the second row and TM 18 to the third row, like so:

tmlearn 6,8
tmlearn 9,10,17
tmlearn 18,19,20
tmlearn 28,31
tmlearn 32,34
tmlearn 44,48
tmlearn 50,54
db BANK(TimburrPicFront)

The rows contain 8 TMs each

1st row: TM1..TM8
2nd row: TM9..TM16
3rd row: TM17..TM24
etc.

By adding 9 to the first row, you actually enabled TM1, because (9 - 1) mod 8 = 0, which corresponds to TM1.
By adding 18 to the second row, you actually enabled TM10, because (18 - 1) mod 8 = 1, which corresonds to TM10.

cYa,

Tauwasser

It's work.  Thanks you very much!!! :)

Offline

Board footer

Powered by FluxBB