Advantageous Character/Vehicle Selection [Vega]
#1
Advantageous Character/Vehicle Selection [Vega]

NOTE: Outdated by my Perfect Character/Vehicle Selection code which also selects combos based on CC.

This code will select the 'best' character/vehicle combination for whatever track is chosen in the lottery for the race. Everything is done automatically. Whatever character you choose to start the WW/Room with is what will be shown during every track vote. Be sure to choose Manual when starting the WW/Room.

If you pick Battle with this code on, you will be given Funky Kong w/ Standard Kart.

NOTE about using this in Wiimmfi WW's: This code will get you banned on Wiimmfi.

Tracks that use Daisy w/ Mach:
rDKJP
rDKM

Tracks that use Toadette w/ Magi:
rSL
rSGB

Tracks that use Funky w/ Spear:
LC
MC
rPB
rYF

All other tracks will use Funky w/ Flame Runner

NTSC-U
C2659400 00000011
899C003C 2C0C00FF
41820074 280C0020
41A0000C 39801602
48000060 2C0C0000
4182004C 2C0C0008
41820044 2C0C0010
4182003C 2C0C0013
4182002C 2C0C0014
4182002C 2C0C001B
4182002C 2C0C001D
41820014 2C0C001F
4182001C 39801617
48000018 39800F16
48000010 39801620
48000008 39800D1E
B19C001C 909C000C
60000000 00000000

PAL
C266133C 00000011
899C003C 2C0C00FF
41820074 280C0020
41A0000C 39801602
48000060 2C0C0000
4182004C 2C0C0008
41820044 2C0C0010
4182003C 2C0C0013
4182002C 2C0C0014
4182002C 2C0C001B
4182002C 2C0C001D
41820014 2C0C001F
4182001C 39801617
48000018 39800F16
48000010 39801620
48000008 39800D1E
B19C001C 909C000C
60000000 00000000

NTSC-J
C26609A8 00000011
899C003C 2C0C00FF
41820074 280C0020
41A0000C 39801602
48000060 2C0C0000
4182004C 2C0C0008
41820044 2C0C0010
4182003C 2C0C0013
4182002C 2C0C0014
4182002C 2C0C001B
4182002C 2C0C001D
41820014 2C0C001F
4182001C 39801617
48000018 39800F16
48000010 39801620
48000008 39800D1E
B19C001C 909C000C
60000000 00000000

NTSC-K
C264F654 00000011
899C003C 2C0C00FF
41820074 280C0020
41A0000C 39801602
48000060 2C0C0000
4182004C 2C0C0008
41820044 2C0C0010
4182003C 2C0C0013
4182002C 2C0C0014
4182002C 2C0C001B
4182002C 2C0C001D
41820014 2C0C001F
4182001C 39801617
48000018 39800F16
48000010 39801620
48000008 39800D1E
B19C001C 909C000C
60000000 00000000



Source:

#~~~~~~~~~~~~~~~~#
# START ASSEMBLY #
#~~~~~~~~~~~~~~~~#

#

#~~~~~~~~~~~~~~~~~~#
# Load Track Value #
#~~~~~~~~~~~~~~~~~~#

lbz r12, 0x003C (r28) #Load the byte from address of 28 plus offset 0x3C into r12. This is the lottery selected track byte.

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# Check If Track Has Been Picked Yet #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

cmpwi r12, 0xFF #Compare r12 to value of 0xFF
beq- tracknot_pickedyet #If value in r12 is equal to 0xFF, then we know the lottery hasn't been initiated yet. Skip entire code.

cmplwi r12, 0x20 #Compare r12 to value of 0x20
blt+ vs_tracks #Battles Tracks are values 0x20 thru 0x29, if less than 0x20, we know we are in VS Race

li r12, 0x1602 #Set Funky w/ Standard kart for all Battle tracks

b the_end

#~~~~~~~~~~~~~~~~~~~~~~~#
# Check VS Track Values #
#~~~~~~~~~~~~~~~~~~~~~~~#

vs_tracks:
cmpwi r12, 0x00 #Mario Circuit
beq- fk_spear
cmpwi r12, 0x08 #Luigi Circuit
beq- fk_spear
cmpwi r12, 0x10 #GCN Peach Beach
beq- fk_spear
cmpwi r12, 0x13 #GCN DK Mountain
beq- daisy_mach
cmpwi r12, 0x14 #DS Yoshi Falls
beq- fk_spear
cmpwi r12, 0x1B #N64 Sherbet Land
beq- toadette_magi
cmpwi r12, 0x1D #N64 DK's Jungle Parkway
beq- daisy_mach
cmpwi r12, 0x1F #GBA Shy Guy Beach
beq- toadette_magi

li r12, 0x1617 #Load 0x1617 into r12. This will set Funky Kong w/ Flame Runner for any other track

b the_end #Jump to the_end label

#~~~~~~~~~~~~~~~~~~~~~~~#
# Daisy Mach Bike Label #
#~~~~~~~~~~~~~~~~~~~~~~~#

daisy_mach:
li r12, 0x0F16 #Load 0x0F16 into r12. This will set Daisy w/ Mach Bike.
b the_end #Jump to the_end label

#~~~~~~~~~~~~~~~~~~~~~~~~#
# Funky Kong Spear Label #
#~~~~~~~~~~~~~~~~~~~~~~~~#

fk_spear:
li r12, 0x1620 #Load 0x1620 into r12. This will set Funky w/ Spear.
b the_end #Jump to the_end label

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# Toadette Magikruiser Label #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

toadette_magi:
li r12, 0x0D1E #Load 0D1E into r12. This will set Toadette w/ Magi.

#~~~~~~~~~~~~~~~#
# The_End Label #
#~~~~~~~~~~~~~~~#

the_end:
sth r12, 0x001C (r28) #Store the character/vehicle halfword value to the address of r28 plus offset 0x1C.

#~~~~~~~~~~~~~~~~~~~~~~~~~~#
# Tracknot_Pickedyet Label #
#~~~~~~~~~~~~~~~~~~~~~~~~~~#

tracknot_pickedyet:
stw r4, 0x000C (r28) #Default Instruction

#

#~~~~~~~~~~~~~~#
# END ASSEMBLY #
#~~~~~~~~~~~~~~#



Code creator: Vega
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)