[Request] Replace Item Lottery's Original Behavior with Respawn Timer in frames
#1
Lightbulb 
Recently I have been playing around a bit with changing the respawn timing for the itemboxes (located here and here), and while those codes definitely helped me out with visualizing how the flow works for intense matches where players get very close together and sometimes require to wait a bit until the itembox respawns, it set me thinking: "What if we can change the timing from the itemboxes inside the course.kmp file instead??"

I have no idea how feasible it is to change the Item Lottery Setting (usually Setting 6 for the object's behavior), but replacing that behavior to read preset timings to make it spawn depending on how many frames (value 0000 can be just the default itembox while FFFF can be set to never spawn, and every value inbetween tells how long the itembox takes to respawn (in frames)). This also needs to skip the instruction for stopping the item roulette early for offline play.

I wish we could somehow keep this function (since I'd love to use it for offline play) but for an unused object Setting like how the shadow has a 0 or a 1 check to either enable or disable the itembox's shadow. But I can imagine moving this itembox roulette stop speed function to a different Setting would be way more work, since not every itembox object variant has the same unused slots. Some don't even have the Item Lottery Setting.


Long story short:
A code to replace all itembox objects' Item Lottery (Setting 6) to a Respawn Timer (0000=default, FFFF=never respawn itembox, everything inbetween=respawn in frames).
Reply
#2
Your wish is a reality: https://mariokartwii.com/showthread.php?tid=2329

UPDATE: It now uses Setting 8 instead of Setting 6
mtctr r0 ~ bctrl / BLX R0
Reply
#3
(12-14-2024, 05:36 PM)_Ro Wrote: Your wish is a reality: https://mariokartwii.com/showthread.php?tid=2329

UPDATE: It now uses Setting 8 instead of Setting 6

Oh snap! This is nuts, thank you so much! I'm 100% going to use this, and I'm sure it'll come out handy for many other users. Thanks again Big Grin
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)