Cycle Through Items [Bully]
#1
This code is a slight modification of the Item Wheel code that makes it cycle between a given set of items by holding a single button. Releasing the button and pressing it again will reset the cycle. In order to add another item, make a copy of the third-to-last and second-to-last lines and replace the values accordingly. For further information, see the original Item Wheel code.

NOTE: This code is incomplete as only the PAL port has been tested.

NTSC-U
C27E4B88 00000003
3D808000 A16C1626
B1640092 A00C1624
B004008E 00000000
E0000000 80008000
2834XXXX YYYYZZZZ
A8000000 00000001
04001624 00RR000K
A8000001 0000TTTT
04001624 00RR000K
E2000001 00000000


PAL
C27EEE98 00000003
3D808000 A16C1626
B1640092 A00C1624
B004008E 00000000
E0000000 80008000
2834XXXX YYYYZZZZ
A8000000 00000001
04001624 00RR000K
A8000001 0000TTTT
04001624 00RR000K
E2000001 00000000


NTSC-J
C27EE504 00000003
3D808000 A16C1626
B1640092 A00C1624
B004008E 00000000
E0000000 80008000
2834XXXX YYYYZZZZ
A8000000 00000001
04001624 00RR000K
A8000001 0000TTTT
04001624 00RR000K
E2000001 00000000


NTSC-K
C27DD258 00000003
3D808000 A16C1626
B1640092 A00C1624
B004008E 00000000
E0000000 80008000
2834XXXX YYYYZZZZ
A8000000 00000001
04001624 00RR000K
A8000001 0000TTTT
04001624 00RR000K
E2000001 00000000

Values:
XXXX = Controller Address
YYYY = Button Mask
ZZZZ = Button Value
TTTT = Button Hold Time (the item will appear in the roulette when TTTT frames have passed, so add this value to the previous entry to get the current one's timing)

RR/K = Item/Amount:
Green Shell = 00/1
Red Shell = 01/1
Banana = 02/1
Fake Item Box = 03/1
Mushroom = 04/1
Triple Mushroom = 05/3
Bob-omb = 06/1
Blue Shell = 07/1
Lightning = 08/1
Star = 09/1
Golden Mushroom = 0A/1
Mega Mushroom = 0B/1
Blooper = 0C/1
POW Block = 0D/1
Cloud = 0E/1
Bullet Bill = 0F/1
Triple Green Shell = 10/3
Triple Red Shell = 11/3
Triple Banana = 12/3
Nothing = 14/0

Code created by: Bully
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)