shithub: pokecrystal

Download patch

ref: 63cc4daae2962544b9f1c5af9343841af8ddd7a1
parent: 388336353d3376933aa7254eceaeb001e3fb898b
author: IIMarckus <iimarckus@gmail.com>
date: Fri Jul 10 10:04:00 EDT 2015

prefix wram varables with w.

--- a/maps/NationalPark.asm
+++ b/maps/NationalPark.asm
@@ -103,7 +103,7 @@
 UnknownScript_0x5c088:
 	scall UnknownScript_0x5c114
 	winlosstext SchoolboyJack1BeatenText, $0000
-	copybytetovar JackFightCount
+	copybytetovar wJackFightCount
 	if_equal 4, .Fight4
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
@@ -125,7 +125,7 @@
 	loadtrainer SCHOOLBOY, JACK1
 	startbattle
 	returnafterbattle
-	loadvar JackFightCount, 1
+	loadvar wJackFightCount, 1
 	clearflag ENGINE_JACK
 	end
 
@@ -133,7 +133,7 @@
 	loadtrainer SCHOOLBOY, JACK2
 	startbattle
 	returnafterbattle
-	loadvar JackFightCount, 2
+	loadvar wJackFightCount, 2
 	clearflag ENGINE_JACK
 	end
 
@@ -141,7 +141,7 @@
 	loadtrainer SCHOOLBOY, JACK3
 	startbattle
 	returnafterbattle
-	loadvar JackFightCount, 3
+	loadvar wJackFightCount, 3
 	clearflag ENGINE_JACK
 	end
 
@@ -149,7 +149,7 @@
 	loadtrainer SCHOOLBOY, JACK4
 	startbattle
 	returnafterbattle
-	loadvar JackFightCount, 4
+	loadvar wJackFightCount, 4
 	clearflag ENGINE_JACK
 	end
 
--- a/maps/OlivineLighthouse2F.asm
+++ b/maps/OlivineLighthouse2F.asm
@@ -78,7 +78,7 @@
 UnknownScript_0x5afc7:
 	scall UnknownScript_0x5b06b
 	winlosstext SailorHuey1BeatenText, $0000
-	copybytetovar HueyFightCount
+	copybytetovar wHueyFightCount
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
 	if_equal 1, .Fight1
@@ -96,7 +96,7 @@
 	loadtrainer SAILOR, HUEY1
 	startbattle
 	returnafterbattle
-	loadvar HueyFightCount, 1
+	loadvar wHueyFightCount, 1
 	clearflag ENGINE_HUEY
 	end
 
@@ -104,7 +104,7 @@
 	loadtrainer SAILOR, HUEY2
 	startbattle
 	returnafterbattle
-	loadvar HueyFightCount, 2
+	loadvar wHueyFightCount, 2
 	clearflag ENGINE_HUEY
 	end
 
@@ -112,7 +112,7 @@
 	loadtrainer SAILOR, HUEY3
 	startbattle
 	returnafterbattle
-	loadvar HueyFightCount, 3
+	loadvar wHueyFightCount, 3
 	clearflag ENGINE_HUEY
 	end
 
--- a/maps/Route26.asm
+++ b/maps/Route26.asm
@@ -80,7 +80,7 @@
 UnknownScript_0x1a4d79:
 	scall UnknownScript_0x1a4dd7
 	winlosstext CooltrainermGaven3BeatenText, $0000
-	copybytetovar GavenFightCount
+	copybytetovar wGavenFightCount
 	if_equal 2, .Fight2
 	if_equal 1, .Fight1
 	if_equal 0, .LoadFight0
@@ -94,7 +94,7 @@
 	loadtrainer COOLTRAINERM, GAVEN3
 	startbattle
 	returnafterbattle
-	loadvar GavenFightCount, 1
+	loadvar wGavenFightCount, 1
 	clearflag ENGINE_GAVEN
 	end
 
@@ -102,7 +102,7 @@
 	loadtrainer COOLTRAINERM, GAVEN1
 	startbattle
 	returnafterbattle
-	loadvar GavenFightCount, 2
+	loadvar wGavenFightCount, 2
 	clearflag ENGINE_GAVEN
 	end
 
@@ -216,7 +216,7 @@
 UnknownScript_0x1a4e35:
 	scall UnknownScript_0x1a4e93
 	winlosstext CooltrainerfBeth1BeatenText, $0000
-	copybytetovar BethFightCount
+	copybytetovar wBethFightCount
 	if_equal 2, .Fight2
 	if_equal 1, .Fight1
 	if_equal 0, .LoadFight0
@@ -230,7 +230,7 @@
 	loadtrainer COOLTRAINERF, BETH1
 	startbattle
 	returnafterbattle
-	loadvar BethFightCount, 1
+	loadvar wBethFightCount, 1
 	clearflag ENGINE_BETH
 	end
 
@@ -238,7 +238,7 @@
 	loadtrainer COOLTRAINERF, BETH2
 	startbattle
 	returnafterbattle
-	loadvar BethFightCount, 2
+	loadvar wBethFightCount, 2
 	clearflag ENGINE_BETH
 	end
 
--- a/maps/Route27.asm
+++ b/maps/Route27.asm
@@ -116,7 +116,7 @@
 UnknownScript_0x1a08ff:
 	scall UnknownScript_0x1a096f
 	winlosstext Bird_keeperJose2BeatenText, $0000
-	copybytetovar JoseFightCount
+	copybytetovar wJoseFightCount
 	if_equal 2, .Fight2
 	if_equal 1, .Fight1
 	if_equal 0, .LoadFight0
@@ -130,7 +130,7 @@
 	loadtrainer BIRD_KEEPER, JOSE2
 	startbattle
 	returnafterbattle
-	loadvar JoseFightCount, 1
+	loadvar wJoseFightCount, 1
 	clearflag ENGINE_JOSE
 	end
 
@@ -138,7 +138,7 @@
 	loadtrainer BIRD_KEEPER, JOSE1
 	startbattle
 	returnafterbattle
-	loadvar JoseFightCount, 2
+	loadvar wJoseFightCount, 2
 	clearflag ENGINE_JOSE
 	end
 
@@ -297,7 +297,7 @@
 UnknownScript_0x1a09e9:
 	scall UnknownScript_0x1a0a47
 	winlosstext CooltrainerfReena1BeatenText, $0000
-	copybytetovar ReenaFightCount
+	copybytetovar wReenaFightCount
 	if_equal 2, .Fight2
 	if_equal 1, .Fight1
 	if_equal 0, .LoadFight0
@@ -311,7 +311,7 @@
 	loadtrainer COOLTRAINERF, REENA1
 	startbattle
 	returnafterbattle
-	loadvar ReenaFightCount, 1
+	loadvar wReenaFightCount, 1
 	clearflag ENGINE_REENA
 	end
 
@@ -319,7 +319,7 @@
 	loadtrainer COOLTRAINERF, REENA2
 	startbattle
 	returnafterbattle
-	loadvar ReenaFightCount, 2
+	loadvar wReenaFightCount, 2
 	clearflag ENGINE_REENA
 	end
 
--- a/maps/Route30.asm
+++ b/maps/Route30.asm
@@ -73,7 +73,7 @@
 UnknownScript_0x1a16e0:
 	scall UnknownScript_0x1a179b
 	winlosstext YoungsterJoey1BeatenText, $0000
-	copybytetovar JoeyFightCount
+	copybytetovar wJoeyFightCount
 	if_equal 4, .Fight4
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
@@ -95,7 +95,7 @@
 	loadtrainer YOUNGSTER, JOEY1
 	startbattle
 	returnafterbattle
-	loadvar JoeyFightCount, 1
+	loadvar wJoeyFightCount, 1
 	clearflag ENGINE_JOEY
 	end
 
@@ -103,7 +103,7 @@
 	loadtrainer YOUNGSTER, JOEY2
 	startbattle
 	returnafterbattle
-	loadvar JoeyFightCount, 2
+	loadvar wJoeyFightCount, 2
 	clearflag ENGINE_JOEY
 	end
 
@@ -111,7 +111,7 @@
 	loadtrainer YOUNGSTER, JOEY3
 	startbattle
 	returnafterbattle
-	loadvar JoeyFightCount, 3
+	loadvar wJoeyFightCount, 3
 	clearflag ENGINE_JOEY
 	end
 
@@ -119,7 +119,7 @@
 	loadtrainer YOUNGSTER, JOEY4
 	startbattle
 	returnafterbattle
-	loadvar JoeyFightCount, 4
+	loadvar wJoeyFightCount, 4
 	clearflag ENGINE_JOEY
 	end
 
--- a/maps/Route31.asm
+++ b/maps/Route31.asm
@@ -68,7 +68,7 @@
 UnknownScript_0x1a5493:
 	scall UnknownScript_0x1a5564
 	winlosstext Bug_catcherWade1BeatenText, $0000
-	copybytetovar WadeFightCount
+	copybytetovar wWadeFightCount
 	if_equal 4, .Fight4
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
@@ -90,7 +90,7 @@
 	loadtrainer BUG_CATCHER, WADE1
 	startbattle
 	returnafterbattle
-	loadvar WadeFightCount, 1
+	loadvar wWadeFightCount, 1
 	clearflag ENGINE_WADE
 	end
 
@@ -98,7 +98,7 @@
 	loadtrainer BUG_CATCHER, WADE2
 	startbattle
 	returnafterbattle
-	loadvar WadeFightCount, 2
+	loadvar wWadeFightCount, 2
 	clearflag ENGINE_WADE
 	end
 
@@ -106,7 +106,7 @@
 	loadtrainer BUG_CATCHER, WADE3
 	startbattle
 	returnafterbattle
-	loadvar WadeFightCount, 3
+	loadvar wWadeFightCount, 3
 	clearflag ENGINE_WADE
 	end
 
@@ -114,7 +114,7 @@
 	loadtrainer BUG_CATCHER, WADE4
 	startbattle
 	returnafterbattle
-	loadvar WadeFightCount, 4
+	loadvar wWadeFightCount, 4
 	clearflag ENGINE_WADE
 	end
 
--- a/maps/Route32.asm
+++ b/maps/Route32.asm
@@ -236,7 +236,7 @@
 UnknownScript_0x19057d:
 	scall UnknownScript_0x19060f
 	winlosstext FisherRalph1BeatenText, $0000
-	copybytetovar RalphFightCount
+	copybytetovar wRalphFightCount
 	if_equal 4, .Fight4
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
@@ -258,7 +258,7 @@
 	loadtrainer FISHER, RALPH1
 	startbattle
 	returnafterbattle
-	loadvar RalphFightCount, 1
+	loadvar wRalphFightCount, 1
 	clearflag ENGINE_RALPH
 	end
 
@@ -266,7 +266,7 @@
 	loadtrainer FISHER, RALPH2
 	startbattle
 	returnafterbattle
-	loadvar RalphFightCount, 2
+	loadvar wRalphFightCount, 2
 	clearflag ENGINE_RALPH
 	end
 
@@ -274,7 +274,7 @@
 	loadtrainer FISHER, RALPH3
 	startbattle
 	returnafterbattle
-	loadvar RalphFightCount, 3
+	loadvar wRalphFightCount, 3
 	clearflag ENGINE_RALPH
 	end
 
@@ -282,7 +282,7 @@
 	loadtrainer FISHER, RALPH4
 	startbattle
 	returnafterbattle
-	loadvar RalphFightCount, 4
+	loadvar wRalphFightCount, 4
 	clearflag ENGINE_RALPH
 	end
 
@@ -402,7 +402,7 @@
 UnknownScript_0x19066d:
 	scall UnknownScript_0x1906f9
 	winlosstext PicnickerLiz1BeatenText, $0000
-	copybytetovar LizFightCount
+	copybytetovar wLizFightCount
 	if_equal 4, .Fight4
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
@@ -424,7 +424,7 @@
 	loadtrainer PICNICKER, LIZ1
 	startbattle
 	returnafterbattle
-	loadvar LizFightCount, 1
+	loadvar wLizFightCount, 1
 	clearflag ENGINE_LIZ
 	end
 
@@ -432,7 +432,7 @@
 	loadtrainer PICNICKER, LIZ2
 	startbattle
 	returnafterbattle
-	loadvar LizFightCount, 2
+	loadvar wLizFightCount, 2
 	clearflag ENGINE_LIZ
 	end
 
@@ -440,7 +440,7 @@
 	loadtrainer PICNICKER, LIZ3
 	startbattle
 	returnafterbattle
-	loadvar LizFightCount, 3
+	loadvar wLizFightCount, 3
 	clearflag ENGINE_LIZ
 	end
 
@@ -448,7 +448,7 @@
 	loadtrainer PICNICKER, LIZ4
 	startbattle
 	returnafterbattle
-	loadvar LizFightCount, 4
+	loadvar wLizFightCount, 4
 	clearflag ENGINE_LIZ
 	end
 
--- a/maps/Route33.asm
+++ b/maps/Route33.asm
@@ -58,7 +58,7 @@
 UnknownScript_0x1ac051:
 	scall UnknownScript_0x1ac0e3
 	winlosstext HikerAnthony2BeatenText, $0000
-	copybytetovar AnthonyFightCount
+	copybytetovar wAnthonyFightCount
 	if_equal 4, .Fight4
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
@@ -80,7 +80,7 @@
 	loadtrainer HIKER, ANTHONY2
 	startbattle
 	returnafterbattle
-	loadvar AnthonyFightCount, 1
+	loadvar wAnthonyFightCount, 1
 	clearflag ENGINE_ANTHONY
 	end
 
@@ -88,7 +88,7 @@
 	loadtrainer HIKER, ANTHONY1
 	startbattle
 	returnafterbattle
-	loadvar AnthonyFightCount, 2
+	loadvar wAnthonyFightCount, 2
 	clearflag ENGINE_ANTHONY
 	end
 
@@ -96,7 +96,7 @@
 	loadtrainer HIKER, ANTHONY3
 	startbattle
 	returnafterbattle
-	loadvar AnthonyFightCount, 3
+	loadvar wAnthonyFightCount, 3
 	clearflag ENGINE_ANTHONY
 	end
 
@@ -104,7 +104,7 @@
 	loadtrainer HIKER, ANTHONY4
 	startbattle
 	returnafterbattle
-	loadvar AnthonyFightCount, 4
+	loadvar wAnthonyFightCount, 4
 	clearflag ENGINE_ANTHONY
 	end
 
--- a/maps/Route34.asm
+++ b/maps/Route34.asm
@@ -125,7 +125,7 @@
 UnknownScript_0x780bd:
 	scall UnknownScript_0x7814f
 	winlosstext CamperTodd1BeatenText, $0000
-	copybytetovar ToddFightCount
+	copybytetovar wToddFightCount
 	if_equal 4, .Fight4
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
@@ -147,7 +147,7 @@
 	loadtrainer CAMPER, TODD1
 	startbattle
 	returnafterbattle
-	loadvar ToddFightCount, 1
+	loadvar wToddFightCount, 1
 	clearflag ENGINE_TODD
 	end
 
@@ -155,7 +155,7 @@
 	loadtrainer CAMPER, TODD2
 	startbattle
 	returnafterbattle
-	loadvar ToddFightCount, 2
+	loadvar wToddFightCount, 2
 	clearflag ENGINE_TODD
 	end
 
@@ -163,7 +163,7 @@
 	loadtrainer CAMPER, TODD3
 	startbattle
 	returnafterbattle
-	loadvar ToddFightCount, 3
+	loadvar wToddFightCount, 3
 	clearflag ENGINE_TODD
 	end
 
@@ -171,7 +171,7 @@
 	loadtrainer CAMPER, TODD4
 	startbattle
 	returnafterbattle
-	loadvar ToddFightCount, 4
+	loadvar wToddFightCount, 4
 	clearflag ENGINE_TODD
 	end
 
@@ -266,7 +266,7 @@
 UnknownScript_0x7819f:
 	scall UnknownScript_0x78240
 	winlosstext PicnickerGina1BeatenText, $0000
-	copybytetovar GinaFightCount
+	copybytetovar wGinaFightCount
 	if_equal 4, .Fight4
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
@@ -288,7 +288,7 @@
 	loadtrainer PICNICKER, GINA1
 	startbattle
 	returnafterbattle
-	loadvar GinaFightCount, 1
+	loadvar wGinaFightCount, 1
 	clearflag ENGINE_GINA
 	end
 
@@ -296,7 +296,7 @@
 	loadtrainer PICNICKER, GINA2
 	startbattle
 	returnafterbattle
-	loadvar GinaFightCount, 2
+	loadvar wGinaFightCount, 2
 	clearflag ENGINE_GINA
 	end
 
@@ -304,7 +304,7 @@
 	loadtrainer PICNICKER, GINA3
 	startbattle
 	returnafterbattle
-	loadvar GinaFightCount, 3
+	loadvar wGinaFightCount, 3
 	clearflag ENGINE_GINA
 	end
 
@@ -312,7 +312,7 @@
 	loadtrainer PICNICKER, GINA4
 	startbattle
 	returnafterbattle
-	loadvar GinaFightCount, 4
+	loadvar wGinaFightCount, 4
 	clearflag ENGINE_GINA
 	end
 
--- a/maps/Route35.asm
+++ b/maps/Route35.asm
@@ -261,7 +261,7 @@
 UnknownScript_0x19c9bb:
 	scall UnknownScript_0x19c91b
 	winlosstext Bug_catcherArnie1BeatenText, $0000
-	copybytetovar ArnieFightCount
+	copybytetovar wArnieFightCount
 	if_equal 4, .Fight4
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
@@ -283,7 +283,7 @@
 	loadtrainer BUG_CATCHER, ARNIE1
 	startbattle
 	returnafterbattle
-	loadvar ArnieFightCount, 1
+	loadvar wArnieFightCount, 1
 	clearflag ENGINE_ARNIE
 	end
 
@@ -291,7 +291,7 @@
 	loadtrainer BUG_CATCHER, ARNIE2
 	startbattle
 	returnafterbattle
-	loadvar ArnieFightCount, 2
+	loadvar wArnieFightCount, 2
 	clearflag ENGINE_ARNIE
 	end
 
@@ -299,7 +299,7 @@
 	loadtrainer BUG_CATCHER, ARNIE3
 	startbattle
 	returnafterbattle
-	loadvar ArnieFightCount, 3
+	loadvar wArnieFightCount, 3
 	clearflag ENGINE_ARNIE
 	end
 
@@ -307,7 +307,7 @@
 	loadtrainer BUG_CATCHER, ARNIE4
 	startbattle
 	returnafterbattle
-	loadvar ArnieFightCount, 4
+	loadvar wArnieFightCount, 4
 	clearflag ENGINE_ARNIE
 	end
 
--- a/maps/Route36.asm
+++ b/maps/Route36.asm
@@ -211,7 +211,7 @@
 UnknownScript_0x194140:
 	scall UnknownScript_0x1941e1
 	winlosstext SchoolboyAlan1BeatenText, $0000
-	copybytetovar AlanFightCount
+	copybytetovar wAlanFightCount
 	if_equal 4, .Fight4
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
@@ -233,7 +233,7 @@
 	loadtrainer SCHOOLBOY, ALAN1
 	startbattle
 	returnafterbattle
-	loadvar AlanFightCount, 1
+	loadvar wAlanFightCount, 1
 	clearflag ENGINE_ALAN
 	end
 
@@ -241,7 +241,7 @@
 	loadtrainer SCHOOLBOY, ALAN2
 	startbattle
 	returnafterbattle
-	loadvar AlanFightCount, 2
+	loadvar wAlanFightCount, 2
 	clearflag ENGINE_ALAN
 	end
 
@@ -249,7 +249,7 @@
 	loadtrainer SCHOOLBOY, ALAN3
 	startbattle
 	returnafterbattle
-	loadvar AlanFightCount, 3
+	loadvar wAlanFightCount, 3
 	clearflag ENGINE_ALAN
 	end
 
@@ -257,7 +257,7 @@
 	loadtrainer SCHOOLBOY, ALAN4
 	startbattle
 	returnafterbattle
-	loadvar AlanFightCount, 4
+	loadvar wAlanFightCount, 4
 	clearflag ENGINE_ALAN
 	end
 
--- a/maps/Route38.asm
+++ b/maps/Route38.asm
@@ -109,7 +109,7 @@
 UnknownScript_0x1a1d82:
 	scall UnknownScript_0x1a1e23
 	winlosstext LassDana1BeatenText, $0000
-	copybytetovar DanaFightCount
+	copybytetovar wDanaFightCount
 	if_equal 4, .Fight4
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
@@ -131,7 +131,7 @@
 	loadtrainer LASS, DANA1
 	startbattle
 	returnafterbattle
-	loadvar DanaFightCount, 1
+	loadvar wDanaFightCount, 1
 	clearflag ENGINE_DANA
 	end
 
@@ -139,7 +139,7 @@
 	loadtrainer LASS, DANA2
 	startbattle
 	returnafterbattle
-	loadvar DanaFightCount, 2
+	loadvar wDanaFightCount, 2
 	clearflag ENGINE_DANA
 	end
 
@@ -147,7 +147,7 @@
 	loadtrainer LASS, DANA3
 	startbattle
 	returnafterbattle
-	loadvar DanaFightCount, 3
+	loadvar wDanaFightCount, 3
 	clearflag ENGINE_DANA
 	end
 
@@ -155,7 +155,7 @@
 	loadtrainer LASS, DANA4
 	startbattle
 	returnafterbattle
-	loadvar DanaFightCount, 4
+	loadvar wDanaFightCount, 4
 	clearflag ENGINE_DANA
 	end
 
@@ -261,7 +261,7 @@
 UnknownScript_0x1a1e75:
 	scall UnknownScript_0x1a1f01
 	winlosstext SchoolboyChad1BeatenText, $0000
-	copybytetovar ChadFightCount
+	copybytetovar wChadFightCount
 	if_equal 4, .Fight4
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
@@ -283,7 +283,7 @@
 	loadtrainer SCHOOLBOY, CHAD1
 	startbattle
 	returnafterbattle
-	loadvar ChadFightCount, 1
+	loadvar wChadFightCount, 1
 	clearflag ENGINE_CHAD
 	end
 
@@ -291,7 +291,7 @@
 	loadtrainer SCHOOLBOY, CHAD2
 	startbattle
 	returnafterbattle
-	loadvar ChadFightCount, 2
+	loadvar wChadFightCount, 2
 	clearflag ENGINE_CHAD
 	end
 
@@ -299,7 +299,7 @@
 	loadtrainer SCHOOLBOY, CHAD3
 	startbattle
 	returnafterbattle
-	loadvar ChadFightCount, 3
+	loadvar wChadFightCount, 3
 	clearflag ENGINE_CHAD
 	end
 
@@ -307,7 +307,7 @@
 	loadtrainer SCHOOLBOY, CHAD4
 	startbattle
 	returnafterbattle
-	loadvar ChadFightCount, 4
+	loadvar wChadFightCount, 4
 	clearflag ENGINE_CHAD
 	end
 
--- a/maps/Route42.asm
+++ b/maps/Route42.asm
@@ -77,7 +77,7 @@
 UnknownScript_0x1a927f:
 	scall UnknownScript_0x1a9309
 	winlosstext FisherTully1BeatenText, $0000
-	copybytetovar TullyFightCount
+	copybytetovar wTullyFightCount
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
 	if_equal 1, .Fight1
@@ -95,7 +95,7 @@
 	loadtrainer FISHER, TULLY1
 	startbattle
 	returnafterbattle
-	loadvar TullyFightCount, 1
+	loadvar wTullyFightCount, 1
 	clearflag ENGINE_TULLY
 	end
 
@@ -103,7 +103,7 @@
 	loadtrainer FISHER, TULLY2
 	startbattle
 	returnafterbattle
-	loadvar TullyFightCount, 2
+	loadvar wTullyFightCount, 2
 	clearflag ENGINE_TULLY
 	end
 
@@ -111,7 +111,7 @@
 	loadtrainer FISHER, TULLY3
 	startbattle
 	returnafterbattle
-	loadvar TullyFightCount, 3
+	loadvar wTullyFightCount, 3
 	clearflag ENGINE_TULLY
 	end
 
--- a/maps/Route43.asm
+++ b/maps/Route43.asm
@@ -121,7 +121,7 @@
 UnknownScript_0x19d0cf:
 	scall UnknownScript_0x19d144
 	winlosstext PokemaniacBrent1BeatenText, $0000
-	copybytetovar BrentFightCount
+	copybytetovar wBrentFightCount
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
 	if_equal 1, .Fight1
@@ -139,7 +139,7 @@
 	loadtrainer POKEMANIAC, BRENT1
 	startbattle
 	returnafterbattle
-	loadvar BrentFightCount, 1
+	loadvar wBrentFightCount, 1
 	clearflag ENGINE_BRENT
 	end
 
@@ -147,7 +147,7 @@
 	loadtrainer POKEMANIAC, BRENT2
 	startbattle
 	returnafterbattle
-	loadvar BrentFightCount, 2
+	loadvar wBrentFightCount, 2
 	clearflag ENGINE_BRENT
 	end
 
@@ -155,7 +155,7 @@
 	loadtrainer POKEMANIAC, BRENT3
 	startbattle
 	returnafterbattle
-	loadvar BrentFightCount, 3
+	loadvar wBrentFightCount, 3
 	clearflag ENGINE_BRENT
 	end
 
@@ -300,7 +300,7 @@
 UnknownScript_0x19d1c1:
 	scall UnknownScript_0x19d251
 	winlosstext PicnickerTiffany3BeatenText, $0000
-	copybytetovar TiffanyFightCount
+	copybytetovar wTiffanyFightCount
 	if_equal 3, .Fight3
 	if_equal 2, .Fight2
 	if_equal 1, .Fight1
@@ -318,7 +318,7 @@
 	loadtrainer PICNICKER, TIFFANY3
 	startbattle
 	returnafterbattle
-	loadvar TiffanyFightCount, 1
+	loadvar wTiffanyFightCount, 1
 	clearflag ENGINE_TIFFANY
 	end
 
@@ -326,7 +326,7 @@
 	loadtrainer PICNICKER, TIFFANY1
 	startbattle
 	returnafterbattle
-	loadvar TiffanyFightCount, 2
+	loadvar wTiffanyFightCount, 2
 	clearflag ENGINE_TIFFANY
 	end
 
@@ -334,7 +334,7 @@
 	loadtrainer PICNICKER, TIFFANY2
 	startbattle
 	returnafterbattle
-	loadvar TiffanyFightCount, 3
+	loadvar wTiffanyFightCount, 3
 	clearflag ENGINE_TIFFANY
 	end
 
--- a/maps/Route44.asm
+++ b/maps/Route44.asm
@@ -53,7 +53,7 @@
 UnknownScript_0x19d86a:
 	scall UnknownScript_0x19d8f7
 	winlosstext Bird_keeperVance1BeatenText, $0000
-	copybytetovar VanceFightCount
+	copybytetovar wVanceFightCount
 	if_equal 2, .Fight2
 	if_equal 1, .Fight1
 	if_equal 0, .LoadFight0
@@ -67,7 +67,7 @@
 	loadtrainer BIRD_KEEPER, VANCE1
 	startbattle
 	returnafterbattle
-	loadvar VanceFightCount, 1
+	loadvar wVanceFightCount, 1
 	clearflag ENGINE_VANCE
 	end
 
@@ -75,7 +75,7 @@
 	loadtrainer BIRD_KEEPER, VANCE2
 	startbattle
 	returnafterbattle
-	loadvar VanceFightCount, 2
+	loadvar wVanceFightCount, 2
 	clearflag ENGINE_VANCE
 	end
 
@@ -229,7 +229,7 @@
 UnknownScript_0x19d96e:
 	scall UnknownScript_0x19d8f7
 	winlosstext FisherWilton1BeatenText, $0000
-	copybytetovar WiltonFightCount
+	copybytetovar wWiltonFightCount
 	if_equal 2, .Fight2
 	if_equal 1, .Fight1
 	if_equal 0, .LoadFight0
@@ -243,7 +243,7 @@
 	loadtrainer FISHER, WILTON1
 	startbattle
 	returnafterbattle
-	loadvar WiltonFightCount, 1
+	loadvar wWiltonFightCount, 1
 	clearflag ENGINE_WILTON
 	end
 
@@ -251,7 +251,7 @@
 	loadtrainer FISHER, WILTON2
 	startbattle
 	returnafterbattle
-	loadvar WiltonFightCount, 2
+	loadvar wWiltonFightCount, 2
 	clearflag ENGINE_WILTON
 	end
 
--- a/maps/Route45.asm
+++ b/maps/Route45.asm
@@ -227,7 +227,7 @@
 UnknownScript_0x19e1b8:
 	scall UnknownScript_0x19e133
 	winlosstext HikerParry3BeatenText, $0000
-	copybytetovar ParryFightCount
+	copybytetovar wParryFightCount
 	if_equal 2, .Fight2
 	if_equal 1, .Fight1
 	if_equal 0, .LoadFight0
@@ -241,7 +241,7 @@
 	loadtrainer HIKER, PARRY3
 	startbattle
 	returnafterbattle
-	loadvar ParryFightCount, 1
+	loadvar wParryFightCount, 1
 	clearflag ENGINE_PARRY
 	end
 
@@ -249,7 +249,7 @@
 	loadtrainer HIKER, PARRY1
 	startbattle
 	returnafterbattle
-	loadvar ParryFightCount, 2
+	loadvar wParryFightCount, 2
 	clearflag ENGINE_PARRY
 	end
 
--- a/maps/Route46.asm
+++ b/maps/Route46.asm
@@ -80,7 +80,7 @@
 UnknownScript_0x1a96da:
 	scall UnknownScript_0x1a9767
 	winlosstext PicnickerErin1BeatenText, $0000
-	copybytetovar ErinFightCount
+	copybytetovar wErinFightCount
 	if_equal 2, .Fight2
 	if_equal 1, .Fight1
 	if_equal 0, .LoadFight0
@@ -94,7 +94,7 @@
 	loadtrainer PICNICKER, ERIN1
 	startbattle
 	returnafterbattle
-	loadvar ErinFightCount, 1
+	loadvar wErinFightCount, 1
 	clearflag ENGINE_ERIN
 	end
 
@@ -102,7 +102,7 @@
 	loadtrainer PICNICKER, ERIN2
 	startbattle
 	returnafterbattle
-	loadvar ErinFightCount, 2
+	loadvar wErinFightCount, 2
 	clearflag ENGINE_ERIN
 	end
 
--- a/wram.asm
+++ b/wram.asm
@@ -2216,36 +2216,36 @@
 
 SECTION "Events", WRAMX, BANK [1]
 
-JackFightCount::    ds 1
-                    ds 1
-HueyFightCount::    ds 1
-GavenFightCount::   ds 1
-BethFightCount::    ds 1
-JoseFightCount::    ds 1
-ReenaFightCount::   ds 1
-JoeyFightCount::    ds 1
-WadeFightCount::    ds 1
-RalphFightCount::   ds 1
-LizFightCount::     ds 1
-AnthonyFightCount:: ds 1
-ToddFightCount::    ds 1
-GinaFightCount::    ds 1
+wJackFightCount::    ds 1
+                     ds 1
+wHueyFightCount::    ds 1
+wGavenFightCount::   ds 1
+wBethFightCount::    ds 1
+wJoseFightCount::    ds 1
+wReenaFightCount::   ds 1
+wJoeyFightCount::    ds 1
+wWadeFightCount::    ds 1
+wRalphFightCount::   ds 1
+wLizFightCount::     ds 1
+wAnthonyFightCount:: ds 1
+wToddFightCount::    ds 1
+wGinaFightCount::    ds 1
 
 wda00:: ds 1
 
-ArnieFightCount::   ds 1
-AlanFightCount::    ds 1
-DanaFightCount::    ds 1
-ChadFightCount::    ds 1
-	            ds 1
-TullyFightCount::   ds 1
-BrentFightCount::   ds 1
-TiffanyFightCount:: ds 1
-VanceFightCount::   ds 1
-WiltonFightCount::  ds 1
-                    ds 1
-ParryFightCount::   ds 1
-ErinFightCount::    ds 1
+wArnieFightCount::   ds 1
+wAlanFightCount::    ds 1
+wDanaFightCount::    ds 1
+wChadFightCount::    ds 1
+                     ds 1
+wTullyFightCount::   ds 1
+wBrentFightCount::   ds 1
+wTiffanyFightCount:: ds 1
+wVanceFightCount::   ds 1
+wWiltonFightCount::  ds 1
+                     ds 1
+wParryFightCount::   ds 1
+wErinFightCount::    ds 1
 
 	ds 100