Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-12-06 21:50:24

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 308/649

Trainer Flags

Well before I stumbled upon this, I was going to look and document these myself. But to save the hassle I unexpectedly ran into these. They are trainer flags for the Trainers obviously. Look at my trainer tutorial and see how to make a trainer, then you'd see how these flags benefit. These were documented by Koolboyman.

Bird Keeper

03FB = Rod
03FC = Abe
03FD = Bryan
03FE = Theo
03FF = Toby
0400 = Denis
0401 = Vance
0402 = Hank
0403 = Roy
0404 = Boris
0405 = Jose
0406 = Peter
0407 = Jose
0408 = Perry
0409 = Bret
040A = Jose
040B = Vance
040C = Vance

Sage

0410 = Chow
0411 = Nico
0412 = Jin
0413 = Troy
0414 = Jeffrey
0415 = Ping
0416 = Edmond
0417 = Neal
0418 = Li

Camper

041A = Ronald
041B = Todd
041C = Ivan
041D = Elliot
041E = Barry
041F = Lloyd
0420 = Dean
0421 = Sid
0422 = Harvey
0423 = Dale
0424 = Ted
0425 = Todd
0426 = Todd
0427 = Thomas
0428 = Leroy
0429 = David
042A = John
042B = Jerry
042C = Spencer

Burglar

042D = Duncan
042E = Eddie
042F = Corey

Biker

0431 = Kazu
0432 = Kazu
0433 = Dwayne
0434 = Harris
0435 = Zeke
0436 = Charles
0437 = Riley
0438 = Joel
0439 = Glenn

Psychic

043A = Nathan
043B = Franklin
043C = Herman
043D = Fidel
043E = Greg
043F = Norman
0440 = Mark
0441 = Phil
0442 = Richard
0443 = Gilbert

Firebreather

0446 = Otis
0447 = Dick
0448 = Ned
0449 = Burt
044A = Bill
044B = Walt

Fisher

044C = Justin
044D = Ralph
044E = Arnold
044F = Kyle
0450 = Henry
0451 = Marvin
0452 = Chris
0453 = Andrew
0454 = Raymond
0455 = Wilton
0456 = Edgar
0457 = Jonah
0458 = Martin
0459 = Stephen
045A = Barney
045B = Ralph
045C = Ralph
045D = Chris
045E = Chris
045F = Wilton

Twins

0460 = Amy & May
0461 = Ann & Anne
0462 = Amy & May
0463 = Joe & Zoe
0464 = Jo & Zoe
0465 = Meg & Peg
0466 = Meg & Peg

Schoolboy

046C = Jack
046D = Kipp
046E = Alan
046F = Johnny
0470 = Danny
0471 = Tommy
0472 = Dudley
0473 = Joe
0474 = Billy
0475 = Chad
0476 = Nate
0477 = Ricky
0478 = Jack
0479 = Jack
047A = Alan
047B = Alan
047C = Chad
047D = Chad

Picnicker

047E = Liz
047F = Gina
0480 = Brooke
0481 = Kim
0482 = Cindy
0483 = Hope
0484 = Sharon
0485 = Debra
0486 = Gina
0487 = Erin
0488 = Liz
0489 = Liz
048A = Heidi
048B = Edna
048C = Gina
048D = Tiffany
048E = Tiffany
048F = Erin
0490 = Tanya
0491 = Tiffany
0492 = Erin

Guitarist

0493 = Clyde
0494 = Vincent

Juggler

0495 = Irwin
0496 = Fritz
0497 = Horton
0498 = Irwin
0499 = Irwin

Gentleman

049A = Preston
049B = Edward
049C = Gregory
049D = Virgil
049E = Alfred

Scientist

049F = Ross
04A0 = Mitch
04A1 = Jed
04A2 = Marc
04A3 = Rich

Blackbelt

04A4 = Kenji
04A5 = Yoshi
04A6 = Kenji
04A7 = Lao
04A8 = Nob
04A9 = Kiyo
04AA = Lung
04AB = Wait

Beauty

04AC = Victoria
04AD = Samantha
04AE = Julie
04AF = Jaclyn
04B0 = Brenda
04B1 = Cassie
04B2 = Caroline
04B3 = Carlene
04B4 = Jessica
04B5 = Rachel
04B6 = Angelica
04B7 = Kendra
04B8 = Veronica
04B9 = Julia
04BA = Theresa
04BB = Valerie

GYM Leaders

04BD = Falkner
04BE = Bugsy
04BF = Whitney
04C0 = Morty
04C1 = Jasmine
04C2 = Chuck
04C3 = Brice
04C4 = Claire
04C5 = Brock
04C6 = Misty
04C7 = Lt. Surge
04C8 = Erika
04C9 = Janine
04CA = Sabrina
04CB = Blaine
04CC = Blue

Pokefan♂

04CD = William
04CE = Derek
04CF = Robert
04D0 = Joshua
04D1 = Carter
04D2 = Trevor
04D3 = Brandon
04D4 = Jeremy
04D5 = Colin
04D6 = Derek
04D7 = Derek
04D8 = Alex

Pokefan♀

04D9 = Beverly
04DA = Ruth
04DB = Beverly
04DC = Beverly
04DD = Georgia

Kimono Girl

04DE = Kyoko
04DF = Naoko (Flareon)
04E0 = Sayo (Espeon)
04E1 = Zuki (Umbreon)
04E2 = Kuni (Vaporeon)
04E3 = Miki (Jolteon)

Pokémaniac

04E4 = Larr
04E5 = Andrew
04E6 = Calvin
04E7 = Ben
04E8 = Brent
04E9 = Ron
04EA = Ethan
04EB = Brent
04EC = Brent
04ED = Issac
04EE = Donald
04EF = Zach

Rocket

04F0 = Rocket
04F1 = Rocket
04F2 = Rocket
04F3 = Rocket
04F4 = Rocket
04F5 = Rocket
04F6 = Rocket
04F7 = Rocket
04F8 = Rocket
04F9 = Rocket
04FA = Rocket
04FB = Rocket
04FC = Rocket
04FD = Rocket
04FE = Rocket
04FF = Rocket
0500 = Rocket
0501 = Rocket
0502 = Rocket
0503 = Rocket
0504 = Rocket
0505 = Rocket
0506 = Rocket
0507 = Rocket
0508 = Rocket

Lass

0514 = Carrie
0515 = Bridget
0516 = Alice
0517 = Krise
0518 = Connie
0519 = Linda
051A = Laura
051B = Shanon
051C = Michelle
051D = Dana
051E = Ellen
051F = Connie
0520 = Connie
0521 = Dana
0522 = Dana

Hiker

0524 = Anthony
0525 = Russell
0526 = Phillip
0527 = Leonard
0528 = Anthony
0529 = Benjamin
052A = Erik
052B = Michael
052C = Parry
052D = Timothy
052E = Bailey
052F = Anthony
0530 = Tim
0531 = Noland
0532 = Sidney
0533 = Kenny
0534 = Jim
0535 = Daniel
0536 = Parry
0537 = Parry

Bug Catcher

0538 = Don
0539 = Rob
053A = Ed
053B = Wade
053C = Benny
053D = Al
053E = Josh
053F = Arnie
0540 = Ken
0541 = wade
0542 = Wade
0543 = Doug
0544 = Arnie
0545 = Arnie

Officer

0546 = Keith
0547 = Dirk

Cooltrainer♂

0548 = Nick
0549 = Aaron
054A = Paul
054B = Cody
054C = Mike
054D = Gaven
054E = Gaven
054F = Ryan
0550 = Jake
0551 = Gaven
0552 = Blake
0553 = Brian
0554 = Erick
0555 = Andy
0556 = Tyler
0557 = Sean
0558 = Kevin
0559 = Steve
055A = Allen

Cooltrainer♀

055B = Gwen
055C = Lois
055D = Fran
055E = Lola
055F = Kate
0560 = Irene
0561 = Kelly
0562 = Joyce
0563 = Beth
0564 = Reena
0565 = Megan
0566 = Beth
0567 = Carol
0568 = Quinn
0569 = Emma
056A = Cybil
056B = Jenn
056C = Beth
056D = Reena
056E = Reena

Super Nerd

0581 = Eric
0582 = Eric
0583 = Gregg
0584 = Jay
0585 = Dave
0586 = Sam
0587 = Tom
0588 = Pat
0589 = Shawn
058A = Teru
058B = Russ
058C = Norton

Medium

058D = Bethany
058E = Margret
088F = Ethel
0590 = Rebecca
0591 = Doris

Skier

0592 = Roxanne
0593 = Clarissa

Swimmer♂

0594 = Harold
0595 = Simon
0596 = Randall
0597 = Charlie
0598 = George
0599 = Berke
059A = Kirk
059B = Mathew
059C = Hal
059D = Paton
059E = Daryl
059F = Walter
05A0 = Tony
05A1 = Jerome
05A2 = Tucker
05A3 = Rick
05A4 = Cameron
05A5 = Seth
05A6 = James
05A7 = Lewis
05A8 = Parker

Youngster

05A9 = Joey
05AA = Mikey
05AB = Albert
05AC = Gordon
05AD = Sauel
05AE = Ian
05AF = Joey
05B0 = Joey
05B1 = Warren
05B2 = Jimmy
05B3 = Owen
05B5 = Jason

Elite 4

05B8 = Will
05B9 = Koga
05BA = Bruno
05BB = Karen
05BC = Lance

Last edited by IIMarckus (2011-12-07 04:16:40)


Pokemon Blue DX is reborn!

Offline

#2 2011-12-07 00:52:17

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

Re: Trainer Flags

I once did a recursive lookup through all the maps and all the scripts to determine the range of valid flag numbers. You could easily do that and determine trainer group and id using the same technique. Just saying...

Also, it would be preferrably to not post values in Big Endian format. It just confuses people.

cYa,

Tauwasser

Offline

#3 2011-12-07 04:09:42

375/703

Re: Trainer Flags

Tauwasser wrote:

Also, it would be preferrably to not post values in Big Endian format. It just confuses people.

Indeed. I’ve edited it to make sense.

#4 2011-12-07 04:21:19

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 316/649

Re: Trainer Flags

Wow, it looks neat.

Thanks for that. Even I was confused to be honest. But not all the trainers are documented there...all the Rockets anyway.

Something isn't right here. Some of this flags don't work.

A couple of Super Nerd's isn't triggering the battle.

EDIT: Well I'll be a weenie.

I think Koolboyman played a smooth card here and flipped some of the bits. When I flipped the first flag of Super Nerd over, it worked.

What kind of game is this Koolboyman!?

Maybe this is what you all mean by Big Endian. Anyway, IIMarkus changed this to Big Endian.


Pokemon Blue DX is reborn!

Offline

#5 2014-03-05 01:18:57

Chamber_
Member
Registered: 2013-12-31
Post 20/119

Re: Trainer Flags

Los que hacian falta:

Sailor
0575 = Eugene
0576 = Huey
0577 = Terrell
0578 = Kent
0579 = Ernest
057a = Jeff
057b = Garrett
057c = Kenneth
057D = Stanly
057e = Harry
057F = Huey
0580 = Huey

Blackbelt
04A4 = Kenji 1
04A5 = Yoshi
04A6 = Kenji 2
04A7 = Lao
04A8 = Nob
04A9 = Kiyo
04AA = Lung
04AB = Kenji
04AC = Wait

Last edited by Chamber_ (2014-03-05 01:34:17)

Offline

#6 2015-09-18 16:56:41

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 46/283

Re: Trainer Flags

Are there some free trainer flags or are shared with the event flags? Because for my project of completion of Gold and Silver I need to add some trainers, some items and some events.


The italian Pokémon Green creator.

Offline

#7 2015-09-18 18:59:40

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

Re: Trainer Flags

You can reuse the trainer flags of team rocket events since the rockets are gone for good once the event is finished. For example, you can make Bugsy clear the trainer flags from the slowpoke well rockets and reuse them in future trainers.

Offline

#8 2015-09-18 19:34:05

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 47/283

Re: Trainer Flags

But how many are the free flags?  I need to insert 23 trainers, 6 flags for 6 events (Moltres, Zapdos, Articuno, Mewtwo, gift of the Pokéflute and the discover of Pokémon Mansion) and maybe some items in the seafom islands, Cerulean cave, Safari Zone and pokémon mansion, about 3 items for map, Viridian Forest have it's items and I'll move them in the new map. Then 23 flags for the trainers, 6 for new events (or perhaps 8 for insert the Dragon Sage event for Clair's badge), and about 30 flags for the land items, are free 60 flags?

Your idea not is bad, but we are sure that not is an idea used also by Game freak? I can recycle safety all the rocket trainers?

Pokémon Crystal had 15 added trainer and maybe other flags used for the events of Suicune and Eusine. How many are the free flags (if you know) in both Gold/Silver and Crystal?


The italian Pokémon Green creator.

Offline

#9 2015-09-21 20:38:40

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 53/283

Re: Trainer Flags

Excuse me but in this guide:
http://www.pokecommunity.com/showthread.php?t=127374
Says all the flags used in the games. But seems that you can use flag composed by 2 bytes, then you have free flags up to FFFF? Then I can put the 23 trainers, the 6/7 adding events and about 40 new items for the restored areas of Kanto, right?


The italian Pokémon Green creator.

Offline

#10 2015-09-21 20:49:48

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,042/3,578

Re: Trainer Flags

Halfshadow wrote:

Excuse me but in this guide:
http://www.pokecommunity.com/showthread.php?t=127374
Says all the flags used in the games. But seems that you can use flag composed by 2 bytes, then you have free flags up to FFFF? Then I can put the 23 trainers, the 6/7 adding events and about 40 new items for the restored areas of Kanto, right?

No, you cannot just use up to xFFFF because it would overwrite other data that comes after the flag list.

However, if you'll read through this other sticky thread then you can see how flags work, AND Miksy will explain numbers that you can use to get more free flags.

There is a downside, though. It seems that the space those flags are stored in actually does get used when you link up with another game to trade or battle. If you don't care about that, you can have a ton of free flags and just disable trading with other games. If you do want to keep in trading between games (which, let's face it, most players don't or can't do and a lot of emulators don't even support it) then you would need to do what people have already suggested and re-use flags from Team Rocket members. The game doesn't already reuse them because there was no need to during development (if they needed more flags, they would have just defined more) and there are several flags that are redundant anyway so they clearly weren't trying to save space and reuse them. For example, there are events that set 2 or 3 flags at the same time, and use 1 to hide the event and one to mark the event as passed and stuff like that, when they could have just used 1 for both.

So yeah, long story short: You can check out that link for info on unused flags, but be warned there is a catch. Or 2, you can re-use Team Rocket trainer flags for other things, so long as you reset them (but keep the one that hides them set).

Offline

#11 2015-09-21 21:38:02

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 54/283

Re: Trainer Flags

Ok, thanks, I don't know how many flags I'll can recycle, I hope more of 30, maybe I'll can clear all they with the Clair's script. However in the page are indicated like unused the flags that I can use? And the flags that are used by the linking are indicated?


The italian Pokémon Green creator.

Offline

#12 2015-09-21 22:43:19

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

Re: Trainer Flags

When the player starts a new game, $03, $06, and the text RALPH@ is written to ram starting from DFE8. The first two bytes are used for the guy that checks the size of your magikarps in lake of rage, but I believe the text isn't used for anything. Then you also have some unused ram addresses up to DFF4 that are saved (anything past DFF4 isn't written to the save). I'm talking about Crystal here but if the same applied to G/S you have 80 usable flags here that can be referenced with the check/reset/set bit commands using the ranges around 2Bxx - 2Cxx. These are the aproximate ranges for Crystal though, in G/S the script flag table is probably elsewhere in ram (in Crystal is at DA72 iirc).

Offline

#13 2015-09-22 03:42:00

comet
Member
Registered: 2012-04-09
Post 609/679

Re: Trainer Flags

Any of the flags here that do not appear in the rest of the disassembly are probably unused: https://github.com/kanzure/pokecrystal/ … _flags.asm

Last edited by comet (2015-09-22 04:01:21)

Offline

#14 2015-09-22 08:31:38

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 55/283

Re: Trainer Flags

If I can use really the blank flags of the list are enough for me. :) Thank you.


The italian Pokémon Green creator.

Offline

#15 2015-10-13 18:16:30

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 59/283

Re: Trainer Flags

I have a question... I can recycle the rockets flags also for items, hidden items or other events? Or the trainer flags are only for the trainers? I have to swap them for use with the scripts?


The italian Pokémon Green creator.

Offline

Board footer

Powered by FluxBB