supported4

bush rng

Jan 26th, 2025
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. throughout the game, there are bushes which are supposed to have a 10% chance to spawn a bush mario when you hit them. however the rng in this game works off of a prng algorithm which should be completely deterministic given the starting seed and the number of things that advance it stay the same. this is why all bush marios in this game will actually always either spawn or not spawn when you repeatedly load a stage, given you don't mess up the processing order or number of things that call rng in between reloading the stage. (theoretically, the starting seed should be set to the system tick on stage init, but something is clearly wrong with that so idk)
  2.  
  3. conversely, if you can do something to advance the seed during stage init, you can offset and change all subsequent rng calls. so here, i use the random outfit, which only randomises your outfit when you die, and when it does, it changes the bush's rng call to no longer hit the 10% chance to spawn the bush mario
Advertisement
Add Comment
Please, Sign In to add comment