Mario Kart 7/8 Style Item Distributions [Sioist] - Printable Version +- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com) +-- Forum: Cheat Codes (https://mariokartwii.com/forumdisplay.php?fid=51) +--- Forum: Online; Item (https://mariokartwii.com/forumdisplay.php?fid=57) +--- Thread: Mario Kart 7/8 Style Item Distributions [Sioist] (/showthread.php?tid=1888) |
Mario Kart 7/8 Style Item Distributions [Sioist] - sioist - 08-14-2021 This code builds upon XeR's Item Probability Modifier (original post here) for 10 player rooms to now include item tables for all 12 players. This code also now has 11 customizable tiers to simulate the way Mario Kart 7/8 determine item probabilities. This code also works offline. NTSC-U: C27ACBC4 00000052 7D8802A6 480001F9 00410000 004B0028 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00140023 00320028 000F0019 00000000 00000000 00000000 00000000 00000000 0000000A 00000019 001E0032 000F000A 00230000 00050000 00000000 00000000 00000000 00050000 0014000A 0014000A 001E0000 0000001E 0014000F 000A0000 00000000 000F000A 000A000F 0000000F 00140000 00000014 00000000 0019001E 000F000F 00000000 00050014 000F000A 000F0000 000A0014 00000000 000A0000 00000014 0032000A 000F0000 00000014 000F000F 000F000A 00000005 000F0000 00000005 00000000 00000041 0000000A 00000019 002D000A 000A000A 000A0000 0000000A 00000000 00000000 00000000 003C0000 00000000 00370046 00000000 00000000 000F0000 00000000 00000000 00000000 00000019 00000000 000F0037 003C0000 00000000 0000002D 00000000 00000000 00000000 00000000 000A0000 00000028 0023002D 00000000 00000000 00460000 00000000 00000000 00000000 00000000 00000000 00F00000 00000000 00000000 000000F0 00000000 00000000 00000000 00000000 00000000 000000F0 00000000 00000000 00000000 00F00000 00000000 PPPPPPPP QQQQQQQQ RRRRRRRR SSSSSSSS TTTTTTTT UUUUUUUU VVVVVVVV WWWWWWWW XXXXXXXX YYYYYYYY ZZZZZZZZ 7C8802A6 7D8803A6 3D60809B 616B8F70 816B0000 816B000C 816B0000 396B000C 3980000C 7D8903A6 89970070 1D8C00C4 7D6C5C2E EDAD6828 C18B0000 FC8C6840 41840008 FDA06090 396B00C4 4200FFEC EDAD5828 ED8C6028 38600000 FC8D6040 41860028 7C8C2378 398C01C8 3960000B 7D6903A6 7D83642E 38630004 FC8D6040 41840008 4200FFF0 5463F0BE 1C630026 00000000 PAL: C27BB624 00000052 7D8802A6 480001F9 00410000 004B0028 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00140023 00320028 000F0019 00000000 00000000 00000000 00000000 00000000 0000000A 00000019 001E0032 000F000A 00230000 00050000 00000000 00000000 00000000 00050000 0014000A 0014000A 001E0000 0000001E 0014000F 000A0000 00000000 000F000A 000A000F 0000000F 00140000 00000014 00000000 0019001E 000F000F 00000000 00050014 000F000A 000F0000 000A0014 00000000 000A0000 00000014 0032000A 000F0000 00000014 000F000F 000F000A 00000005 000F0000 00000005 00000000 00000041 0000000A 00000019 002D000A 000A000A 000A0000 0000000A 00000000 00000000 00000000 003C0000 00000000 00370046 00000000 00000000 000F0000 00000000 00000000 00000000 00000019 00000000 000F0037 003C0000 00000000 0000002D 00000000 00000000 00000000 00000000 000A0000 00000028 0023002D 00000000 00000000 00460000 00000000 00000000 00000000 00000000 00000000 00F00000 00000000 00000000 000000F0 00000000 00000000 00000000 00000000 00000000 000000F0 00000000 00000000 00000000 00F00000 00000000 PPPPPPPP QQQQQQQQ RRRRRRRR SSSSSSSS TTTTTTTT UUUUUUUU VVVVVVVV WWWWWWWW XXXXXXXX YYYYYYYY ZZZZZZZZ 7C8802A6 7D8803A6 3D60809B 616BD730 816B0000 816B000C 816B0000 396B000C 3980000C 7D8903A6 89970070 1D8C00C4 7D6C5C2E EDAD6828 C18B0000 FC8C6840 41840008 FDA06090 396B00C4 4200FFEC EDAD5828 ED8C6028 38600000 FC8D6040 41860028 7C8C2378 398C01C8 3960000B 7D6903A6 7D83642E 38630004 FC8D6040 41840008 4200FFF0 5463F0BE 1C630026 00000000 NTSC-J: C27BAC90 00000052 7D8802A6 480001F9 00410000 004B0028 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00140023 00320028 000F0019 00000000 00000000 00000000 00000000 00000000 0000000A 00000019 001E0032 000F000A 00230000 00050000 00000000 00000000 00000000 00050000 0014000A 0014000A 001E0000 0000001E 0014000F 000A0000 00000000 000F000A 000A000F 0000000F 00140000 00000014 00000000 0019001E 000F000F 00000000 00050014 000F000A 000F0000 000A0014 00000000 000A0000 00000014 0032000A 000F0000 00000014 000F000F 000F000A 00000005 000F0000 00000005 00000000 00000041 0000000A 00000019 002D000A 000A000A 000A0000 0000000A 00000000 00000000 00000000 003C0000 00000000 00370046 00000000 00000000 000F0000 00000000 00000000 00000000 00000019 00000000 000F0037 003C0000 00000000 0000002D 00000000 00000000 00000000 00000000 000A0000 00000028 0023002D 00000000 00000000 00460000 00000000 00000000 00000000 00000000 00000000 00F00000 00000000 00000000 000000F0 00000000 00000000 00000000 00000000 00000000 000000F0 00000000 00000000 00000000 00F00000 00000000 PPPPPPPP QQQQQQQQ RRRRRRRR SSSSSSSS TTTTTTTT UUUUUUUU VVVVVVVV WWWWWWWW XXXXXXXX YYYYYYYY ZZZZZZZZ 7C8802A6 7D8803A6 3D60809B 616BC790 816B0000 816B000C 816B0000 396B000C 3980000C 7D8903A6 89970070 1D8C00C4 7D6C5C2E EDAD6828 C18B0000 FC8C6840 41840008 FDA06090 396B00C4 4200FFEC EDAD5828 ED8C6028 38600000 FC8D6040 41860028 7C8C2378 398C01C8 3960000B 7D6903A6 7D83642E 38630004 FC8D6040 41840008 4200FFF0 5463F0BE 1C630026 00000000 NTSC-K: C27A99E4 00000052 7D8802A6 480001F9 00410000 004B0028 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00140023 00320028 000F0019 00000000 00000000 00000000 00000000 00000000 0000000A 00000019 001E0032 000F000A 00230000 00050000 00000000 00000000 00000000 00050000 0014000A 0014000A 001E0000 0000001E 0014000F 000A0000 00000000 000F000A 000A000F 0000000F 00140000 00000014 00000000 0019001E 000F000F 00000000 00050014 000F000A 000F0000 000A0014 00000000 000A0000 00000014 0032000A 000F0000 00000014 000F000F 000F000A 00000005 000F0000 00000005 00000000 00000041 0000000A 00000019 002D000A 000A000A 000A0000 0000000A 00000000 00000000 00000000 003C0000 00000000 00370046 00000000 00000000 000F0000 00000000 00000000 00000000 00000019 00000000 000F0037 003C0000 00000000 0000002D 00000000 00000000 00000000 00000000 000A0000 00000028 0023002D 00000000 00000000 00460000 00000000 00000000 00000000 00000000 00000000 00F00000 00000000 00000000 000000F0 00000000 00000000 00000000 00000000 00000000 000000F0 00000000 00000000 00000000 00F00000 00000000 PPPPPPPP QQQQQQQQ RRRRRRRR SSSSSSSS TTTTTTTT UUUUUUUU VVVVVVVV WWWWWWWW XXXXXXXX YYYYYYYY ZZZZZZZZ 7C8802A6 7D8803A6 3D60809A 616BBD70 816B0000 816B000C 816B0000 396B000C 3980000C 7D8903A6 89970070 1D8C00C4 7D6C5C2E EDAD6828 C18B0000 FC8C6840 41840008 FDA06090 396B00C4 4200FFEC EDAD5828 ED8C6028 38600000 FC8D6040 41860028 7C8C2378 398C01C8 3960000B 7D6903A6 7D83642E 38630004 FC8D6040 41840008 4200FFF0 5463F0BE 1C630026 00000000 Similar to XeR's code, fill in the item probability weightings as half-words. For 1st place's items, fill in values in the first purple color group. The next color group down (red) is 2nd place's items, then 3rd, then 4th, etc all the way to 12th places items in the final green color group. The order of the items is the index of each item, so the first half-word (aka 4 digits) is the weighting for green shells, then red shells, bananas, mushrooms, etc. When you get an item box, your position no longer matters (unless you are in 1st) for which place box you get. It is dependent on your distance to 1st place. There are 11 different tiers of distances, each one corresponding to 2nd place through 12th place boxes. The distance from 1st place is measured by subtracting your race completion from 1st place's. For example, if the first tier is set at a value of 0.10 (0x3DCCCCCD in hex), you will receive 2nd place boxes if, at the time of pulling the item box, your race completion is within 0.10 of first place. This means that you need to be within 10% of a lap on any track to receive 2nd place boxes. Then if the next tier is set at 0.20 (0x3E4CCCCD in hex), your race completion must be within 0.1 and 0.2 to receive 3rd place boxes. Continue with subsequent tiers until last place. For the last tier, it is recommended you set a large value (at least 3) so that a player doesn't fall so far behind that they exceed the last tier's value. PPPPPPPP - Tier 1, 2nd place boxes QQQQQQQQ - Tier 2, 3rd place boxes . . YYYYYYYY - Tier 10, 11th place boxes ZZZZZZZZ - Tier 11, 12th place boxes Here is a decimal to float conversion calculator to translate the race completion values into floats to put into the code. ASM Source: Code: .set ptr_playerData, 0x809b8f70 Code created by: Sioist Code credits: XeR |