PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Discussion Board > Archive

Notices

Archive Old threads that serve no purpose are here.

 
 
Thread Tools Display Modes
Old 16th January 2014, 10:33 PM   #1
Pia Carrot
Orange Developer
Administrator
 
Pia Carrot's Avatar
 
Join Date: Aug 2010
Location: Valencia Island
Age: 22
Posts: 811
Pia Carrot Pia Carrot Pia Carrot Pia Carrot Pia Carrot
Default [Emerald] Steven's Double Battle

Note: I don't remember who gave me these offsets, but thanks to whoever did so.

To Do list:
  • Break Down XSE Script in Mossdeep Space Station
  • Find Backsprite offset
  • Possible ability byte?
  • Organize thread.



In Pokémon Emerald, you fight alongside Steven at Mossdeep Space Station in a double battle against Team Magma. This feature was most notably used in the hack "Crystal Dust" by Diegoisawesome (I don't recall any other hack using the feature). Anyway, this will show you where to edit and what to edit to make your own double battle with Steven.

Alright, first off, his Pokémon. You'll most likely want to get into these first. Steven has three Pokémon: Metang, Skarmory and Aggron, levels 42, 43 and 44 respectively.

Now, open your Emerald ROM in a hex editor (I use Transhexlation) and find offset 5DD6D0. The first two bytes at this location are the Pokémon's species.

Pokemon's ID (Taken From XSE)
Spoiler:

MISSINGNO 0x0
BULBASAUR 0x1
IVYSAUR 0x2
VENUSAUR 0x3
CHARMANDER 0x4
CHARMELEON 0x5
CHARIZARD 0x6
SQUIRTLE 0x7
WARTORTLE 0x8
BLASTOISE 0x9
CATERPIE 0xA
METAPOD 0xB
BUTTERFREE 0xC
WEEDLE 0xD
KAKUNA 0xE
BEEDRILL 0xF
PIDGEY 0x10
PIDGEOTTO 0x11
PIDGEOT 0x12
RATTATA 0x13
RATICATE 0x14
SPEAROW 0x15
FEAROW 0x16
EKANS 0x17
ARBOK 0x18
PIKACHU 0x19
RAICHU 0x1A
SANDSHREW 0x1B
SANDSLASH 0x1C
NIDORANF 0x1D
NIDORINA 0x1E
NIDOQUEEN 0x1F
NIDORANM 0x20
NIDORINO 0x21
NIDOKING 0x22
CLEFAIRY 0x23
CLEFABLE 0x24
VULPIX 0x25
NINETALES 0x26
JIGGLYPUFF 0x27
WIGGLYTUFF 0x28
ZUBAT 0x29
GOLBAT 0x2A
ODDISH 0x2B
GLOOM 0x2C
VILEPLUME 0x2D
PARAS 0x2E
PARASECT 0x2F
VENONAT 0x30
VENOMOTH 0x31
DIGLETT 0x32
DUGTRIO 0x33
MEOWTH 0x34
PERSIAN 0x35
PSYDUCK 0x36
GOLDUCK 0x37
MANKEY 0x38
PRIMEAPE 0x39
GROWLITHE 0x3A
ARCANINE 0x3B
POLIWAG 0x3C
POLIWHIRL 0x3D
POLIWRATH 0x3E
ABRA 0x3F
KADABRA 0x40
ALAKAZAM 0x41
MACHOP 0x42
MACHOKE 0x43
MACHAMP 0x44
BELLSPROUT 0x45
WEEPINBELL 0x46
VICTREEBEL 0x47
TENTACOOL 0x48
TENTACRUEL 0x49
GEODUDE 0x4A
GRAVELER 0x4B
GOLEM 0x4C
PONYTA 0x4D
RAPIDASH 0x4E
SLOWPOKE 0x4F
SLOWBRO 0x50
MAGNEMITE 0x51
MAGNETON 0x52
FARFETCHED 0x53
DODUO 0x54
DODRIO 0x55
SEEL 0x56
DEWGONG 0x57
GRIMER 0x58
MUK 0x59
SHELLDER 0x5A
CLOYSTER 0x5B
GASTLY 0x5C
HAUNTER 0x5D
GENGAR 0x5E
ONIX 0x5F
DROWZEE 0x60
HYPNO 0x61
KRABBY 0x62
KINGLER 0x63
VOLTORB 0x64
ELECTRODE 0x65
EXEGGCUTE 0x66
EXEGGUTOR 0x67
CUBONE 0x68
MAROWAK 0x69
HITMONLEE 0x6A
HITMONCHAN 0x6B
LICKITUNG 0x6C
KOFFING 0x6D
WEEZING 0x6E
RHYHORN 0x6F
RHYDON 0x70
CHANSEY 0x71
TANGELA 0x72
KANGASKHAN 0x73
HORSEA 0x74
SEADRA 0x75
GOLDEEN 0x76
SEAKING 0x77
STARYU 0x78
STARMIE 0x79
MRMIME 0x7A
SCYTHER 0x7B
JYNX 0x7C
ELECTABUZZ 0x7D
MAGMAR 0x7E
PINSIR 0x7F
TAUROS 0x80
MAGIKARP 0x81
GYARADOS 0x82
LAPRAS 0x83
DITTO 0x84
EEVEE 0x85
VAPOREON 0x86
JOLTEON 0x87
FLAREON 0x88
PORYGON 0x89
OMANYTE 0x8A
OMASTAR 0x8B
KABUTO 0x8C
KABUTOPS 0x8D
AERODACTYL 0x8E
SNORLAX 0x8F
ARTICUNO 0x90
ZAPDOS 0x91
MOLTRES 0x92
DRATINI 0x93
DRAGONAIR 0x94
DRAGONITE 0x95
MEWTWO 0x96
MEW 0x97
CHIKORITA 0x98
BAYLEEF 0x99
MEGANIUM 0x9A
CYNDAQUIL 0x9B
QUILAVA 0x9C
TYPHLOSION 0x9D
TOTODILE 0x9E
CROCONAW 0x9F
FERALIGATR 0xA0
SENTRET 0xA1
FURRET 0xA2
HOOTHOOT 0xA3
NOCTOWL 0xA4
LEDYBA 0xA5
LEDIAN 0xA6
SPINARAK 0xA7
ARIADOS 0xA8
CROBAT 0xA9
CHINCHOU 0xAA
LANTURN 0xAB
PICHU 0xAC
CLEFFA 0xAD
IGGLYBUFF 0xAE
TOGEPI 0xAF
TOGETIC 0xB0
NATU 0xB1
XATU 0xB2
MAREEP 0xB3
FLAAFFY 0xB4
AMPHAROS 0xB5
BELLOSSOM 0xB6
MARILL 0xB7
AZUMARILL 0xB8
SUDOWOODO 0xB9
POLITOED 0xBA
HOPPIP 0xBB
SKIPLOOM 0xBC
JUMPLUFF 0xBD
AIPOM 0xBE
SUNKERN 0xBF
SUNFLORA 0xC0
YANMA 0xC1
WOOPER 0xC2
QUAGSIRE 0xC3
ESPEON 0xC4
UMBREON 0xC5
MURKROW 0xC6
SLOWKING 0xC7
MISDREAVUS 0xC8
UNOWN 0xC9
WOBBUFFET 0xCA
GIRAFARIG 0xCB
PINECO 0xCC
FORRETRESS 0xCD
DUNSPARCE 0xCE
GLIGAR 0xCF
STEELIX 0xD0
SNUBBULL 0xD1
GRANBULL 0xD2
QWILFISH 0xD3
SCIZOR 0xD4
SHUCKLE 0xD5
HERACROSS 0xD6
SNEASEL 0xD7
TEDDIURSA 0xD8
URSARING 0xD9
SLUGMA 0xDA
MAGCARGO 0xDB
SWINUB 0xDC
PILOSWINE 0xDD
CORSOLA 0xDE
REMORAID 0xDF
OCTILLERY 0xE0
DELIBIRD 0xE1
MANTINE 0xE2
SKARMORY 0xE3
HOUNDOUR 0xE4
HOUNDOOM 0xE5
KINGDRA 0xE6
PHANPY 0xE7
DONPHAN 0xE8
PORYGON2 0xE9
STANTLER 0xEA
SMEARGLE 0xEB
TYROGUE 0xEC
HITMONTOP 0xED
SMOOCHUM 0xEE
ELEKID 0xEF
MAGBY 0xF0
MILTANK 0xF1
BLISSEY 0xF2
RAIKOU 0xF3
ENTEI 0xF4
SUICUNE 0xF5
LARVITAR 0xF6
PUPITAR 0xF7
TYRANITAR 0xF8
LUGIA 0xF9
HOOH 0xFA
CELEBI 0xFB
TREECKO 0x115
GROVYLE 0x116
SCEPTILE 0x117
TORCHIC 0x118
COMBUSKEN 0x119
BLAZIKEN 0x11A
MUDKIP 0x11B
MARSHTOMP 0x11C
SWAMPERT 0x11D
POOCHYENA 0x11E
MIGHTYENA 0x11F
ZIGZAGOON 0x120
LINOONE 0x121
WURMPLE 0x122
SILCOON 0x123
BEAUTIFLY 0x124
CASCOON 0x125
DUSTOX 0x126
LOTAD 0x127
LOMBRE 0x128
LUDICOLO 0x129
SEEDOT 0x12A
NUZLEAF 0x12B
SHIFTRY 0x12C
NINCADA 0x12D
NINJASK 0x12E
SHEDINJA 0x12F
TAILLOW 0x130
SWELLOW 0x131
SHROOMISH 0x132
BRELOOM 0x133
SPINDA 0x134
WINGULL 0x135
PELIPPER 0x136
SURSKIT 0x137
MASQUERAIN 0x138
WAILMER 0x139
WAILORD 0x13A
SKITTY 0x13B
DELCATTY 0x13C
KECLEON 0x13D
BALTOY 0x13E
CLAYDOL 0x13F
NOSEPASS 0x140
TORKOAL 0x141
SABLEYE 0x142
BARBOACH 0x143
WHISCASH 0x144
LUVDISC 0x145
CORPHISH 0x146
CRAWDAUNT 0x147
FEEBAS 0x148
MILOTIC 0x149
CARVANHA 0x14A
SHARPEDO 0x14B
TRAPINCH 0x14C
VIBRAVA 0x14D
FLYGON 0x14E
MAKUHITA 0x14F
HARIYAMA 0x150
ELECTRIKE 0x151
MANECTRIC 0x152
NUMEL 0x153
CAMERUPT 0x154
SPHEAL 0x155
SEALEO 0x156
WALREIN 0x157
CACNEA 0x158
CACTURNE 0x159
SNORUNT 0x15A
GLALIE 0x15B
LUNATONE 0x15C
SOLROCK 0x15D
AZURILL 0x15E
SPOINK 0x15F
GRUMPIG 0x160
PLUSLE 0x161
MINUN 0x162
MAWILE 0x163
MEDITITE 0x164
MEDICHAM 0x165
SWABLU 0x166
ALTARIA 0x167
WYNAUT 0x168
DUSKULL 0x169
DUSCLOPS 0x16A
ROSELIA 0x16B
SLAKOTH 0x16C
VIGOROTH 0x16D
SLAKING 0x16E
GULPIN 0x16F
SWALOT 0x170
TROPIUS 0x171
WHISMUR 0x172
LOUDRED 0x173
EXPLOUD 0x174
CLAMPERL 0x175
HUNTAIL 0x176
GOREBYSS 0x177
ABSOL 0x178
SHUPPET 0x179
BANETTE 0x17A
SEVIPER 0x17B
ZANGOOSE 0x17C
RELICANTH 0x17D
ARON 0x17E
LAIRON 0x17F
AGGRON 0x180
CASTFORM 0x181
VOLBEAT 0x182
ILLUMISE 0x183
LILEEP 0x184
CRADILY 0x185
ANORITH 0x186
ARMALDO 0x187
RALTS 0x188
KIRLIA 0x189
GARDEVOIR 0x18A
BAGON 0x18B
SHELGON 0x18C
SALAMENCE 0x18D
BELDUM 0x18E
METANG 0x18F
METAGROSS 0x190
REGIROCK 0x191
REGICE 0x192
REGISTEEL 0x193
KYOGRE 0x194
GROUDON 0x195
RAYQUAZA 0x196
LATIAS 0x197
LATIOS 0x198
JIRACHI 0x199
DEOXYS 0x19A
CHIMECHO 0x19B

Here are all of his Pokémon's species offsets.
Code:
1: 5DD6D0
2: 5DD6E4
3: 5DD6F8
After their species comes their IVs (I don't know much about EVs and IVs, so you all can do that). This is the first Pokémon's IV offset for reference:

Code:
5DD6D2
After the IV comes the Pokémon's level, which is one byte:

First Pokemon's Level Offset:
Code:
5DD6D3
The format continues like this:
5DD6D4, one byte: buffer? no apparent effect. set to 00 default.
5DD6D5, six bytes: EVs: HP/ATK/DEF/SPD/SATK/SDEF. Each value can go up to FF (255) without issue, and will take effect.
5DD6DB, one byte: buffer? no apparent effect. set to 00 default.
5DD6DC, eight bytes: first pokemons movepool

Here is the move list:
Spoiler:
001 Pound
002 Karate Chop
003 DoubleSlap
004 Comet Punch
005 Mega Punch
006 Pay Day
007 Fire Punch
008 Ice Punch
009 ThunderPunch
00A Scratch
00B ViceGrip
00C Guillotine
00D Razor Wind
00E Swords Dance
00F Cut
010 Gust
011 Wing Attack
012 Whirlwind
013 Fly
014 Bind
015 Slam
016 Vine Whip
017 Stomp
018 Double Kick
019 Mega Kick
01A Jump Kick
01B Rolling Kick
01C Sand-Attack
01D Headbutt
01E Horn Attack
01F Fury Attack
020 Horn Drill
021 Tackle
022 Body Slam
023 Wrap
024 Take Down
025 Thrash
026 Double-Edge
027 Tail Whip
028 Poison Sting
029 Twineedle
02A Pin Missile
02B Leer
02C Bite
02D Growl
02E Roar
02F Sing
030 Supersonic
031 SonicBoom
032 Disable
033 Acid
034 Ember
035 Flamethrower
036 Mist
037 Water Gun
038 Hydro Pump
039 Surf
03A Ice Beam
03B Blizzard
03C Psybeam
03D BubbleBeam
03E Aurora Beam
03F Hyper Beam
040 Peck
041 Drill Peck
042 Submission
043 Low Kick
044 Counter
045 Seismic Toss
046 Strength
047 Absorb
048 Mega Drain
049 Leech Seed
04A Growth
04B Razor Leaf
04C SolarBeam
04D PoisonPowder
04E Stun Spore
04F Sleep Powder
050 Petal Dance
051 String Shot
052 Dragon Rage
053 Fire Spin
054 ThunderShock
055 Thunderbolt
056 Thunder Wave
057 Thunder
058 Rock Throw
059 Earthquake
05A Fissure
05B Dig
05C Toxic
05D Confusion
05E Psychic
05F Hypnosis
060 Meditate
061 Agility
062 Quick Attack
063 Rage
064 Teleport
065 Night Shade
066 Mimic
067 Screech
068 Double Team
069 Recover
06A Harden
06B Minimize
06C SmokeScreen
06D Confuse Ray
06E Withdraw
06F Defense Curl
070 Barrier
071 Light Screen
072 Haze
073 Reflect
074 Focus Energy
075 Bide
076 Metronome
077 Mirror Move
078 Selfdestruct
079 Egg Bomb
07A Lick
07B Smog
07C Sludge
07D Bone Club
07E Fire Blast
07F Waterfall
080 Clamp
081 Swift
082 Skull Bash
083 Spike Cannon
084 Constrict
085 Amnesia
086 Kinesis
087 Softboiled
088 Hi Jump Kick
089 Glare
08A Dream Eater
08B Poison Gas
08C Barrage
08D Leech Life
08E Lovely Kiss
08F Sky Attack
090 Transform
091 Bubble
092 Dizzy Punch
093 Spore
094 Flash
095 Psywave
096 Splash
097 Acid Armor
098 Crabhammer
099 Explosion
09A Fury Swipes
09B Bonemerang
09C Rest
09D Rock Slide
09E Hyper Fang
09F Sharpen
0A0 Conversion
0A1 Tri Attack
0A2 Super Fang
0A3 Slash
0A4 Substitute
0A5 Struggle
0A6 Sketch
0A7 Triple Kick
0A8 Thief
0A9 Spider Web
0AA Mind Reader
0AB Nightmare
0AC Flame Wheel
0AD Snore
0AE Curse
0AF Flail
0B0 Conversion 2
0B1 Aeroblast
0B2 Cotton Spore
0B3 Reversal
0B4 Spite
0B5 Powder Snow
0B6 Protect
0B7 Mach Punch
0B8 Scary Face
0B9 Faint Attack
0BA Sweet Kiss
0BB Belly Drum
0BC Sludge Bomb
0BD Mud-Slap
0BE Octazooka
0BF Spikes
0C0 Zap Cannon
0C1 Foresight
0C2 Destiny Bond
0C3 Perish Song
0C4 Icy Wind
0C5 Detect
0C6 Bone Rush
0C7 Lock-On
0C8 Outrage
0C9 Sandstorm
0CA Giga Drain
0CB Endure
0CC Charm
0CD Rollout
0CE False Swipe
0CF Swagger
0D0 Milk Drink
0D1 Spark
0D2 Fury Cutter
0D3 Steel Wing
0D4 Mean Look
0D5 Attract
0D6 Sleep Talk
0D7 Heal Bell
0D8 Return
0D9 Present
0DA Frustration
0DB Safeguard
0DC Pain Split
0DD Sacred Fire
0DE Magnitude
0DF DynamicPunch
0E0 Megahorn
0E1 DragonBreath
0E2 Baton Pass
0E3 Encore
0E4 Pursuit
0E5 Rapid Spin
0E6 Sweet Scent
0E7 Iron Tail
0E8 Metal Claw
0E9 Vital Throw
0EA Morning Sun
0EB Synthesis
0EC Moonlight
0ED Hidden Power
0EE Cross Chop
0EF Twister
0F0 Rain Dance
0F1 Sunny Day
0F2 Crunch
0F3 Mirror Coat
0F4 Psych Up
0F5 ExtremeSpeed
0F6 AncientPower
0F7 Shadow Ball
0F8 Future Sight
0F9 Rock Smash
0FA Whirlpool
0FB Beat Up
0FC Fake Out
0FD Uproar
0FE Stockpile
0FF Spit Up
100 Swallow
101 Heat Wave
102 Hail
103 Torment
104 Flatter
105 Will-O-Wisp
106 Memento
107 Facade
108 Focus Punch
109 SmellingSalt
10A Follow Me
10B Nature Power
10C Charge
10D Taunt
10E Helping Hand
10F Trick
110 Role Play
111 Wish
112 Assist
113 Ingrain
114 Superpower
115 Magic Coat
116 Recycle
117 Revenge
118 Brick Break
119 Yawn
11A Knock Off
11B Endeavor
11C Eruption
11D Skill Swap
11E Imprison
11F Refresh
120 Grudge
121 Snatch
122 Secret Power
123 Dive
124 Arm Thrust
125 Camouflage
126 Tail Glow
127 Luster Purge
128 Mist Ball
129 FeatherDance
12A Teeter Dance
12B Blaze Kick
12C Mud Sport
12D Ice Ball
12E Needle Arm
12F Slack Off
130 Hyper Voice
131 Poison Fang
132 Crush Claw
133 Blast Burn
134 Hydro Cannon
135 Meteor Mash
136 Astonish
137 Weather Ball
138 Aromatherapy
139 Fake Tears
13A Air Cutter
13B Overheat
13C Odor Sleuth
13D Rock Tomb
13E Silver Wind
13F Metal Sound
140 GrassWhistle
141 Tickle
142 Cosmic Power
143 Water Spout
144 Signal Beam
145 Shadow Punch
146 Extrasensory
147 Sky Uppercut
148 Sand Tomb
149 Sheer Cold
14A Muddy Water
14B Bullet Seed
14C Aerial Ace
14D Icicle Spear
14E Iron Defense
14F Block
150 Howl
151 Dragon Claw
152 Frenzy Plant
153 Bulk Up
154 Bounce
155 Mud Shot
156 Poison Tail
157 Covet
158 Volt Tackle
159 Magical Leaf
15A Water Sport
15B Calm Mind
15C Leaf Blade
15D Dragon Dance
15E Rock Blast
15F Shock Wave
160 Water Pulse
161 Doom Desire


More to come...
Pia Carrot is offline  
Sponsored Links
Old 17th January 2014, 12:55 PM   #2
Elsa
Let it go!
PHO VIP
 
Elsa's Avatar
 
Join Date: Apr 2010
Location: United States
Age: 21
Posts: 365
Elsa
Default

This is some very nice research that will help people make nicer hacks
Nice job on the research, Pia!
__________________

- - - - - - - Elsa - - - - - - -
Twitter | YouTube | Steam | Twitch
- - - - - - - - - - - - - - - - -
Elsa is offline  
Old 19th May 2014, 06:28 PM   #3
Pia Carrot
Orange Developer
Administrator
 
Pia Carrot's Avatar
 
Join Date: Aug 2010
Location: Valencia Island
Age: 22
Posts: 811
Pia Carrot Pia Carrot Pia Carrot Pia Carrot Pia Carrot
Default

I'd like to look into this more, I personally want to see if Steven's Pokemon can be shiny, or if the dex is expanded, could we use those in his roster? These are all good questions that I don't think I can look into alone.
Pia Carrot is offline  
Old 9th June 2014, 04:10 AM   #4
Dark Sneasel
Anti-Swag
 
Join Date: Oct 2013
Location: Miami, FL
Age: 18
Posts: 42
Dark Sneasel
Default

Quote:
Originally Posted by Pia Carrot View Post
I'd like to look into this more, I personally want to see if Steven's Pokemon can be shiny, or if the dex is expanded, could we use those in his roster? These are all good questions that I don't think I can look into alone.
I assume it would work if you try an expanded Pokemon, it works if you hex edit trainers or the wild to add expanded Pokemon. I would try it, but I haven't expanded on Emerald. Also, thanks for this I was planning something like this at some point in my hack
Dark Sneasel is offline  
Old 11th June 2014, 07:56 PM   #5
GoGoJJTech
http://GoGoJJTech.com
 
GoGoJJTech's Avatar
 
Join Date: Oct 2013
Location: Earth
Posts: 162
GoGoJJTech GoGoJJTech
Default

It should ideally work on expanded pokemon since there most likely is no limiter for him and him alone.
__________________
I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons - Time-Based Events

Platinum Red and Blue Versions

Romhack.me Profile - Pokecommunity Profile - Youtube Channel
Join me in the chat! Get hacking help or just talk | Click here: http://chat.linkandzelda.com:9090/?channels=rh
GoGoJJTech is offline  
Old 22nd June 2014, 01:17 AM   #6
Dark Sneasel
Anti-Swag
 
Join Date: Oct 2013
Location: Miami, FL
Age: 18
Posts: 42
Dark Sneasel
Default

Okay, so here is Steven's script..
Spoiler:
'---------------
#org 0x223F7A
lockall
checkflag 0xCD
if 0x1 goto 0x8223FDA
setflag 0xCD
msgbox 0x82246B2 MSG_KEEPOPEN '"STEVEN: TEAM MAGMA[.]\pWhat's the ..."
msgbox 0x82246F0 MSG_KEEPOPEN '"MAXIE: Fufufu[.] Since you're so\n..."
closeonkeypress
pause 0x1E
sound 0xC
copyvar 0x8000 PLAYERFACING
compare 0x8000 0x1
if 0x1 goto 0x8223FBA
applymovement 0x4 0x8223FC6
waitmovement 0x0
releaseall
end

'---------------
#org 0x223FDA
applymovement LASTTALKED 0x827259E
waitmovement 0x0
msgbox 0x82247FF MSG_YESNO '"STEVEN: [player]\v\h05!\nYou're go..."
compare LASTRESULT 0x1
if 0x1 goto 0x822400C
msgbox 0x8224854 MSG_KEEPOPEN '"STEVEN: Then, hurry!\nGet ready qu..."
closeonkeypress
applymovement LASTTALKED 0x82725AA
waitmovement 0x0
releaseall
end

'---------------
#org 0x223FBA
applymovement 0x4 0x8223FCF
waitmovement 0x0
releaseall
end

'---------------
#org 0x22400C
applymovement LASTTALKED 0x82725AA
waitmovement 0x0
special 0x28
fadescreen 0x1
special 0x2A
waitstate
compare LASTRESULT 0x0
if 0x5 goto 0x8224032
special 0x29
goto 0x8223FDA

'---------------
#org 0x224032
special 0xFB
setvar 0x8004 0x2
setvar 0x8005 0x4
special 0xEA
setvar 0x8004 0x8
setvar 0x8005 0x0
special 0xEF
waitstate
setvar 0x8004 0x6
special 0xEA
special 0x29
copyvar 0x8000 LASTRESULT
compare 0x8000 0x1
if 0x1 goto 0x8224071
fadescreen 0x1
special 0xCB
waitstate
msgbox 0x82248C2 MSG_KEEPOPEN '"MAXIE: We failed to make the volca..."
closeonkeypress
pause 0x14
applymovement 0x9 0x82725A4
applymovement 0x8 0x82725AA
waitmovement 0x0
pause 0x3C
applymovement 0x9 0x82725A6
applymovement 0x8 0x82725A8
waitmovement 0x0
pause 0x14
msgbox 0x82249DC MSG_KEEPOPEN '"MAXIE: All right[.]\nWe will give ..."
closeonkeypress
setvar 0x405D 0x3
fadedefault
fadescreen 0x1
setvar 0x409F 0x3
setflag 0x2F4
setflag 0x35E
setflag 0x337
hidesprite 0x5
hidesprite 0x7
hidesprite 0x6
hidesprite 0x8
hidesprite 0x9
movesprite 0x3 0x5 0x6
spriteface 0x3 0x1
movesprite 0x2 0xB 0x8
spriteface 0x2 0x2
movesprite 0x1 0x6 0x2
spriteface 0x1 0x2
call 0x8224131
fadescreen 0x0
msgbox 0x8224A4A MSG_KEEPOPEN '"STEVEN: Whew, that was too tense.\..."
closeonkeypress
fadescreen 0x1
setflag 0x75
setflag 0x3C7
hidesprite 0x4
setflag 0x2E1
clearflag 0x3C7
setvar 0x40C6 0x1
setflag 0x314
hidesprite 0x3
movesprite2 0x3 0x5 0x6
spritebehave 0x3 0x2
showsprite 0x3
fadescreen 0x0
end

'---------------
#org 0x224071
msgbox 0x82248C2 MSG_KEEPOPEN '"MAXIE: We failed to make the volca..."
closeonkeypress
pause 0x14
applymovement 0x9 0x82725A4
applymovement 0x8 0x82725AA
waitmovement 0x0
pause 0x3C
applymovement 0x9 0x82725A6
applymovement 0x8 0x82725A8
waitmovement 0x0
pause 0x14
msgbox 0x82249DC MSG_KEEPOPEN '"MAXIE: All right[.]\nWe will give ..."
closeonkeypress
setvar 0x405D 0x3
fadedefault
fadescreen 0x1
setvar 0x409F 0x3
setflag 0x2F4
setflag 0x35E
setflag 0x337
hidesprite 0x5
hidesprite 0x7
hidesprite 0x6
hidesprite 0x8
hidesprite 0x9
movesprite 0x3 0x5 0x6
spriteface 0x3 0x1
movesprite 0x2 0xB 0x8
spriteface 0x2 0x2
movesprite 0x1 0x6 0x2
spriteface 0x1 0x2
call 0x8224131
fadescreen 0x0
msgbox 0x8224A4A MSG_KEEPOPEN '"STEVEN: Whew, that was too tense.\..."
closeonkeypress
fadescreen 0x1
setflag 0x75
setflag 0x3C7
hidesprite 0x4
setflag 0x2E1
clearflag 0x3C7
setvar 0x40C6 0x1
setflag 0x314
hidesprite 0x3
movesprite2 0x3 0x5 0x6
spritebehave 0x3 0x2
showsprite 0x3
fadescreen 0x0
end

'---------------
#org 0x224131
copyvar 0x8000 PLAYERFACING
compare 0x8000 0x1
if 0x1 goto 0x822414D
compare 0x8000 0x3
if 0x1 goto 0x8224152
return

'---------------
#org 0x22414D
spriteface 0x4 0x2
return

'---------------
#org 0x224152
spriteface 0x4 0x4
return


'---------
' Strings
'---------
#org 0x2246B2
= STEVEN: TEAM MAGMA[.]\pWhat's the point of stealing rocket\nfuel?

#org 0x2246F0
= MAXIE: Fufufu[.] Since you're so\ncurious, you deserve an explanation.\pWe're going to jettison the entire\nload into MT. CHIMNEY!\pWith GROUDON gone, we have no need\nfor that slag heap of a mountain!\pSo we'll use the fuel's power to make\nthe volcano erupt!\pIt will be savage!

#org 0x2247FF
= STEVEN: [player]\v\h05!\nYou're going to help me?\pLet's go into battle together!\nAre you ready?

#org 0x224854
= STEVEN: Then, hurry!\nGet ready quickly!

#org 0x2248C2
= MAXIE: We failed to make the volcano\nerupt[.]\pWe failed to control GROUDON after\nwe had awoken it[.]\pIs our goal to expand the land\nmisguided?\p[.] [.] [.] [.] [.] [.]\n[.] [.] [.] [.] [.] [.]\pIf[.]\nIf we, TEAM MAGMA, are wrong[.]\l[.] [.] [.] [.] [.] [.]\pThen might TEAM AQUA's goal to expand\nthe sea also be equally misguided?

#org 0x2249DC
= MAXIE: All right[.]\nWe will give up on the fuel[.]\pThere appear to be more important\nmatters that I must examine[.]

#org 0x224A4A
= STEVEN: Whew, that was too tense.\n[player]\v\h05, thank you.\pI have something to give you as\nthanks for your support.\pPlease come see me at home\nafter this.\pOh, yes, I don't live in RUSTBORO CITY.\nI live right here on this island.


'-----------
' Movements
'-----------
#org 0x223FC6
#raw 0x40 'mov40
#raw 0x16 'Slide Up
#raw 0x16 'Slide Up
#raw 0x41 'mov41
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0x4 'Step Down (Slow)
#raw 0x4 'Step Down (Slow)
#raw 0xFE 'End of Movements

#org 0x27259E
#raw 0x3E 'Face Player
#raw 0xFE 'End of Movements

#org 0x2725AA
#raw 0x25 'Step on the Spot Down (Fastest)
#raw 0xFE 'End of Movements

#org 0x223FCF
#raw 0x2 'Face Left
#raw 0x40 'mov40
#raw 0x18 'Slide Right
#raw 0x18 'Slide Right
#raw 0x41 'mov41
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0x6 'Step Left (Slow)
#raw 0x6 'Step Left (Slow)
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements

#org 0x2725A4
#raw 0x27 'Step on the Spot Left (Fastest)
#raw 0xFE 'End of Movements

#org 0x2725A6
#raw 0x26 'Step on the Spot Up (Fastest)
#raw 0xFE 'End of Movements

#org 0x2725A8
#raw 0x28 'Step on the Spot Right (Fastest)
#raw 0xFE 'End of Movements


I assume right before this: "msgbox 0x82248C2 MSG_KEEPOPEN '"MAXIE: We failed to make the volca..." is when the battle ends

before that we have

Spoiler:
#org 0x224032
special 0xFB
setvar 0x8004 0x2
setvar 0x8005 0x4
special 0xEA
setvar 0x8004 0x8
setvar 0x8005 0x0
special 0xEF
waitstate
setvar 0x8004 0x6
special 0xEA
special 0x29
copyvar 0x8000 LASTRESULT
compare 0x8000 0x1
if 0x1 goto 0x8224071
fadescreen 0x1
special 0xCB
waitstate


#org 0x224032 tho

to get to that we need to get through this

Spoiler:
#org 0x22400C
applymovement LASTTALKED 0x82725AA
waitmovement 0x0
special 0x28
fadescreen 0x1
special 0x2A
waitstate
compare LASTRESULT 0x0
if 0x5 goto 0x8224032

special 0x29
goto 0x8223FDA


and to get to 0x22400C we need to get through

Spoiler:
msgbox 0x82247FF MSG_YESNO '"STEVEN: [player]\v\h05!\nYou're go..."
compare LASTRESULT 0x1
if 0x1 goto 0x822400C


now looking at this video

we see that Steven asks you if you're ready, then if you say yes, the screen goes black and then you get to choose. Screen fading to black is fadescreen 0x1, so let's look for fadescreen 0x1

There seems to be one in the spoiler from earlier
Spoiler:
#org 0x22400C
applymovement LASTTALKED 0x82725AA
waitmovement 0x0
special 0x28
fadescreen 0x1
special 0x2A
waitstate
compare LASTRESULT 0x0
if 0x5 goto 0x8224032
special 0x29
goto 0x8223FDA


now that applymovement is
Spoiler:
#raw 0x25 'Step on the Spot Down (Fastest)
#raw 0xFE 'End of Movements
and I looked around the script and there doesn't seem to be any "face down" alone by themselves and if you goto 0:18 in the video you see Steven, well facing down, so I think that ones it.

now this again
Spoiler:
#org 0x22400C
applymovement LASTTALKED 0x82725AA
waitmovement 0x0
special 0x28
fadescreen 0x1
special 0x2A
waitstate
compare LASTRESULT 0x0
if 0x5 goto 0x8224032
special 0x29
goto 0x8223FDA

right before the fadescreen there is special 0x28, I have no clue what that does. the screen fades then you choose your pokemon and the battle begins. Only trying special 0x2A and waitstate lets you choose a pokemon and that's it, I tested it on a clean rom. I'm assuming this
Code:
compare LASTRESULT 0x0
if 0x5 goto 0x8224032
happens next because that goto 0x223FDA takes you to this,
Spoiler:
#org 0x223FDA
applymovement LASTTALKED 0x827259E
waitmovement 0x0
msgbox 0x82247FF MSG_YESNO '"STEVEN: [player]\v\h05!\nYou're go..."
compare LASTRESULT 0x1
if 0x1 goto 0x822400C
msgbox 0x8224854 MSG_KEEPOPEN '"STEVEN: Then, hurry!\nGet ready qu..."
closeonkeypress
applymovement LASTTALKED 0x82725AA
waitmovement 0x0
releaseall
end
which already happened.
So that takes you to this:
Spoiler:
#org 0x224032
special 0xFB
setvar 0x8004 0x2
setvar 0x8005 0x4
special 0xEA
setvar 0x8004 0x8
setvar 0x8005 0x0
special 0xEF
waitstate
setvar 0x8004 0x6
special 0xEA
special 0x29
copyvar 0x8000 LASTRESULT
compare 0x8000 0x1
if 0x1 goto 0x8224071
fadescreen 0x1
special 0xCB
waitstate
msgbox 0x82248C2 MSG_KEEPOPEN '"MAXIE: We failed to make the volca..."
closeonkeypress
pause 0x14
applymovement 0x9 0x82725A4
applymovement 0x8 0x82725AA
waitmovement 0x0
pause 0x3C
applymovement 0x9 0x82725A6
applymovement 0x8 0x82725A8
waitmovement 0x0
pause 0x14
msgbox 0x82249DC MSG_KEEPOPEN '"MAXIE: All right[.]\nWe will give ..."
closeonkeypress
setvar 0x405D 0x3
fadedefault
fadescreen 0x1
setvar 0x409F 0x3
setflag 0x2F4
setflag 0x35E
setflag 0x337
hidesprite 0x5
hidesprite 0x7
hidesprite 0x6
hidesprite 0x8
hidesprite 0x9
movesprite 0x3 0x5 0x6
spriteface 0x3 0x1
movesprite 0x2 0xB 0x8
spriteface 0x2 0x2
movesprite 0x1 0x6 0x2
spriteface 0x1 0x2
call 0x8224131
fadescreen 0x0
msgbox 0x8224A4A MSG_KEEPOPEN '"STEVEN: Whew, that was too tense.\..."
closeonkeypress
fadescreen 0x1
setflag 0x75
setflag 0x3C7
hidesprite 0x4
setflag 0x2E1
clearflag 0x3C7
setvar 0x40C6 0x1
setflag 0x314
hidesprite 0x3
movesprite2 0x3 0x5 0x6
spritebehave 0x3 0x2
showsprite 0x3
fadescreen 0x0
end
and like I previously said, "I assume right before this: "msgbox 0x82248C2 MSG_KEEPOPEN '"MAXIE: We failed to make the volca..." is when the battle ends" which means we're getting closer.

This is important to the script

Code:
special 0xFB
setvar 0x8004 0x2
setvar 0x8005 0x4
special 0xEA
setvar 0x8004 0x8
setvar 0x8005 0x0
special 0xEF
waitstate
setvar 0x8004 0x6
special 0xEA
special 0x29
copyvar 0x8000 LASTRESULT
compare 0x8000 0x1
if 0x1 goto 0x8224071
fadescreen 0x1
special 0xCB
waitstate

Now after some testing, I got the important parts from Steven's script and changed some stuff and made a script that works PERFECTLY (that I know of )

Code:
#dynamic 0xE41046
#org @start
lock
faceplayer
special 0x28 -needs to be there, otherwise script won't work
fadescreen 0x1
special 0x2A -choose pokemon
waitstate - wait
compare LASTRESULT 0x0
if 0x5 goto @it -if you chose and stuff go there
special 0x29 - don't know, but it was in steven's script
goto @no

#org @no
msgbox @1 0x6
release
end

#org @1
= hurry

#org @it
special 0xFB
setvar 0x8004 0x2
setvar 0x8005 0x4
special 0xEA
setvar 0x8004 0x8
setvar 0x8005 0x0
special 0xEF
waitstate
setvar 0x8004 0x6
special 0xEA
special 0x29
copyvar 0x8000 LASTRESULT
compare 0x8000 0x1
if 0x1 goto @after
fadescreen 0x1
special 0xCB
waitstate
release
end

^ all that stuff was in Steven's script, I have no clue what most of it does, but I only changed a few things, I bolded them

#org @after
msgbox @2 0x6
release
end

#org @2
= thanks :^D
if you wanna make it not happen again obviously you gotta do the flag stuff.. if this was posted before then I feel like a dumbass xD

and finally the script without me saying stuff about it

Code:
#dynamic 0xE41046
#org @start
lock
faceplayer
special 0x28
fadescreen 0x1
special 0x2A
waitstate
compare LASTRESULT 0x0
if 0x5 goto @it
special 0x29
goto @no

#org @no
msgbox @1 0x6
release
end

#org @1
= hurry

#org @it
special 0xFB
setvar 0x8004 0x2
setvar 0x8005 0x4
special 0xEA
setvar 0x8004 0x8
setvar 0x8005 0x0
special 0xEF
waitstate
setvar 0x8004 0x6
special 0xEA
special 0x29
copyvar 0x8000 LASTRESULT
compare 0x8000 0x1
if 0x1 goto @after
fadescreen 0x1
special 0xCB
waitstate
release
end

#org @after
msgbox @2 0x6
release
end

#org @2
= thanks :^D
I would also like to mention that Tabitha's trainer data is in 0x202 in advance trainer and Maxie's is 0x2DE.

Last edited by Dark Sneasel; 23rd June 2014 at 12:27 AM.
Dark Sneasel is offline  
Likes Pia Carrot liked this post
Old 19th August 2014, 02:29 AM   #7
Dark Sneasel
Anti-Swag
 
Join Date: Oct 2013
Location: Miami, FL
Age: 18
Posts: 42
Dark Sneasel
Default

I would just like to say that I gave him a level 16 Charmander, and after the battle, he evolved. That is all.
Dark Sneasel is offline  
Likes Pia Carrot liked this post
Old 19th August 2014, 04:20 PM   #8
Pia Carrot
Orange Developer
Administrator
 
Pia Carrot's Avatar
 
Join Date: Aug 2010
Location: Valencia Island
Age: 22
Posts: 811
Pia Carrot Pia Carrot Pia Carrot Pia Carrot Pia Carrot
Default

Quote:
Originally Posted by Dark Sneasel View Post
I would just like to say that I gave him a level 16 Charmander, and after the battle, he evolved. That is all.
Did it register in the Pokedex when it evolved as caught? Or at all?
Pia Carrot is offline  
Old 24th August 2014, 12:32 PM   #9
hydrostorm
Newbie
 
Join Date: Aug 2014
Posts: 1
hydrostorm
Default

Just a safety check; can I use the same method to create custom double battles for FR?
hydrostorm is offline  
Old 24th August 2014, 02:00 PM   #10
daniilS
VIP
PHO VIP
 
Join Date: Aug 2013
Posts: 59
daniilS
Default

Quote:
Originally Posted by hydrostorm View Post
Just a safety check; can I use the same method to create custom double battles for FR?
no
daniilS is offline  
 

Tags
battle, double, emerald, steven, [Research]

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:04 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts