PDA

View Full Version : [Tutorial] Flags and Special Commands [R/FR/E]


Argent Crusader
July 15th, 2007, 10:09 AM
Hi, i gonna post some commands that are kinda unknown, some know them, some not, but anyways they are helpful sometimes:

Fire Red Commands

Earthquake:
special 0x136

Select Three PKMN for something:
special 0x29

Access BILL's PC:
special 0x3C

KANTO POKéDEX Doc:
special 0x108

Elevator Animation:
special 0x111

HALL OF FAME & Credits:
special 0x110

Shows Floors:
special 0x132

O HP Haunter Battle:
special 0x139

Light:
special 0x13D

Battle with Ghost:
special 0x156

Bike:
special 0x157

Surf:
special 0x161

Nickname:
special 0x166

Seagallop Animation (Can Be used as Train ^_^):
special 0x17B

S.S. Anne Leaving:
special 0x191



Ruby Commands

Choose an Pokémon:
special 0x9F

POKéBLOCK CASE:
special 0xD0

MoveTutor:
special 0xE0

HALL OF FAME & Credits:
special 0x110

Elevator Animation:
special 0x111

Restart Game:
special 0x10F

Pokémon Image (This is cool but needs decoding):
special 0x140

Falls in the first warp of the map:
special 0x13F

Uses the first warp of the map:
special 0x13E

Light:
special 0x13D

Groudon's Orb:
special 0x119

Earthquake:
special 0x131

Show floors:
special 0x132

Weird Quake:
special 0x136

Lava Battle:
special 0x137

Legendary Battle:
special 0x138

Legendary Battle 2:
special 0x139

Strange Message (Is like the Unowns or Something):
special 0x67

Going up to the Mountain:
special 0x98



Emerald:

Set Party Menu:
setflag 0x860

Set Pokédex Menu:
setflag 0x861

Set Navigator Menu:
setflag 0x862

Set Match Call + Devon Pres. Number:
setflag 0x130

Also there's one more ting for emerald:

The POKéNAV Call:
#org 0x(offset)
#raw 0x69
#raw 0xDF
#raw 0x(text byte 03)
#raw 0x(text byte 02)
#raw 0x(text byte 01)
#raw 0x08
#raw 0x66
#raw 0x28
#raw 0x1E
nop
end

D-Trogh
July 16th, 2007, 01:26 AM
Aahh.. Handy ^^
Some of them I didn't knew, mostly because I haven't searched them :)
Good job.. I hope people will add things to this list :)

Martin Yiu
July 16th, 2007, 01:44 AM
Oh, is there possibility to make a tut how to alter the segallop with different graphics?? Or just tell the offsets? Anyways, thank you for very helpful adviced in hacking :)

Argent Crusader
July 16th, 2007, 05:11 AM
The Seagallop, ummm, i think the Overworld is in tiled or any overworld editor. I dont know about the water, but, is an animation, so, i think it's on tiled.

<~F.M.P~>
July 17th, 2007, 12:21 PM
Where do u put these special ones at?

HackMew
July 17th, 2007, 02:14 PM
Where do u put these special ones at?

Well, in a script of course. Or did you mean something else?

<~F.M.P~>
July 17th, 2007, 08:06 PM
Oh and What would the script look like?

foullump
July 18th, 2007, 08:46 AM
Oh and What would the script look like?

Ask that question in a script request section or something.
But it would be like this

#org 0x800000
special 0x0
release
end

Wuggles
July 18th, 2007, 09:35 AM
Nice!
I got some too ^^

FireRed - Leafgreen
setflag 0x829 - Turn on Pokedex
setflag 0x828 - Turn on PokeMenu
special 0x16F - Turn on National Dex
setflag 0x820-0x827 - all badges

Ruby - Sapphire
setflag 0x800 - Turn on PokeMenu
setflag 0x801 - Turn on Pokedex
setflag 0x802 - Turn on Pokemon Navigator
setflag 0x807-80E - all badges
special 0x9C - ChoosePokemon (choose starterpokémon)
special 0x9D - WallyCatch (Wally catch the ralts..)

Emerald
special 0x1F3 - Turn on National Dex

General(these are just things for newbies ;3)
\v\h01 - your own chosen name
\v\h06 - chosen name of rival

HackMew
July 18th, 2007, 12:45 PM
The POKéNAV Call:

#org 0x(offset)
#raw 0x69
#raw 0xDF
#raw 0x(text byte 03)
#raw 0x(text byte 02)
#raw 0x(text byte 01)
#raw 0x08
#raw 0x66
#raw 0x28
#raw 0x1E
nop
end


I think that that part would look better in this way:


#org 0x(offset)
#raw 0x69
#raw 0xDF
#raw 0x8(text offset)
#raw 0x66
pause 0x1E
nop
end




setflag 0x829 - Turn on Pokedex
setflag 0x828 - Turn on PokeMenu


Sorry but you inverted that two flags :P

Wuggles
July 19th, 2007, 12:13 AM
Sorry but you inverted that two flags :P

Thnx Andrea ^^ Edited :-P

Short Range
July 25th, 2007, 02:04 AM
setflag 0x820-0x827 - all badges

Does that mean it gives you all the badges or does it mean you have to have all the badges?

Wuggles
July 25th, 2007, 03:51 AM
Does that mean it gives you all the badges or does it mean you have to have all the badges?

setflag gives all badges
checkflag checks all badges ;)

HackMew
July 25th, 2007, 04:55 AM
Does that mean it gives you all the badges or does it mean you have to have all the badges?

To make it clearer:

setflag 0x820 'enable 1st badge
setflag 0x821 'enable 2nd badge
setfalg 0x822 'enable 3rd badge
setflag 0x823 'enable 4th badge
setflag 0x824 'enable 5th badge
setflag 0x825 'enable 6th badge
setflag 0x826 'enable 7th badge
setflag 0x827 'enable 8th badge

Hiidoran
July 25th, 2007, 11:11 AM
Thank you very much! It seems people are always asking which special or flag does what. Thanks to you, that problem will no longer exist!

the new guy
July 31st, 2007, 07:10 PM
Would there be a special command to enable the national dex in ruby? If so, does anybody know what it is? It would be highly appreciated.

darklucario
August 4th, 2007, 04:09 PM
what is special command to enable the national dex in ruby?(estou translate com help de um dicionary i am from brazil)!

jdogpwnz
August 5th, 2007, 09:07 PM
thanks it really helped!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

thethethethe
August 11th, 2007, 04:06 PM
Does anybody know the flags for when Oak checks your pokedex? Also the running shoes, please?

Teh Baro
August 14th, 2007, 06:21 AM
Anyone knows a way to check if you are mounting the bike (a flag for it?) or a special to dismount the bike (no, 0x157 doesn't work the other way round)

Short Range
August 15th, 2007, 01:54 AM
Thanks very much to you two who cleared up that thing with the badges!

Prof. 9
August 22nd, 2007, 08:41 AM
Cool, but... how does the Pokémon Image command (Ruby) work?

EDIT: And...

If you useFalls in the first warp of the map:
special 0x13F

Uses the first warp of the map:
special 0x13E
Will the script continue after warping?

boon
August 22nd, 2007, 09:15 AM
thanks,it realy helped me.:classic:

Derlo
August 25th, 2007, 06:54 PM
how is the command that activates RUNNING SHOES in FR?

foullump
September 2nd, 2007, 06:25 PM
I used the earhquake (special 0x136) but ehh... how do I make it stop? It continues until the end of the script.

urzzz
September 6th, 2007, 02:39 AM
Just thought i'd contribute a little

FR running shoes - Flag 0x82F

foullump
September 6th, 2007, 02:55 PM
Just thought i'd contribute a little

FR running shoes - Flag 0x82F

Awesome! Now I can put the running shoes from the beginning of my game!

Sergio--
September 18th, 2007, 08:07 AM
Anyone knows a way to check if you are mounting the bike (a flag for it?) or a special to dismount the bike (no, 0x157 doesn't work the other way round)

Hey baro!
I don't know if there it's coded something for dismount the bike.
For check if you're in the bike, I used this:

#org 0x
special2 LASTRESULT 0xE3
compare LASTRESULT 0x2
if 0x1 call 0x(MACH BIKE)
compare LASTRESULT 0x0
if 0x1 jump 0x(BY FOOT)
(ACRO BIKE)
end

#org 0x(MACH BIKE)
msgbox '"¡Comienza la carrera..."

end

#org 0x(BY FOOT)
msgbox '"¡No te acerques al b..."
end

This is tested in ruby, I suppose you're asking for FR, but well, try it.
Maybe you'll need to 'compare' the 0x1 for be in the FR bike, like in FR there is only one.

ZodiacDaGreat
September 18th, 2007, 08:23 PM
Pokémon Image (This is cool but needs decoding):
special 0x140

I tried the special in a script in Ruby, and the "? poke" appears. So how do you decode it, so it can show other Pokemon species???

thethethethe
September 18th, 2007, 10:15 PM
If you want the pokemon picture in FR to appear use this(haven't tried it in ruby), I got this from the script discussion thread from Hackmew(Rom-raiders)
PP and QQ are the pokemon's hex number and
XX and YY are the location of the box(0A,03 is the middle in FR)
Add #raw 76 when you want the picture box to close.

#raw 75
#raw PP
#raw QQ
#raw XX
#raw YY

Close Box Code:
#raw 76

ZodiacDaGreat
September 20th, 2007, 08:09 PM
If you want the pokemon picture in FR to appear use this(haven't tried it in ruby), I got this from the script discussion thread from Hackmew(Rom-raiders)
PP and QQ are the pokemon's hex number and
XX and YY are the location of the box(0A,03 is the middle in FR)
Add #raw 76 when you want the picture box to close.

#raw 75
#raw PP
#raw QQ
#raw XX
#raw YY

Close Box Code:
#raw 76

I tried that in Ruby, but the image appears in different palletes if its in indoors, but works fine in routes and towns.

But the special 0x140 it only shows the ? poke, I want to make it show something else??

falkner
September 22nd, 2007, 06:48 AM
On emerald when i put special 0x98 (mountain) i get a black screen and a fanfare tune... HELP!

OMNIPOTENT
October 3rd, 2007, 01:04 PM
looking the beginning scripts in ruby i found these:

special 0x9A
special 0x9B

these should open the menu to set the clock (one for girl, one for man). if anybody can try them and check if they're enough or some setvar/compare/LASTRESULT is needed, it could be great.

[rejected] and about the national dex... mmh i found something else looking the birch's script, look at it, i'm asking in the script thread for infos on the decripting.


'-----------------------
#org 0x1A0D5A
setvar 0x8004 0x0
special2 LASTRESULT 0xD4
copyvar 0x8008 0x8005
copyvar 0x8009 0x8006
copyvar 0x800A LASTRESULT
#raw 0x83
nop
jumpstd 0x80
#raw 0x83
nop
callstd 0x80
msgbox 0x81C61FA '"Mhmm...\pDunque, hai..."
callstd 0x4
call 0x81A0D4F
compare 0x800A 0x0
if 0x1 jump 0x1A1EF7
setvar 0x8004 0x1
special2 LASTRESULT 0xD4
copyvar 0x8008 0x8005
copyvar 0x8009 0x8006
#raw 0x83
nop
jumpstd 0x80
#raw 0x83
nop
callstd 0x80
msgbox 0x81C6809 '"Uhm...\nSu base nazi..."
callstd 0x4
return

'-----------------------
#org 0x1A0D4F
copyvar 0x8004 0x8009
special 0xD5
#raw 0x66
#raw 0x6D
return
'-----------------------
#org 0x1A1EF7
return

Knox
October 7th, 2007, 12:37 PM
Yay. Special commands.

But does anyone know how to use earthquake? I never get it to work

Dr.Razor
October 17th, 2007, 05:58 AM
If you want the pokemon picture in FR to appear use this(haven't tried it in ruby), I got this from the script discussion thread from Hackmew(Rom-raiders)
PP and QQ are the pokemon's hex number and
XX and YY are the location of the box(0A,03 is the middle in FR)
Add #raw 76 when you want the picture box to close.

#raw 75
#raw PP
#raw QQ
#raw XX
#raw YY

Close Box Code:
#raw 76

Where can i find pokemon's hex number?
I need the hex of jirachi.

D-Trogh
October 17th, 2007, 07:49 AM
Why are people to lazy to search for it before they ask - -'
Jirachi's HEX = 0199

rsr13
January 20th, 2008, 05:00 AM
Does any one knows te commands of:

(Ruby) Runnging shoe's
(Ruby) Region map


Already thanks!

pokeglitch86
January 21st, 2008, 11:04 AM
Does anybody know the flag for the abilty to surf. The special 0x161 makes you start surfing wherever you are standing and the flag for the 6th badge just gives you the 6th badge.

zaayid
January 23rd, 2008, 08:19 AM
If you want the pokemon picture in FR to appear use this(haven't tried it in ruby), I got this from the script discussion thread from Hackmew(Rom-raiders)
PP and QQ are the pokemon's hex number and
XX and YY are the location of the box(0A,03 is the middle in FR)
Add #raw 76 when you want the picture box to close.

#raw 75
#raw PP
#raw QQ
#raw XX
#raw YY

Close Box Code:
#raw 76

How do find the pokemon's hex number? I need Dragonite's.

Flashpoint
February 20th, 2008, 11:49 PM
I got a question

When using the surf special
Is there a way to get off the pokemon youre surfing on

offtopic : Wow,almost a month without reply's

Darthatron
February 25th, 2008, 01:03 AM
I think I should contribute... Here is what I've found so far: [Fire Red]

special 0x9D - The Old Man showing you how to catch a Pokemon. (Could be edited somehow for a Yellow Remake?)

X-Buster
February 25th, 2008, 02:31 AM
Ahh..! why does anyone always asking for the hex value of a pokemon..!
Its very simple to convert you know? just take the pokédex number and convert it into hex..! (e.g. Mew/dex#:151/hex value:97)

sab
March 28th, 2009, 06:52 AM
does anyone know what the command for nationl dex is in ruby? btw It was a great idea to start this thread.

Ivysaur
March 28th, 2009, 11:37 AM
Sorry, but reviving threads that are over a month old is against the rules.

~Closed