***************************************************************************
* Pokmon XD: Gale of Darkness NTSC-U WiiRD/Gecko Modifier & Offset Table *
***************************************************************************

=======================
OUT OF BATTLE MODIFIERS
=======================

Base Pointer

48000000 804EB6F8
DE000000 80008180

Trainer

16000140 00000010 - Trainer Name, Letter 1-8
xxxxxxxx xxxxxxxx
xxxxxxxx xxxxxxxx

0041 = 'A' ... 005A = 'Z' ... 0061 = 'a' ... 007A = 'z'

1200016C 0000xxxx - Trainer Secret ID
1200016E 0000xxxx - Trainer ID

Pokemon 1

12000170 0000xxxx - Pokemon Modifier
12000172 0000xxxx - Item Held
12000174 0000xxxx - Hit Points (Actual)
12000176 0000xxxx - Happiness  (0000 = Bad ... 00FF = Good)

12000178 0000xxxx - Location Caught
1000017E 000000xx - Pokemon Level Met
1000017F 000000xx - Ball Caught With        (01 = Master Ball, ... 0C = Premier Ball)
10000180 000000xx - Original Trainer Gender (00 = Male, 01 = Female)

10000181 000000xx - Pokemon Level (Actual)

10000182 000000xx - CV Luster (00 ... FF)
10000183 000000xx - Pokerus   (00 = Never Had, 01 ... 0F = Still Has, 10 ... FF = Is Over)
10000184 000000xx - Marks     (01 = Circle, 02 = Square, 04 = Triangle, 08 = Heart)

10000186 000000xx - Status

1000018D 000000xx - Ability Used (00 = First, 40 = Second)

14000190 xxxxxxxx - EXP Points Modifier
12000194 0000xxxx - Original Trainer Secret ID
12000196 0000xxxx - Original Trainer ID
14000198 xxxxxxxx - Pokemon ID (Used for: Shiny, Gender, Unown Shape and Nature)

1000019B 000000xx - Gender

Different Pokemon have different ranges for gender:

No Gender     = 00 ... FF
Always Female = 00 ... FF
Always Male   = 00 ... FF

12.5% Female & 87.5% Male: Female = 00 ... 1E  Male = 1F ... FF
25%   Female & 75%   Male: Female = 00 ... 3E  Male = 3F ... FF
50%   Female & 50%   Male: Female = 00 ... 7E  Male = 7F ... FF
75%   Female & 25%   Male: Female = 00 ... BE  Male = BF ... FF

100001A3 000000xx - Obedient  (01 = Obedient)
100001A4 000000xx - Came From (01 = Fire, 02 = Leaf, ... 08 = Sapphire, 09 = Ruby, 0A = Emerald, 0B = Colosseum/XD)

100001A6 000000xx - Original Font (01 = Japanese, 02 = English, 03 = German, 04 = French, 05 = Italian, 06 = Spanish)
100001A7 000000xx - Actual Font

160001A8 00000010 - Original Trainer Name, Letter 1-8
xxxxxxxx xxxxxxxx
xxxxxxxx xxxxxxxx

160001BE 00000014 - Pokemon Name, Letter 1 - 10
xxxxxxxx xxxxxxxx
xxxxxxxx xxxxxxxx
xxxxxxxx 00000000

160001D4 00000014 - Original Pokemon Name, Letter 1 - 10
xxxxxxxx xxxxxxxx
xxxxxxxx xxxxxxxx
xxxxxxxx 00000000

120001EC 0000xxxx - Extra/Special Ribbons

Bit15 = Hall of Fame Member Ribbon
Bit14 = Ribbon for clearing Lv 50 at the Battle Tower
Bit13 = Ribbon for clearing Lv 100 at the Battle Tower
Bit12 = Ribbon for becoming the model of a painting
Bit11 = Ribbon awarded for being a hard worker
Bit10 = Special Ribbon 1
Bit09 = Special Ribbon 2
Bit08 = Special Ribbon 3
Bit07 = Special Ribbon 4
Bit06 = Special Ribbon 5 (Colosseum/Ribbon awarded for clearing all difficulties)
Bit05 = Special Ribbon 6 (XD/100-Straight Win Commemorative Ribbon)
Bit04 = Special Ribbon 7
Bit03 = 0
Bit02 = 0
Bit01 = 0
Bit00 = 0

120001F0 0000xxxx - 1st Move Modifier
120001F2 0000xxyy - 1st Move PP Modifier (xx = PPs, yy = PPups Used)
120001F4 0000xxxx - 2nd Move Modifier
120001F6 0000xxyy - 2nd Move PP Modifier
120001F8 0000xxxx - 3rd Move Modifier
120001FA 0000xxyy - 3rd Move PP Modifier
120001FC 0000xxxx - 4th Move Modifier
120001FE 0000xxyy - 4th Move PP Modifier

12000200 0000xxxx - Hit Points (Max)
12000202 0000xxxx - Attack
12000204 0000xxxx - Defence
12000206 0000xxxx - Special Attack
12000208 0000xxxx - Special Defence
1200020A 0000xxxx - Speed

1200020C 0000xxxx - EV Hit Points      (0000 ... 00FF)
1200020E 0000xxxx - EV Attack          (0000 ... 00FF)
12000210 0000xxxx - EV Defence         (0000 ... 00FF)
12000212 0000xxxx - EV Special Attack  (0000 ... 00FF)
12000214 0000xxxx - EV Special Defence (0000 ... 00FF)
12000216 0000xxxx - EV Speed           (0000 ... 00FF)

10000218 000000xx - DV Hit Points      (00 ... 1F)
10000219 000000xx - DV Attack          (00 ... 1F)
1000021A 000000xx - DV Defence         (00 ... 1F)
1000021B 000000xx - DV Special Attack  (00 ... 1F)
1000021C 000000xx - DV Special Defence (00 ... 1F)
1000021D 000000xx - DV Speed           (00 ... 1F)

1000021E 000000xx - CV Cool   (00 ... FF)
1000021F 000000xx - CV Beauty (00 ... FF)
10000220 000000xx - CV Cute   (00 ... FF)
10000221 000000xx - CV Smart  (00 ... FF)
10000222 000000xx - CV Tough  (00 ... FF)

10000223 000000xx - Cool Ribbons (01 = Normal, 02 = Super, 03 = Hyper, 04 = Master)
10000224 000000xx - Beauty Ribbons
10000225 000000xx - Cute Ribbons
10000226 000000xx - Smart Ribbons
10000227 000000xx - Tough Ribbons

1000022B 000000xx - Shadow Pokemon ID (01 = Teddiursa, ... 52 = Poochyena, 53 = Ledyba)

Pokemon 2

12000234 0000xxxx - Pokemon Modifier
12000236 0000xxxx - Item Held

10000242 000000xx - Pokemon Level Met
...

Pokemon 3

120002F8 0000xxxx - Pokemon Modifier
...

Pokemon 6

12000544 0000xxxx - Pokemon Modifier
...

Box 1 Pokemon 1

12000AE4 0000xxxx - Pokemon Modifier
12000AE6 0000xxxx - Item Held

10000AF2 000000xx - Pokemon Level Met
...

Box 1 Pokemon 2

12000BA8 0000xxxx - Pokemon Modifier
12000BAA 0000xxxx - Item Held

10000BB6 000000xx - Pokemon Level Met
...

Box 1 Pokemon 30

12002118 0000xxxx - Pokemon Modifier
1200211A 0000xxxx - Item Held

10002126 000000xx - Pokemon Level Met
...

Box 2 Pokemon 1

120021F0 0000xxxx - Pokemon Modifier
120021F2 0000xxxx - Item Held

100021FE 000000xx - Pokemon Level Met
...

Box 8 Pokemon 1

1200AC38 0000xxxx - Pokemon Modifier
1200AC3A 0000xxxx - Item Held

1000AC46 000000xx - Pokemon Level Met
...

Box 8 Pokemon 30

1200C26C 0000xxxx - Pokemon Modifier
...

Items

Slot 1
12000608 0000xxxx - Item Modifier
1200060A 0000xxxx - Quantity (0000 ... 03E7)

Slot 2
1200060C 0000xxxx
1200060E 0000xxxx

...

Slot 30
1200067C 0000xxxx
1200067E 0000xxxx

Key Items

Slot 1
12000680 0000xxxx - Key Item Modifier
12000682 0000xxxx - Quantity (0000 ... 0001)

Slot 2
12000684 0000xxxx
12000686 0000xxxx

...

Slot 40
1200071C 0000xxxx
1200071E 0000xxxx

Balls

Slot 1
1200072C 00000001 - Master Ball
1200072E 0000xxxx - Quantity (0000 ... 03E7)

Slot 2
12000730 00000002 - Ultra Ball
12000732 0000xxxx

...

Slot 12
12000758 0000000C - Premier Ball
1200075A 0000xxxx

TMs

TM01
1200076C 00000121 - Focus Punch
1200076E 0000xxxx - Quantity (0000 ... 03E7)

TM02
12000770 00000122 - Dragon Claw
12000772 0000xxxx

...

TM50
12000830 00000152 - Overheat
12000832 0000xxxx

Berries

Slot 1
1200086C 00000085 - Cheri Berry
1200086E 0000xxxx - Quantity (0000 ... 03E7)

Slot 2
12000870 00000086 - Chesto Berry
12000872 0000xxxx

...

Slot 42
12000910 000000AE - Starf Berry
12000912 0000xxxx

Cologne Case

12000924 00000201 - Joy Scent
12000926 0000xxxx - Quantity (0000 ... 03E7)

12000928 00000202 - Excite Scent
1200092A 0000xxxx

1200092C 00000203 - Vivid Scent
1200092E 0000xxxx

Battle CDs

12000930 00000216 - Battle CD 1
12000932 0000xxxx - Quantity (0000 ... 0001)

12000934 00000217 - Battle CD 2
12000936 0000xxxx

...

120009F4 00000247 - Battle CD 50
120009F6 0000xxxx

Money

14000A24 xxxxxxxx - Money (00000000 ... 0098967F, Max 9,999,999 dec)

PokeCoupons

14000A28 xxxxxxxx - PokeCoupons (00000000 ... 000F423F, Max 999,999 dec)

PC

Slot 1
1200C330 0000xxxx - Item Modifier
1200C332 0000xxxx - Quantity (0000 ... 03E7)

Slot 2
1200C334 0000xxxx
1200C336 0000xxxx

...

Strategy Memo

1200C870 0000xxxx - Number of Entries

1200C874 0000xxxx - 1st Entry (Pokemon Number + 0x8000)
1200C880 0000xxxx - 2nd Entry
1200C88C 0000xxxx - 3rd Entry

...

1200DA80 0000xxxx - 386th Entry

Shadow Pokemon

Pokemon 1 (Teddiursa)

1000E3CE 000000xx - Ball Caught With

1000E3D3 000000xx - DV Hit Points
1000E3D4 000000xx - DV Attack
1000E3D5 000000xx - DV Defence
1000E3D6 000000xx - DV Special Attack
1000E3D7 000000xx - DV Special Defence
1000E3D8 000000xx - DV Speed

1200E3DE 0000xxxx - Location Caught

1200E3E2 000000D8 - Pokemon Modifier (00D8 = Teddiursa)
1400E3E4 xxxxxxxx - Pokemon ID

1200E3EE 0000xxxx - Purification Counter (Start Value = 0BB8)

1000E407 000000xx - Shadow Pokemon ID (01)

Pokemon 2 (Vulpix)

1000E416 000000xx - Ball Caught With

1000E41B 000000xx - DV Hit Points
1000E41C 000000xx - DV Attack
1000E41D 000000xx - DV Defence
1000E41E 000000xx - DV Special Attack
1000E41F 000000xx - DV Special Defence
1000E420 000000xx - DV Speed

1200E426 0000xxxx - Location Caught

1200E42A 00000025 - Pokemon Modifier (0025 = Vulpix)
1400E42C xxxxxxxx - Pokemon ID

1200E436 0000xxxx - Purification Counter (Start Value = 07D0)

1000E44F 000000xx - Shadow Pokemon ID (02)

...

Pokemon 73 (Lugia)

1000F80E 000000xx - Ball Caught With

1000F813 000000xx - DV Hit Points
1000F814 000000xx - DV Attack
1000F815 000000xx - DV Defence
1000F816 000000xx - DV Special Attack
1000F817 000000xx - DV Special Defence
1000F818 000000xx - DV Speed

1200F81E 0000xxxx - Location Caught

1200F822 000000F9 - Pokemon Modifier (00F9 = Lugia)
1400F824 xxxxxxxx - Pokemon ID

1200F82E 0000xxxx - Purification Counter (Start Value = 2EE0)

1000F847 000000xx - Shadow Pokemon ID (49)

...

Pokemon 82 (Poochyena)

1000FA96 000000xx - Ball Caught With

1000FA9B 000000xx - DV Hit Points
1000FA9C 000000xx - DV Attack
1000FA9D 000000xx - DV Defence
1000FA9E 000000xx - DV Special Attack
1000FA9F 000000xx - DV Special Defence
1000FAA0 000000xx - DV Speed

1200FAA6 0000xxxx - Location Caught

1200FAAA 0000011E - Pokemon Modifier (011E = Poochyena)
1400FAAC xxxxxxxx - Pokemon ID

1200FAB6 0000xxxx - Purification Counter (Start Value = 09C4)

1000FACF 000000xx - Shadow Pokemon ID (52)

Pokemon 83 (Ledyba)

1000FADE 000000xx - Ball Caught With

1000FAE3 000000xx - DV Hit Points
1000FAE4 000000xx - DV Attack
1000FAE5 000000xx - DV Defence
1000FAE6 000000xx - DV Special Attack
1000FAE7 000000xx - DV Special Defence
1000FAE8 000000xx - DV Speed

1200FAEE 0000xxxx - Location Caught

1200FAF2 000000A5 - Pokemon Modifier (00A5 = Ledyba)
1400FAF4 xxxxxxxx - Pokemon ID

1200FAFE 0000xxxx - Purification Counter (Start Value = 09C4)

1000FB17 000000xx - Shadow Pokemon ID (53)


E0000000 80008000


===================
IN BATTLE MODIFIERS
===================

Trainer

Pokemon 1

024A2128 0000xxxx - Pokemon Modifier
024A212A 0000xxxx - Item Held
024A212C 0000xxxx - Hit Points (Actual)
024A212E 0000xxxx - Happiness
024A2139 000000xx - Pokemon Level (Actual)

004A213E 000000xx - Status

00 = Normal
03 = Poison (Constant Damage)
04 = Poison (Increasing Damage)
05 = Paralyze
06 = Burn
07 = Freeze
08 = Sleep

044A2148 xxxxxxxx - EXP Points Modifier
024A21A8 0000xxxx - 1st Move Modifier
024A21AA 0000xxyy - 1st Move PP Modifier
024A21AC 0000xxxx - 2nd Move Modifier
024A21AE 0000xxyy - 2nd Move PP Modifier
024A21B0 0000xxxx - 3rd Move Modifier
024A21B2 0000xxyy - 3rd Move PP Modifier
024A21B4 0000xxxx - 4th Move Modifier
024A21B6 0000xxyy - 4th Move PP Modifier
024A21B8 0000xxxx - Hit Points (Max)
024A21BA 0000xxxx - Attack
024A21BC 0000xxxx - Defence
024A21BE 0000xxxx - Special Attack
024A21C0 0000xxxx - Special Defence
024A21C2 0000xxxx - Speed

Pokemon 2

024A2428 0000xxxx - Pokemon Modifier
024A242A 0000xxxx - Item Held
...
024A24C2 0000xxxx - Speed


Opponent

Pokemon 1

024A9018 0000xxxx - Pokemon Modifier
024A901A 0000xxxx - Item Held
...
024A90B2 0000xxxx - Speed

Pokemon 2

024A9318 0000xxxx - Pokemon Modifier
024A931A 0000xxxx - Item Held
...
024A93B2 0000xxxx - Speed


====
MISC
====

Button Activator
28444B2C yyyyxxxx

yyyy = Mask
xxxx = Buttons

0001 = DPad Left
0002 = DPad Right
0004 = DPad Down
0008 = DPad Up
0010 = Z
0020 = R
0040 = L
0100 = A
0200 = B
0400 = X
0800 = Y
1000 = Start

